Advertisement
Guest User

2fort5

a guest
May 23rd, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. POINTS_PER_CAPTURE = 10;
  2. FLAG_RETURN_TIME = 15
  3.  
  4. IncludeScript("base_ctf");
  5. IncludeScript("base_location");
  6. IncludeScript("base_respawnturret");
  7.  
  8. --Door Control--
  9. --blue works, red dont.
  10.  
  11. function red_upperspawn_exit:allowed( touch_entity )
  12. if IsPlayer( touch_entity ) then
  13. local player = CastToPlayer( touch_entity )
  14. return player:GetTeamId() == self.team
  15. end
  16.  
  17. return EVENT_DISALLOWED
  18. end
  19.  
  20. function red_upperspawn_exit:ontrigger( touch_entity )
  21. if IsPlayer( touch_entity ) then
  22. OutputEvent("red_upperspawn_exit", "Open")
  23. OutputEvent("red_upperspawn_entry", "Open")
  24. end
  25. end
  26.  
  27. --function red_door1_trigger:allowed( touch_entity )
  28. -- if IsPlayer( touch_entity ) then
  29. -- local player = CastToPlayer( touch_entity )
  30. -- return player:GetTeamId() == self.team
  31. -- end
  32.  
  33. -- return EVENT_DISALLOWED
  34. --end
  35.  
  36. --function red_door1_trigger:ontrigger( touch_entity )
  37. -- if IsPlayer( touch_entity ) then
  38. -- OutputEvent("red_door1_left", "Open")
  39. -- OutputEvent("red_door1_right", "Open")
  40. -- end
  41. --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement