Add more Capturing time?

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
Flake
Recruit Womprat Killer
Posts: 12
Joined: Sat Dec 25, 2010 4:06 am
Projects :: [STR] [LAL]
Games I'm Playing :: SWBF2 and EE AOC

Add more Capturing time?

Post by Flake »

Hey! Little question: I create a map with great towns. Each of them should be have a big capturing region.
So I think it is important to give more capturing time.

I don't know how to do this! Some ideas Gametoast?

thanx!
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: add more Capturing time

Post by kinetosimpetus »

Check the CP settings in Zeroeditor? There might be one for capture time.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: add more Capturing time

Post by THEWULFMAN »

There isn't, it's not an Instance Property. I'm trying find the easiest way to do this as I speak. I'm probably going to suggest using a short Lua SetProperty or SetClassProperty command.
User avatar
Unlucky13
Sergeant Major
Sergeant Major
Posts: 239
Joined: Mon Jan 24, 2011 11:11 am
Projects :: Models models models
Games I'm Playing :: Random stuff

Re: add more Capturing time

Post by Unlucky13 »

Try changing these lines in com_bldg_controlzone.odf.

NeutralizeTime = 12.0
CaptureTime = 10.0

The odf is in data_ABC\Common\odfs.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: add more Capturing time

Post by THEWULFMAN »

Well yeah, but that wouldn't do anything without making a custom ingame.lvl with the new edited ODF if. I've got to go, but later I'll get back this and try and solve it.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: add more Capturing time

Post by AQT »

Use the following if you want to apply this change to all CPs using the com_bldg_controlzone.odf file:

Code: Select all

SetClassProperty("com_bldg_controlzone", "NeutralizeTime", 36)
SetClassProperty("com_bldg_controlzone", "CaptureTime", 16)
Adjust the number values however you like.

Use the following if you want to apply this change to CPs on the individual basis. The following uses a CP named cp1 as an example:

Code: Select all

SetProperty("cp1", "NeutralizeTime", 36)
SetProperty("cp1", "CaptureTime", 16)
Again, adjust the number values however you like.

This is if you want to do this by lua, which in this case you will want to add those lines somewhere between ScriptPostLoad() and ScriptInit() in you lua file(s).

Source:
User avatar
jdee/barc
1st Lieutenant
1st Lieutenant
Posts: 444
Joined: Wed Aug 25, 2010 2:47 pm
Projects :: Battlefront One and a Half
xbox live or psn: No gamertag set
Location: Boston

Re: add more Capturing time

Post by jdee/barc »

One other idea, copy the CP odf from Common over to Data_abc\Worlds\abc\ODF and rename it to something like new_bldg_controlzone. and then change the neutralize time of that and use that as the command post.
User avatar
Flake
Recruit Womprat Killer
Posts: 12
Joined: Sat Dec 25, 2010 4:06 am
Projects :: [STR] [LAL]
Games I'm Playing :: SWBF2 and EE AOC

Re: Add more Capturing time?

Post by Flake »

OH! So many answers. :)

First I tried to do this by using this line:

Code: Select all

SetClassProperty("com_bldg_controlzone", "NeutralizeTime", 36)
SetClassProperty("com_bldg_controlzone", "CaptureTime", 16)
The second way I tried was this line:
SetProperty("cp1", "NeutralizeTime", 36)
SetProperty("cp1", "CaptureTime", 16)
For both options, nothing has changed. I used 120 als capturing and neutralized time.
So I think that it was not because I did not notice the change in game.
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
conquest:AddCommandPost(cp8)


SetClassProperty("comm_bldg_controlzone", "NeutralizeTime", 120)
SetClassProperty("comm_bldg_controlzone", "captureTime", 120)

conquest:Start()


SetUberMode(1);

EnableSPHeroRules()

AddDeathRegion("deathregion_1")

end
Here is my first attempt.

What did I do wrong. What I would have to change.
:)
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Add more Capturing time?

Post by Marth8880 »

SetClassProperty("comm_bldg_controlzone", "NeutralizeTime", 120)
SetClassProperty("comm_bldg_controlzone", "captureTime", 120)
"comm_bldg_controlzone" should be "com_bldg_controlzone". One must never forget to fix spelling mistakes. ;)
User avatar
Flake
Recruit Womprat Killer
Posts: 12
Joined: Sat Dec 25, 2010 4:06 am
Projects :: [STR] [LAL]
Games I'm Playing :: SWBF2 and EE AOC

Re: Add more Capturing time?

Post by Flake »

:shock: OH! I'm sure this mistake happened only here. But i have tried it twice and now it worked.
:mrgreen: I'm a fool.

Thank you very much!

EDIT: follow-up-question: How to instruct the game how many Units should spawn an each Cp.
Post Reply