Page 1 of 1

Disabling the Victory Timer

Posted: Sat Aug 22, 2009 10:02 pm
by Fierfek
How do I do it? I want my map to be unwinnable through capturing all the command posts.

Re: Disabling the Victory Timer

Posted: Sat Aug 22, 2009 10:05 pm
by AQT
Don't reference the CPs in your LUA.

Re: Disabling the Victory Timer

Posted: Sat Aug 22, 2009 10:05 pm
by Fierfek
AQT wrote:Don't reference the CPs in your LUA.
At all?
So, I take out these 2 parts?
Hidden/Spoiler:
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
Hidden/Spoiler:
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)

Re: Disabling the Victory Timer

Posted: Sat Aug 22, 2009 10:08 pm
by AQT
Yes.

Re: Disabling the Victory Timer

Posted: Sat Aug 22, 2009 10:11 pm
by Fierfek
AQT wrote:Yes.
Okay, did that, but now the AI don't spawn.

Re: Disabling the Victory Timer

Posted: Sat Aug 22, 2009 10:15 pm
by AQT
Whoops, sorry about that. Leave the first section but delete the second section.

Re: Disabling the Victory Timer

Posted: Sat Aug 22, 2009 10:42 pm
by Fierfek
AQT wrote:Whoops, sorry about that. Leave the first section but delete the second section.
Did that, but AI still don't spawn.

Re: Disabling the Victory Timer

Posted: Sun Aug 23, 2009 12:20 am
by [RDH]Zerted
The AI don't spawn since they have nothing to do. They don't do anything, because you are starting a Conquest game mode with nothing to capture (since you removed all the CPs).

There are many ways to kill the victory timer. One way is to directly go into Conquest's mode scripts and prevent it from starting and/or remove its OnTimerElapse section.

Re: Disabling the Victory Timer

Posted: Sun Aug 23, 2009 1:08 am
by Frisbeetarian
I'm not sure how you would refer to a local function that's inside another function, but couldn't you just set InitDefeatTimer(), which is local to ObjectiveConquest:Start(), to a null value?

Hiding the Victory Timer

Posted: Sun Aug 23, 2009 6:39 pm
by Fierfek
[RDH]Zerted wrote:There are many ways to kill the victory timer. One way is to directly go into Conquest's mode scripts and prevent it from starting and/or remove its OnTimerElapse section.
How do I do this? Which exact scripts, and which parts must be removed?
Sorry, never done this before.

EDIT: How do I hide the victory timer?
Thanks.