Page 1 of 1
Add more Capturing time?
Posted: Fri Jun 22, 2012 11:24 am
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!
Re: add more Capturing time
Posted: Fri Jun 22, 2012 12:18 pm
by kinetosimpetus
Check the CP settings in Zeroeditor? There might be one for capture time.
Re: add more Capturing time
Posted: Fri Jun 22, 2012 12:39 pm
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.
Re: add more Capturing time
Posted: Fri Jun 22, 2012 2:20 pm
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.
Re: add more Capturing time
Posted: Fri Jun 22, 2012 2:53 pm
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.
Re: add more Capturing time
Posted: Fri Jun 22, 2012 3:50 pm
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:
Re: add more Capturing time
Posted: Sat Jun 23, 2012 9:31 am
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.
Re: Add more Capturing time?
Posted: Sun Jun 24, 2012 10:50 am
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.

Re: Add more Capturing time?
Posted: Sun Jun 24, 2012 2:35 pm
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.

Re: Add more Capturing time?
Posted: Mon Jun 25, 2012 12:55 am
by Flake

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

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.