Water Damage

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
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Water Damage

Post by PvtParts »

This should be a simple question, but I haven't the slightest clue if its possible to do or not..

Is it possible to make units not take any damage under water?

Both gungans and droids can function properly underwater, and I would like to amend this before releasing a public version of the map I'm currently working on.

If anybody has any ideas..(negative damage region? but I dont want you to gain health simply by going underwater..)
archer01

RE: Water Damage

Post by archer01 »

I've seen these properties used for vehicles (in their odf files):

WaterDamageInterval = "1.0"
WaterDamageAmount = "10.0"


Try them out (set as zero damage of course) and see if they work for soldiers too.
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Alright thanks.

Im munging right now I'll get back to you shortly.


EDIT: Nah, it didnt do anything. I didnt clean the whole world, but I cleaned the sides. So it shoulda made the change if the change was to be made..

I have a feeling that this wont work..which is a shame..
Ergonomics

Post by Ergonomics »

perhaps setting the values to almost 0? like 0.0000001 etc u get the idea. maybe it cant handle the value 0.

EDIT sorry i think i get where your coming. i think u might need to make an infantry odf into a vehicle odf. there was a discussion into if this was possible somewhere, forgot link. perhaps it might work if you get the line of code in EXACTLY the right place. it can be frustrating tho if you dont know fo sho
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Yeah see the problem is if I make it into a vehicle class then it will function like a vehicle, and not a unit.

I dunno. This is hard to figure. I mean, the droideka has a line in it stating the height of where water damage starts, but it seems specific to the droidekas class of walkerdroid. Perhaps if I remove the Roll (ball? something like that) stuff before the line it might work on a regular unit. Then I could just set the height to some negative number, so you wouldnt take damage.
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 »

nah - then you'd probably take damage even though you were over the water :P
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Yeah. shart. shame this (seemingly) cant be done, especially since its relativly simple in concept.

Oh well off to 2/trig homework.......
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

I can't remember what the exact name is, but look for something like:

HealthType = "droid"

in your odf. The "droid" health type is immune to water damage. To get them to take damage, copy the value from a rebel soldier odf.
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Alright I'll try it. Though my battle droids take water damage, and they use the droid health type.

Perhaps something with the unit type needs to be changed (UnitType = "soldier")...
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

If Gungans work underwater then I'd check their health type.
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

actually, thats what sparked this whole discussion. Rekubot, who helps me out and reviews/tests my maps, said it would be neat to give the gungans the ability to breath underwater. Coincidentally, I was reading the wookieepedia b-1 battledroid article, and i found out that battledroids can function underwater as well. So I figured I'd see what I could do.

But yeah neither side can live underwater. I still haven't tried the droideka thing (I'm really busy right now but after I get a haircut i will be able to try it).

Tell me what you think about the droideka stuff Teancum, should I just remove the ball/roll lines before the WaterDamageHeight?

UprightWaterDamageHeight = "1.5"
BallWaterDamageHeight = "0.5"

so it'd be like

WaterDamageHeight = "0.5"

also, which number should I use, a high negative, or a high positive (my brain hurts right now i dont want to think it arhg)
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 »

how about just deleing those lines if you don't want it to take damage? XD I thought this was what it was about...?
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Hahaha no I guess I need to be more clear.

Droidekas use that line in their odf to determine at what height (as in how high the water is compared to the droidekas body) they take damage. It must be different for ball mode than when they are deployed.

All other units have no lines in their odf pertaining to this, and I thought that it may be possible to use "WaterDamageHeight = "x" for regular, non "walkerdroid" class units.
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 »

so you want to add a vehicular line for a unit? :P (lol - I just made up the word 'vehicular' :lol: )

remember that the Droideka is a Small Walker
t551
General
General
Posts: 791
Joined: Sat Jul 16, 2005 3:23 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 t551 »

OFf-Topic: "Vehicular" is already a word, Qdin.
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Yeah, pretty much. Though the droideka is a walker, its also a unit. and the way its odf is set up, its very clear that much of what applies to standard units apply to the droideka, and vise versa.

I have yet to try giving the units the ball thing, as I've been really busy.

PS. Qdin, the odf is readay. I dont know why im saying it here but I dont feel like pming, im in a rush to get my wetsuit on and hit the beach. As I said, i'll include all the textures and odfs for my redone weapons (at least the weapons that I have given Cody, being a DC-15A Rifle, DC-15S Blaster Carbine, either a DC-15 Sidearm or a DC-17 repeating hand blaster, as I cant remember which one it said he stored in his jetpack, 2 thermals, 2 conc nades, and electro binoculars)
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 »

nice nice :P

and
vehicular - I've honestly never heard of it before, but it just sounded right :P so I'm glad it's a real word! :D

remember I'm a Dane, and if you knew how odd and no-reason bendings we've got for... well - our Nouns is the toughest in the whole language xD then you'd know how difficult it is to translate a sentence from one to another :wink: anyways

But do we know what makes the Droideka an exception compared to all the other vehicles which CANNOT be considered 'units'? :o
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Well, its class is specific to it, if I am correct. It is a "Walkerdroid" (off memory so pardon me if I'm off). Which means it has properties which are specific to it. I'm really unsure.

Thinking of it now, pretty much every faction, excluding rebels, could function underwater. Clones/Stormie wore pressure sealed suits, battledroids dont breath (wookieepedia says they work underwater), and gungans, well they have big ears.

Soo, it might be easier to attempt to remove the water damage, out of the files water uses. Anyone have any ideas?
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 »

LOL "and gungans, well they have big ears."

Hahahahahaha!!!! Hillarious! :P

aren't there like in a look-alike .sky file some lines about the water?
Post Reply