Giving Objects Health

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Giving Objects Health

Post by trainmaster611 »

How would you edit an odf (particularly a prop) to give them health? And also how would you link up odf objects together so they get destroyed together? :|
RC-1290

RE: Giving Objects Health

Post by RC-1290 »

trainmaster, I am wondering, do you ever use the search function?

---
ClassLabel = "destructablebuilding"

and

MaxHealth = "5.0"
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Giving Objects Health

Post by Qdin »

does it have to be 'destructable'? :P

what if it's AnimatedProp in the classlabel, Prop or something?
RC-1290

RE: Giving Objects Health

Post by RC-1290 »

You could try just adding maxhealth.
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

RE: Giving Objects Health

Post by trainmaster611 »

Yes I do use the search function but it never seems to turn up what I am looking for :?

So Rc, your'e telling me to add the lin that says "Maxhealth = 5.0" under the properties section, it will dissapear when I try to shoot it right? :|

And yes Qdin, I was trying to make it destructable. THat's what the Maxhealth line will do right? :?
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

RE: Giving Objects Health

Post by trainmaster611 »

So basically, its using the same corresponding msh files but I change the odf to give it building like properties (with the health of course). :|

Could you give me the name of an odf file in the assets folder that I could use as an example?
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Giving Objects Health

Post by Qdin »

I'm not confused yet :P

I'm just more curios whether it's really this important to have the classlabel right :lol:
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Ace_Azzameen_5 »

It is. I've tested it. props can't even be killed by LUA code.
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Qdin »

Interesting :P

Does anyone know how to use the .odf to play a death-animation? The Kashyyyk Gate played the death-animation through the .lua if I'm not mistaken.

Is there any way to let it have a designated animation to play when it dies?

+ we call it destructableprop, -building, -fisherhouse or whatever it want :P
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Post by trainmaster611 »

I found the Polis Massa hangar shield odf (I know it has infinite health but I know how to change the value). The class label says "armedbuilding". Is there any real difference between that and "building" :|
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Qdin »

maybe this have more properties? :P

or weapon-effect-like-wannabe-lolzorz?

so we can exaggerate with the classlabels :P that's good enough :)
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Post by trainmaster611 »

I just have one last question...do I have to edit the .msh files for all of this to work or can it be odf alone? :|
Post Reply