Quick ? about death regions.

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
mnl1121

Quick ? about death regions.

Post by mnl1121 »

To add a death region i just need to add a region and name it "Deathregion1" (without quotes) and then Deathregion2, ect. right?

i think the deathregion is already in the .req but i gotta check b.c im sure that has to be in there.
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

RE: Quick ? about death regions.

Post by Teancum »

use damageregions -- they don't have to be set up in the LUA at all --- just make the damage 5000 and it will kill anything.
mnl1121

RE: Quick ? about death regions.

Post by mnl1121 »

how do i make thoughs
wouldn't it just be easier to make deathregions. im sure i can do it. im getting very familiar with the LUA scripts. plus i dont know how to make damage higher.

so which should i do? death regions or damageregions? how do i add either or?


EDIT: oh found it. i gotta add AddDeathRegion("deathregion") under some line in the conquest LUA script. i just looked at Mustafar's conquest script as reference.

i just got one question. do i have to do AddDeathRegion("deathregion")

then AddDeathRegion("deathregion2")

AddDeathRegion("deathregion3")

ect...... or just deathregion and thats it like this: AddDeathRegion("deathregion")

????????????


EDIT #2: i just looked at other scripts too and confirmed the place and also i just right it once like this AddDeathRegion("deathregion")

and that it.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Quick ? about death regions.

Post by [RDH]Zerted »

I haven't been able to get AddDeathRegion() to work. Use damageregions, their differences are small enough to not matter. Of course, if you want to add and remove a dying region, like in the trash compactor, then use death regions.
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

RE: Quick ? about death regions.

Post by Teancum »

there's a 'change type' button (or something similar when you're in region mode.
mnl1121

RE: Quick ? about death regions.

Post by mnl1121 »

ok ill do that b/c when i made the deathregion it didn't work. i think i may know why though. i gotta check it out.,
Captain_Mazda

RE: Quick ? about death regions.

Post by Captain_Mazda »

When I made my damage regions, they corrupted my entire Saleucami map. The map was all black and the spawns had disappeared. It was fixed when I removed them from my script. This is what my GCW script looks like:


AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
AddDamageRegion("pit")
AddDamageRegion("ravine")
AddDamageRegion("side1")
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)

If I remove the damage region lines, the map will work for GCW. I removed them for CW so I could take new screenshots earlier.
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

RE: Quick ? about death regions.

Post by Teancum »

You don't add Damage Regions to the lua. Only Death regions.
mnl1121

RE: Quick ? about death regions.

Post by mnl1121 »

ok im still confused of how to even create damage regions and how to set the damage. is it all in zeroeditor?
just create a region call it damageregion or something, but what about the damage?

EDIT: oh and mazda thats EXACTLY what happened to me when i made an error when i wanted to add locals.

i put AddAIGoal (locals, 7) blah blah blah

locals should have been 3 which created a fatal error which made everything disappear. chaning that one word into 3 fix the whole thing


EDIT #2: i see what to do with damage regions. thx guys.
Captain_Mazda

RE: Quick ? about death regions.

Post by Captain_Mazda »

That's strange, Tean. They still wouldn't work in the map after I removed the lines. Should the scales for damage be 100? It may be the "creature, vehicle, soldier" lines that need some sort of numerical value.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Quick ? about death regions.

Post by [RDH]Zerted »

You set the damage value in ZeroEdit. Name your region something. Then set the region's properties to damageregion. ZeroEdit will now open a window on the right side of the screen with damageregion settings.
mnl1121

RE: Quick ? about death regions.

Post by mnl1121 »

yeah zerted i said i saw taht in my previous post. thx anyway.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Quick ? about death regions.

Post by [RDH]Zerted »

Your right you did. I'm not sure what I was thinking when I posted.
Post Reply