Boundaries and Hubs...

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
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Boundaries and Hubs...

Post by Elmo »

How would i make it.. so my map will say... "leaving battlefield if im going to far? And about the hubs or barriers... I place them, but how do i ban infantry from going through that region?
MasterSkywalker
Major
Major
Posts: 501
Joined: Mon Apr 17, 2006 1:44 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: Boundaries and Hubs...

Post by MasterSkywalker »

Lol.. You'll need hubs to place connections. These hubs don't keep you from entering a region, they actually tell you to do! I need to put connections between them to make sure the AI follow the "correct" paths :P

Soul -- Merry Christmas!!
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 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 Elmo »

SOOoooo... i have to place connections....
Food_Eater

Post by Food_Eater »

In order to create the "Leaving Battlefeild" thingy, you gotta go to "Boundary" in zeroeditor, and then "New Boundary," then resize the circle's width and depth with the panels, and then adjust the circle/oval so it envelops the area you want to be playable - if you leave that area it will say "Leaving Battlefeild" and all that stuff. You can use several boundaries If you have a very complex playable area, so as long as the player is in at least one of the Boundary Circles, the player is within the battlefeild. I recommend naming the boundaries "mapbounds_1" , "mapbounds_2" , etc.

Then you create a file titled ABC.bnd (ABC being your 3 letter map id) and make sure that something like this is inside of it:


Boundary()
{
Path("mapbounds_1");
Path("mapbounds_2");
Path("mapbounds_3");
Path("mapbounds_4");
Path("mapbounds_9");
Path("mapbounds_5");
Path("mapbounds_6");
Path("mapbounds_7");
Path("mapbounds_8");
}


Make sure to have as many lines for each boundary you have.

I think that file is automatically created when you make the boundaries, but I can't remember so its good to check.

And I think that's it. :wink:


EDIT: Oh yes, If you go back and tweak the boundaries later on, all the boundaries will stop working. So if you need to adjust them, you gotta delete them all and start over. (This is based on my experience so I could be wrong)
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 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 Elmo »

thx Food_Eater!
Post Reply