Help how to add damage regions

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Post Reply
SleepKiller
Corporal
Corporal
Posts: 143
Joined: Thu Mar 03, 2011 5:08 pm
xbox live or psn: N/A

Help how to add damage regions

Post by SleepKiller »

How can I add a damage region to a map to take away say 100 health a second?
User avatar
1FGR1NightGhost
Don't feed the troll (that's me)
Posts: 85
Joined: Wed Jun 08, 2011 12:01 pm
Projects :: Bornesia Kastarian Docks
Games I'm Playing :: swbf2
xbox live or psn: No gamertag set

Re: Help how to add damage regions

Post by 1FGR1NightGhost »

in ZeroEditor there is an option box (alongside water, texture, height, foliage. ect.)

simply go to the left side of the screen and select "new region" and place it were ever you want.

now go to the right side of the screen, and edit the parameters there. You can actualy choose how much it does to each kind of unit (humans, droids, vehicles, animals)
User avatar
Ginev
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Thu Apr 02, 2009 7:02 am
Projects :: Remaking FR Battlefront 3 Tatooine map.
Games I'm Playing :: nothing for now
xbox live or psn: No gamertag set
Location: Bulgaria

Re: Help how to add damage regions

Post by Ginev »

You mistake.In BF1 dont have such a things.BF1 have only death region that when you step inside you die.You can't choose how much damage to get from AI when step inside.Maybe there is something like this in BF2,but in BF1 no.

If you want death region to add follow this:

Place one new region.In the right,place one name (for example Death1).When you hit enter the same name will apply in the properties section too.When you do this save your map and go to the luascript.Find this:

--AddDeathRegion("Sarlac01")

change it to look like this: (from the example the name will be Death1)

AddDeathRegion("Death1")

save the lua and munge.Thats all.
User avatar
bamdur123
Sergeant Major
Sergeant Major
Posts: 243
Joined: Fri Oct 15, 2010 7:15 pm
Projects :: Tython-Siege of Darkness Zombie Hotel
Games I'm Playing :: SWBF 1+2
Location: Ohio, USA

Re: Help how to add damage regions

Post by bamdur123 »

the bf1 zeroeditor doestn support it, and possibly neither the game engine at the point it was made, you may try this

Region("DamageRegion damagerate=60 personscale=1", 0)
{
Layer(5);
Position(-80.937225, 59.502384, 119.114571);
Rotation(0.923375, 0.000000, 0.383934, 0.000000);
Size(7.198578, 27.678169, 13.317889);
Name("TestRegion");
}

add that inside your maps .rgn file
i have not tested this but theres a chance it will work
as you can see, position is its cordinates, rotation and size etc. dmagerate is the damage per second i believe and person scale is if damage is amplified by the unit class(droids wouldnt be affected) just a guess.
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: Help how to add damage regions

Post by giftheck »

The only possible damage regions that can exist are for water, and that's hardcoded.
Post Reply