No Death/Damage Region?

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
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

No Death/Damage Region?

Post by Blade »

Hey, I'm making a map designed mostly for multiplayer, and I've decided to make multiple different... "arenas" if you will. I'm going to make them accessible by teleporting regions, but I want to have the central area which houses all of the teleports to be safe. Ideally, I'd make either a "No Death/Damage" region, or a health region with a fast recovery. I just don't know how to set up either of these regions, if they're possible.

(It'd be awesome if there's a way to prevent damage or death, as a health region can still be bypassed by weapons that take down 100% of health.)

Thanks in advance.
computergeek
General
General
Posts: 770
Joined: Thu Jun 07, 2007 6:26 pm
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set
Location: Far Far away....

Re: No Death/Damage Region?

Post by computergeek »

Would it be possible to just block the AI out of that area?
A health region is possible, it is just a damage region with a negative damage number, giving you health. Search it and you should find something.
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: No Death/Damage Region?

Post by Blade »

Thanks for the information, can you think of any maps off the top of your head that have damage regions? (Eh, I'll stop being lazy and just look :P)

And about the AI, they're not who I'm worried about, heh. Since it's going to be meant for mostly multiplayer, I don't want to have idiots coming into the servers and killing everyone that spawns.
computergeek
General
General
Posts: 770
Joined: Thu Jun 07, 2007 6:26 pm
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set
Location: Far Far away....

Re: No Death/Damage Region?

Post by computergeek »

Ah ok, I see your point. I'll do a search for the damage regions right now. I didn't find much useful except that you have to link the region to a lua somehow I think (If someone who actually know what to do could help, we could really use it)
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: No Death/Damage Region?

Post by YaNkFaN »

All health regions are damage regions with negative values inserted into them look at the mustufar map for damage regions and how to set them up

with death regions you have to add them to the .lua with damage i'm pretty sure you don't
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: No Death/Damage Region?

Post by Teancum »

YaNkFaN wrote:with death regions you have to add them to the .lua with damage i'm pretty sure you don't
Correct. I always cheated on the Convo Pack maps and made damage regions with 100,000 dmg points. That way it'd kill anything. :thumbs:
computergeek
General
General
Posts: 770
Joined: Thu Jun 07, 2007 6:26 pm
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set
Location: Far Far away....

Re: No Death/Damage Region?

Post by computergeek »

Ok but how do you make damage regions?
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: No Death/Damage Region?

Post by Blade »

Isn't a damage region set up something like...

Code: Select all

AddDamageRegion(RegionName, #for damage
Or am I completely wrong? (most likely, I haven't really given much time to learning how to script).
User avatar
hammythepig
Master Sergeant
Master Sergeant
Posts: 175
Joined: Mon Nov 24, 2008 6:05 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: Canada

Re: No Death/Damage Region?

Post by hammythepig »

I tried adding a deathregion to one of my maps, and I did everything the doc.s said, but it didn't work.
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: No Death/Damage Region?

Post by Teancum »

You set the region type to damageregion in ZeroEdit and give it tons of damage. You don't need to add anything to the LUA for a damage region
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: No Death/Damage Region?

Post by Blade »

Hm. I set up the damage region as you said: properties = "damageregion," the box popped up, in damagerate, I put -1000000, set all of the damageScales to 1, and munged. And nothing happened. I made sure to get down to a low health and ran into the region, and nothing, no health.

I'm confused, but I'll see if what I'm doing will work with a regular damage region (no negative values).

Edit: A regular damage region didn't want to work either...
Post Reply