moved DEFENDERS_OBJECTIVE_ONCAP/_ONCARRIER/_ONFLAG out of startup()

This commit is contained in:
alaswell 2015-01-18 22:39:53 -07:00
parent ddf7b29a58
commit 66fab40a5c
3 changed files with 16 additions and 12 deletions

View file

@ -6,6 +6,10 @@ FLAG_RETURN_TIME = 60;
INITIAL_ROUND_DELAY = 45;
TEAM_SWITCH_DELAY = 4
NUM_PHASES = 4
DEFENDERS_OBJECTIVE_ONCAP = true
DEFENDERS_OBJECTIVE_ONCARRIER = false --set to true to follow flag when carried
DEFENDERS_OBJECTIVE_ONFLAG = false --set to true to follow flag ALWAYS
-----------------------------------------------------------------------------
-- sounds, right?
@ -18,10 +22,6 @@ end
function startup()
SetGameDescription("Invade Defend")
DEFENDERS_OBJECTIVE_ONCAP = true
DEFENDERS_OBJECTIVE_ONCARRIER = false --set to true to follow flag when carried
DEFENDERS_OBJECTIVE_ONFLAG = false --set to true to follow flag ALWAYS
-- set up team limits
local team = GetTeam( Team.kBlue )
team:SetPlayerLimit( 0 )

View file

@ -8,6 +8,10 @@ TEAM_SWITCH_DELAY = 4
NUM_PHASES = 3
NONINITIAL_ROUND_DELAY = 45;
RESPAWN_AFTER_CAP = false
DEFENDERS_OBJECTIVE_ONCAP = true
DEFENDERS_OBJECTIVE_ONCARRIER = false --set to true to follow flag when carried
DEFENDERS_OBJECTIVE_ONFLAG = false --set to true to follow flag ALWAYS
-----------------------------------------------------------------------------
function respawnall()
BroadCastMessage( "Area Captured. Respawning..." )
@ -24,10 +28,6 @@ end
function startup()
SetGameDescription("Invade Defend")
DEFENDERS_OBJECTIVE_ONCAP = true
DEFENDERS_OBJECTIVE_ONCARRIER = false --set to true to follow flag when carried
DEFENDERS_OBJECTIVE_ONFLAG = false --set to true to follow flag ALWAYS
-- set up team limits
local team = GetTeam( Team.kBlue )
team:SetPlayerLimit( 0 )

View file

@ -8,13 +8,17 @@ IncludeScript("base_id");
IncludeScript("base_respawnturret");
IncludeScript("base_location");
-----------------------------------------------------------------------------
-- globals
-----------------------------------------------------------------------------
DEFENDERS_OBJECTIVE_ONCAP = true
DEFENDERS_OBJECTIVE_ONCARRIER = false --set to true to follow flag when carried
DEFENDERS_OBJECTIVE_ONFLAG = false --set to true to follow flag ALWAYS
function startup()
SetGameDescription( "Invade Defend" )
DEFENDERS_OBJECTIVE_ONCAP = true
DEFENDERS_OBJECTIVE_ONCARRIER = false --set to true to follow flag when carried
DEFENDERS_OBJECTIVE_ONFLAG = false --set to true to follow flag ALWAYS
-- set up team limits
local team = GetTeam( Team.kBlue )
team:SetPlayerLimit( 0 )