Advertisement
Guest User

Untitled

a guest
May 30th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. // Reactive Drop - map-specific fixes
  2.  
  3. if (!("SendToConsole" in this)) {
  4. // Client doesn't need any fixes.
  5. return
  6. }
  7.  
  8. function FixDeimaBridge() {
  9. DoEntFire("ramp_right01", "SetAnimation", "closed", 0.1, null, null)
  10. DoEntFire("ramp_right01", "SetDefaultAnimation", "closed", 0.1, null, null)
  11. }
  12.  
  13. function FixCampaignBugs() {
  14. Entities.First().DisconnectOutput("OnUser1", "FixCampaignBugs")
  15.  
  16. if (GetMapName() == "asi-jac1-landingbay_02" || GetMapName() == "asi-jac1-landingbay_pract") {
  17. // Jacob's Rest: Cargo Elevator only waits for 4 marines before allowing the elevator to move, even if there are 5-8 players in the game.
  18. Entities.FindByName(null, "trigger_lift_marine_check").__KeyValueFromInt("playersrequired", 8)
  19. }
  20.  
  21. if (GetMapName() == "asi-jac2-deima") {
  22. // Jacob's Rest: Deima has a bridge segment that is already open before the button is pressed.
  23. Entities.FindByName(null, "move_door_bridge").ConnectOutput("OnFullyOpen", "FixDeimaBridge")
  24. }
  25.  
  26. if (GetMapName() == "tft-spaceport") {
  27. // Tears for Tarnor: Oasis Colony Spaceport only waits for 4 marines before the escape vehicle leaves, even if there are 5-8 players in the game.
  28. Entities.FindByName(null, "victory_train_area").__KeyValueFromInt("playersrequired", 8)
  29. }
  30.  
  31. command <- Entities.CreateByClassname("point_servercommand")
  32. if (GetMapName() == "as_paranoia1") {
  33. // Paranoia: Unexpected Encounter has exactly 5 info_node_marine_hints. Bots don't move except to those five hints.
  34. DoEntFire("!self", "Command", "asw_follow_use_hints 0", 0.0, null, command)
  35. } else {
  36. DoEntFire("!self", "Command", "asw_follow_use_hints 2", 0.0, null, command)
  37. }
  38. DoEntFire("!self", "Kill", "", 0.0, null, command)
  39. }
  40.  
  41. // We don't have entities until the map is fully loaded. Delay the script a bit.
  42. Entities.First().ConnectOutput("OnUser1", "FixCampaignBugs")
  43. DoEntFire("worldspawn", "FireUser1", "", 0.0, null, null)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement