Injury Region (like Polis Massa space)

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
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Injury Region (like Polis Massa space)

Post by Fingerfood »

How do I add a injury region? Like in Polis Massa, when you go outside, you get injured.

Also, where do you add a Death Region? I have placed aregion in ZE called deathregion, now ehere do I make it so you die?
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Injury Region (like Polis Massa space)

Post by woner11 »

I don't know much about death regions, but for injury regions as you call them (the proper name is damage region) you must first create a new region and then go over to property or something like that on the far right hand side of the screen. Change it to damage region and then set it the rates of damage that you want.
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: Injury Region (like Polis Massa space)

Post by Taivyx »

And for a simple death region where you don't have to do anything with the LUA (maybe it was req, I don't remember anymore), just make a damage region with insanely high damage.
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: Injury Region (like Polis Massa space)

Post by Fingerfood »

lol. I'll have to try that... *makes damage levels so high that even a Capital Ship with 0 healthdies instantly*

ANYHOO! Do I have to add damage levels for all of the things? (humans, droids, animals, etc.?)

And what's the difference between animals, humans, and droids?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Injury Region (like Polis Massa space)

Post by Maveritchell »

Whatever you don't add a damagefactor for will default to 0. "Person," "droid," and "animal" don't refer to specific units, per se, they just refer to healthtypes. If you look in .odfs you'll see a line "HealthType=".
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Injury Region (like Polis Massa space)

Post by woner11 »

Does the death region property actually work, because I've when I've needed them I have had to do what you mentioned about damage regions with insanly high rates?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Injury Region (like Polis Massa space)

Post by AceMastermind »

Deathregions work fine, have a look at this thread:
http://www.gametoast.com/forums/viewtop ... 16#p187816
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Injury Region (like Polis Massa space)

Post by woner11 »

I didn't realize I had to write anything in the lua. Got it now. Thanks! :thumbs:
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: Injury Region (like Polis Massa space)

Post by Fingerfood »

Okay. Set them up, now just have to try it. And what's a good damage amount? 99,999? Also,what I meant was what is the difference between the health types of humans, droids, etc. I will need something diffrent than human for my map.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Injury Region (like Polis Massa space)

Post by woner11 »

I believe that they are different ways of classifying things so that for instance droids could get hurt, but wampas would be fine or something like that. It just allows you more options and the health amount usually varies with the different type.
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: Injury Region (like Polis Massa space)

Post by Fingerfood »

I tried jumping into my death region with 1e+008 damage according to it. But I didn't get hurt. Suggestions?
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Injury Region (like Polis Massa space)

Post by woner11 »

Did you set your death region up right? What you could also do is just make a damage region with extremely high values. However, if you really want to use the death region I would recommend setting it up at the end of the lua just like in the topic AceMastermind showed.
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: Injury Region (like Polis Massa space)

Post by [RDH]Zerted »

This game doesn't have protection for integer overflows. Don't use such a high number. Also, I didn't think death regions had damage values...
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Injury Region (like Polis Massa space)

Post by AceMastermind »

[RDH]Zerted wrote:...Also, I didn't think death regions had damage values...
They don't have any damage values, it's auto "no health for you" when you enter this region.
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: Injury Region (like Polis Massa space)

Post by Fingerfood »

I meant the damage region... :roll:
Anyway, I am trying it out now, and have reduced the number.
Stand by.
Post Reply