Removed unnecessary/redundant info I added (thanks squeek :D)

This commit is contained in:
alaswell 2014-12-26 20:07:49 -07:00
parent 5b669b3f9d
commit 0ed27a40b0

View file

@ -1,6 +1,5 @@
-- base_ad.lua -- base_ad.lua
-- Attack / Defend gametype -- Attack / Defend gametype
-- Edited Last: Dr.Satan - 22/12/2014
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
-- includes -- includes
@ -96,7 +95,7 @@ function startup( )
AddSchedule("blow_cp2_extra_route", BLOW_CP2_ROUTE_TIMER, blow_cp2_extra_route ) AddSchedule("blow_cp2_extra_route", BLOW_CP2_ROUTE_TIMER, blow_cp2_extra_route )
ATTACKERS_OBJECTIVE_ENTITY = GetEntityByName( "cp"..phase.."_flag" ) ATTACKERS_OBJECTIVE_ENTITY = GetEntityByName( "cp"..phase.."_flag" )
-- Satan: Defenders should always point to the cap and NOT the flag -- Defenders should always point to the cap and NOT the flag
DEFENDERS_OBJECTIVE_ENTITY = GetEntityByName( "cp"..phase.."_cap" ) DEFENDERS_OBJECTIVE_ENTITY = GetEntityByName( "cp"..phase.."_cap" )
UpdateTeamObjectiveIcon( GetTeam(ATTACKERS), ATTACKERS_OBJECTIVE_ENTITY ) UpdateTeamObjectiveIcon( GetTeam(ATTACKERS), ATTACKERS_OBJECTIVE_ENTITY )
UpdateTeamObjectiveIcon( GetTeam(DEFENDERS), DEFENDERS_OBJECTIVE_ENTITY ) UpdateTeamObjectiveIcon( GetTeam(DEFENDERS), DEFENDERS_OBJECTIVE_ENTITY )
@ -172,7 +171,7 @@ function player_spawn( player_entity )
player:AddAmmo( Ammo.kCells, 200 ) player:AddAmmo( Ammo.kCells, 200 )
end end
-- Satan: We need this to keep the DEFENDERS pointing at the cap -- We need this to keep the DEFENDERS pointing at the cap
if player:GetTeamId() == ATTACKERS then if player:GetTeamId() == ATTACKERS then
UpdateObjectiveIcon( player, ATTACKERS_OBJECTIVE_ENTITY ) UpdateObjectiveIcon( player, ATTACKERS_OBJECTIVE_ENTITY )
elseif player:GetTeamId() == DEFENDERS then elseif player:GetTeamId() == DEFENDERS then
@ -441,7 +440,7 @@ function cap_delay_timer( cap )
-- update objective icon -- update objective icon
ATTACKERS_OBJECTIVE_ENTITY = GetEntityByName( "cp"..phase.."_flag" ) ATTACKERS_OBJECTIVE_ENTITY = GetEntityByName( "cp"..phase.."_flag" )
-- Satan: Defenders should always point to the cap and NOT the flag -- Defenders should always point to the cap and NOT the flag
DEFENDERS_OBJECTIVE_ENTITY = GetEntityByName( "cp"..phase.."_cap" ) DEFENDERS_OBJECTIVE_ENTITY = GetEntityByName( "cp"..phase.."_cap" )
setup_door_timer( cap.doorname, cap.duration) setup_door_timer( cap.doorname, cap.duration)