Disallow Team to Capture CP

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

Disallow Team to Capture CP

Post by Blade »

I'm toying around with a map, and I added a local team. They spawn very near to the center CP of the map, and continually capture it for themselves, which I do not want to happen. Is there a way to keep the local team from capturing CP's, but allow the other two to capture them?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Disallow Team to Capture CP

Post by Fiodis »

Yes, I believe there's a LUA code something along the lines of AllowCpCapture, although I don't know if it will stop a single team from capturing it or if it will make all cp's uncapturable. The example finder would answer that one, I think.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 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: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Re: Disallow Team to Capture CP

Post by phazon_elite »

The way I do it is to simply put:

Code: Select all

CapturePosts	= 0
in the unit's odf. You'll have to do it for every unit you don't want to capture cp's, though.

Hope that helped!
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: Disallow Team to Capture CP

Post by Blade »

Ah, thanks. That'll work fine, as my local team only has one unit class. Thanks again.
Post Reply