Automatic Minefields? Possible?

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
Chamboozer
Rebel Colonel
Rebel Colonel
Posts: 604
Joined: Sat Apr 16, 2005 4:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Automatic Minefields? Possible?

Post by Chamboozer »

Is it possible to place an object in zeroeditor, say, a mine, that will respawn constantly thus preventing the player from entering a certain area without dying?

What about non-respawnable mines?
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Ace_Azzameen_5 »

Yes, this is definitely possible. If not with the normal mines spawning somehow, then with the lua OnEnterRegion/KillObject codes and many ZE placed mines and regions.

I don't know the syntax format for LUA in these cases. Stupid documentation explains it but uses LUA specific Lingo. DUR!
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:

Post by [RDH]Zerted »

If mines work when you just place them in ZE, you could use OnObjectKill() to determine when someone steps on it, then respawn that mine.

If mines don't work when just placing them in ZE, place the inactive mine object, then put a damage/death region ontop of it.

The damage/death region would create the less lag in MP, but wouldn't have the explosive death. Remember, mines don't hurt engineers (unless you are modding that too).

Of course the docs use Lua lingo, thats the language. If you don't understand it, look existing examples in the maps.
Chamboozer
Rebel Colonel
Rebel Colonel
Posts: 604
Joined: Sat Apr 16, 2005 4:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Chamboozer »

A mine is a weapon, so maybe we can convert it into a building which gets destroyed whenever someone walks on it. Building has a destroyed explosion effect, then we set the respawn time to 0.0

only two problems with that, either one region kills all the mines (lol) or we have many, many regions.

other proble is that I have absoloutly no idea how to change a weapon into a destroyable building...
User avatar
Laserblast
Second Lance Corporal
Second Lance Corporal
Posts: 105
Joined: Sat Sep 17, 2005 12:25 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Laserblast »

Armedbuildings have an autofire command. You might be able to make a small/invisible building that autofires mines every now and then. Just make sure the dispenser or whatever not has a short range so that the building would be destroyed by the mine's explosion.

Drawbacks:
The building might be targetted by others. The building would have to be found to be
repaired for the mines to reappear. Finally, the AI might prove to be overzealous by spending all their time trying to repair destroyed mine-layer buildings.

This solution might be a little harsh on the computer, especially with many such buildings. However, it is an idea :).
Chamboozer
Rebel Colonel
Rebel Colonel
Posts: 604
Joined: Sat Apr 16, 2005 4:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Chamboozer »

OK, so the weapon itself cannot be placed, so I will have to create a separate object using its MSH.
Post Reply