Disabling the Victory Timer

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
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 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: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Disabling the Victory Timer

Post by Fierfek »

How do I do it? I want my map to be unwinnable through capturing all the command posts.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Disabling the Victory Timer

Post by AQT »

Don't reference the CPs in your LUA.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 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: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Disabling the Victory Timer

Post 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)
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Disabling the Victory Timer

Post by AQT »

Yes.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 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: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Disabling the Victory Timer

Post by Fierfek »

AQT wrote:Yes.
Okay, did that, but now the AI don't spawn.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Disabling the Victory Timer

Post by AQT »

Whoops, sorry about that. Leave the first section but delete the second section.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 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: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Disabling the Victory Timer

Post 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.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Disabling the Victory Timer

Post 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.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Disabling the Victory Timer

Post 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?
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 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: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Hiding the Victory Timer

Post 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.
Post Reply