Page 1 of 1

Water Damage

Posted: Sun Oct 08, 2006 10:07 pm
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..)

RE: Water Damage

Posted: Mon Oct 09, 2006 12:56 am
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.

Posted: Mon Oct 09, 2006 3:24 pm
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..

Posted: Mon Oct 09, 2006 4:48 pm
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

Posted: Mon Oct 09, 2006 5:05 pm
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.

Posted: Tue Oct 10, 2006 4:33 pm
by Qdin
nah - then you'd probably take damage even though you were over the water :P

Posted: Tue Oct 10, 2006 5:25 pm
by PvtParts
Yeah. shart. shame this (seemingly) cant be done, especially since its relativly simple in concept.

Oh well off to 2/trig homework.......

Posted: Tue Oct 10, 2006 6:26 pm
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.

Posted: Tue Oct 10, 2006 6:59 pm
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")...

Posted: Tue Oct 10, 2006 7:09 pm
by Teancum
If Gungans work underwater then I'd check their health type.

Posted: Tue Oct 10, 2006 7:34 pm
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)

Posted: Wed Oct 11, 2006 3:05 am
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...?

Posted: Wed Oct 11, 2006 3:09 pm
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.

Posted: Thu Oct 12, 2006 3:43 am
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

Posted: Thu Oct 12, 2006 7:38 am
by t551
OFf-Topic: "Vehicular" is already a word, Qdin.

Posted: Thu Oct 12, 2006 3:11 pm
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)

Posted: Fri Oct 13, 2006 7:01 pm
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

Posted: Fri Oct 13, 2006 7:25 pm
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?

Posted: Sun Oct 15, 2006 8:25 am
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?