2014-11-30 06:17:28 +00:00
|
|
|
-- ff_shutdown2.lua
|
|
|
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
-- includes
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
IncludeScript("base_shutdown");
|
|
|
|
|
2014-12-01 07:38:56 +00:00
|
|
|
SECURITY_LENGTH = 60
|
2014-11-30 06:17:28 +00:00
|
|
|
|
|
|
|
-----------------------------------------------------------------------------
|
2014-12-02 01:05:40 +00:00
|
|
|
-- security
|
2014-11-30 06:17:28 +00:00
|
|
|
-----------------------------------------------------------------------------
|
2014-12-01 07:38:56 +00:00
|
|
|
red_aardvarksec = red_security_trigger:new()
|
|
|
|
blue_aardvarksec = blue_security_trigger:new()
|
2014-11-30 06:17:28 +00:00
|
|
|
|
2014-12-02 02:37:55 +00:00
|
|
|
local security_off_base = security_off
|
2014-12-01 07:38:56 +00:00
|
|
|
function security_off( team )
|
|
|
|
security_off_base( team )
|
2014-11-30 06:17:28 +00:00
|
|
|
|
2014-12-01 07:38:56 +00:00
|
|
|
OpenDoor(team.."_aardvarkdoorhack")
|
2014-11-30 06:17:28 +00:00
|
|
|
|
2014-12-02 01:05:40 +00:00
|
|
|
AddSchedule("secup10"..team, SECURITY_LENGTH - 10, function()
|
2014-12-01 07:38:56 +00:00
|
|
|
BroadCastMessage("#FF_"..team:upper().."_SEC_10")
|
|
|
|
end)
|
2014-11-30 06:17:28 +00:00
|
|
|
end
|
|
|
|
|
2014-12-02 02:37:55 +00:00
|
|
|
local security_on_base = security_on
|
2014-12-01 07:38:56 +00:00
|
|
|
function security_on( team )
|
|
|
|
security_on_base( team )
|
2014-11-30 06:17:28 +00:00
|
|
|
|
2014-12-01 07:38:56 +00:00
|
|
|
CloseDoor(team.."_aardvarkdoorhack")
|
2014-11-30 06:17:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
-- respawn shields
|
|
|
|
-----------------------------------------------------------------------------
|
2014-12-01 07:38:56 +00:00
|
|
|
blue_slayer = not_red_trigger:new()
|
|
|
|
red_slayer = not_blue_trigger:new()
|