Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- POINTS_PER_CAPTURE = 10;
- FLAG_RETURN_TIME = 15
- IncludeScript("base_ctf");
- IncludeScript("base_location");
- IncludeScript("base_respawnturret");
- --Door Control--
- --blue works, red dont.
- function red_upperspawn_exit:allowed( touch_entity )
- if IsPlayer( touch_entity ) then
- local player = CastToPlayer( touch_entity )
- return player:GetTeamId() == self.team
- end
- return EVENT_DISALLOWED
- end
- function red_upperspawn_exit:ontrigger( touch_entity )
- if IsPlayer( touch_entity ) then
- OutputEvent("red_upperspawn_exit", "Open")
- OutputEvent("red_upperspawn_entry", "Open")
- end
- end
- --function red_door1_trigger:allowed( touch_entity )
- -- if IsPlayer( touch_entity ) then
- -- local player = CastToPlayer( touch_entity )
- -- return player:GetTeamId() == self.team
- -- end
- -- return EVENT_DISALLOWED
- --end
- --function red_door1_trigger:ontrigger( touch_entity )
- -- if IsPlayer( touch_entity ) then
- -- OutputEvent("red_door1_left", "Open")
- -- OutputEvent("red_door1_right", "Open")
- -- end
- --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement