SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Snake on April 26, 2012, 05:35:42 PM

Title: [HELP] Water Damage
Post by: Snake on April 26, 2012, 05:35:42 PM
Does anyone know where I can find and change the damage that water deals when submerged? Also, I doubt this is possible but can it be made so that water causes damaged when touched and not just when submerged?
Title: Re: [HELP] Water Damage
Post by: SleepKiller on April 26, 2012, 05:47:31 PM
You could place a Health bot that had to Effect radius but had an Effect region covering the Water to counteract the water damage. Alternitively you can make a unit have a slight heel factor.
Title: Re: [HELP] Water Damage
Post by: Snake on April 26, 2012, 06:12:44 PM
I would like to make water insta-kill
Title: Re: [HELP] Water Damage
Post by: SleepKiller on April 26, 2012, 07:07:54 PM
Deathregion man  ;) Look in the stock scripts for an example of how to set it up.
Title: Re: [HELP] Water Damage
Post by: Snake on April 26, 2012, 07:14:07 PM
Well I don't understand how to do death regions and it would take lots of time to make enough death regions to fit all the curves of the banks of the water.. :/
Title: Re: [HELP] Water Damage
Post by: SleepKiller on April 26, 2012, 07:53:24 PM
Quote from: SnΛke on April 26, 2012, 07:14:07 PM
Well I don't understand how to do death regions and it would take lots of time to make enough death regions to fit all the curves of the banks of the water.. :/
Just make a giant one that goes under the terrain no one will know.  then just call it in the LUA like so.

AddDeathRegion("YOURNAMEHERE")
Title: Re: [HELP] Water Damage
Post by: Snake on April 26, 2012, 08:35:48 PM
But are death regions just cp regions?
Title: Re: [HELP] Water Damage
Post by: SleepKiller on April 26, 2012, 08:37:10 PM
Quote from: SnΛke on April 26, 2012, 08:35:48 PM
But are death regions just cp regions?
Yeah just set them up exactly like a CP region.
Title: Re: [HELP] Water Damage
Post by: Snake on April 27, 2012, 08:48:16 AM
I don't have to change the properties or anything? The game just knows its a death region if i put it in the .lua? o.O
Title: Re: [HELP] Water Damage
Post by: SleepKiller on April 27, 2012, 03:07:21 PM
Quote from: SnΛke on April 27, 2012, 08:48:16 AM
I don't have to change the properties or anything? The game just knows its a death region if i put it in the .lua? o.O
You know how you set a CP region name in the properties, do the same for the death-region then call it in the LUA.
Title: Re: [HELP] Water Damage
Post by: Snake on April 27, 2012, 06:59:16 PM
So it'd look like this: Region Name: DeathSphere1 Region Properties: Deathregion1

Sorry, this is one of the things i never learned.
Title: Re: [HELP] Water Damage
Post by: SleepKiller on April 27, 2012, 07:13:11 PM
Yeah then you'd put this line in your script. AddDeathRegion("Deathregion1")
Title: Re: [HELP] Water Damage
Post by: Snake on April 27, 2012, 07:41:02 PM
Alright, last thing, Do i need to change the type of region? Maybe to the "danger" option or something
Title: Re: [HELP] Water Damage
Post by: SleepKiller on April 27, 2012, 07:53:06 PM
Quote from: SnΛke on April 27, 2012, 07:41:02 PM
Alright, last thing, Do i need to change the type of region? Maybe to the "danger" option or something
Nope, nothing in that panel needs to be touched.
EhPortal 1.34 © 2024, WebDev