SHARE
TWEET

Sali's Secret Project

a guest Jul 13th, 2019 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (global short enemy_points_tens 0)
  2. (global short enemy_points_ones -1)
  3. (global short team_points_tens 0)
  4. (global short team_points_ones -2)
  5. (global short random_number 1)
  6. (global boolean camo_time_toggle 0)
  7. (global short os_timer 0)
  8. (global short os_user_state 0); 0=idle, 1=friend has it, 2=friend lost it, 3=enemy_a has it, 4=enemy_a lost it, 5=enemy_b has it, 6=enemy_b lost it
  9. (global short rox_user_state 0); 0= pregame logic, 1=idle, 2=friend rox, 3=friend rox-camo, 4=enemy_a rox, 5=enemy_a rox-camo, 6=enemy_b rox, 7=enemy_b rox-camo
  10.  
  11. (script static unit player0 (unit (list_get (players) 0)))
  12.  
  13. (script static unit player1 (unit (list_get (players) 1)))
  14.  
  15. (script static unit friend (unit (list_get (ai_actors teammate) 0)))
  16.  
  17. (script static unit enemy_a (unit (list_get (ai_actors enemy_a) 0)))
  18.  
  19. (script static unit enemy_b (unit (list_get (ai_actors enemy_b )0)))
  20.  
  21. (script continuous camo_timer
  22. (sleep_until camo_time_toggle 10)
  23. (sleep 295)
  24. (set camo_time_toggle 0))
  25.  
  26. (script continuous number_randomizer
  27. (begin_random
  28.     (begin (set random_number 1)(sleep 30))
  29.     (begin (set random_number 2)(sleep 30))
  30.     (begin (set random_number 3)(sleep 30))
  31.     (begin (set random_number 4)(sleep 30))
  32.     (begin (set random_number 5)(sleep 30))
  33.     (begin (set random_number 6)(sleep 30))
  34.     (begin (set random_number 7)(sleep 30))
  35.     (begin (set random_number 8)(sleep 30))
  36.     (begin (set random_number 9)(sleep 30))
  37. ))
  38.  
  39. (script continuous special_moves_friend
  40. (sleep_until (or
  41. (volume_test_object telebox_1 (friend))
  42. (volume_test_object telebox_2 (friend))
  43. (volume_test_object telebox_3 (friend))
  44. (volume_test_object parkour_2 (friend))
  45. (volume_test_object parkour_1 (friend))
  46. )  20)
  47. (if (volume_test_object telebox_1 (friend))
  48.     (object_teleport (friend) tele_out_pink)
  49.     (if (volume_test_object telebox_2 (friend))
  50.         (object_teleport (friend) tele_out_bridge)
  51.         (if (volume_test_object telebox_3 (friend))
  52.             (ai_command_list teammate shotty_tele)
  53.             (if (volume_test_object parkour_2 (friend))
  54.                 (begin (ai_command_list teammate bridge_jump)(sleep 90))
  55.                 (if (volume_test_object parkour_1 (friend))
  56.                     (begin (ai_command_list teammate bridge_fall_down)(sleep 90))
  57.                 )
  58.             )
  59.         )
  60.     )
  61. )
  62. (sleep 30))
  63.  
  64. (script continuous special_moves_enemy_a
  65. (sleep_until (or
  66. (volume_test_object telebox_1 (enemy_a))
  67. (volume_test_object telebox_2 (enemy_a))
  68. (volume_test_object telebox_3 (enemy_a))
  69. (volume_test_object parkour_2 (enemy_a))
  70. (volume_test_object parkour_1 (enemy_a))
  71. )  20)
  72. (if (volume_test_object telebox_1 (enemy_a))
  73.     (object_teleport (enemy_a) tele_out_pink)
  74.     (if (volume_test_object telebox_2 (enemy_a))
  75.         (object_teleport (enemy_a) tele_out_bridge)
  76.         (if (volume_test_object telebox_3 (enemy_a))
  77.             (ai_command_list enemy_a shotty_tele)
  78.             (if (volume_test_object parkour_2 (enemy_a))
  79.                 (begin (ai_command_list enemy_a bridge_jump)(sleep 90))
  80.                 (if (volume_test_object parkour_1 (enemy_a))
  81.                     (begin (ai_command_list enemy_a bridge_fall_down)(sleep 90))
  82.                 )
  83.             )
  84.         )
  85.     )
  86. )
  87. (sleep 30))
  88.  
  89. (script continuous special_moves_enemy_b
  90. (sleep_until (or
  91. (volume_test_object telebox_1 (enemy_b))
  92. (volume_test_object telebox_2 (enemy_b))
  93. (volume_test_object telebox_3 (enemy_b))
  94. (volume_test_object parkour_2 (enemy_b))
  95. (volume_test_object parkour_1 (enemy_b))
  96. )  20)
  97. (if (volume_test_object telebox_1 (enemy_b))
  98.     (object_teleport (enemy_b) tele_out_pink)
  99.     (if (volume_test_object telebox_2 (enemy_b))
  100.         (object_teleport (enemy_b) tele_out_bridge)
  101.         (if (volume_test_object telebox_3 (enemy_b))
  102.             (ai_command_list enemy_b shotty_tele)
  103.             (if (volume_test_object parkour_2 (enemy_b))
  104.                 (begin (ai_command_list enemy_b bridge_jump)(sleep 90))
  105.                 (if (volume_test_object parkour_1 (enemy_b))
  106.                     (begin (ai_command_list enemy_b bridge_fall_down)(sleep 90))
  107.                 )
  108.             )
  109.         )
  110.     )
  111. )
  112. (sleep 30))
  113.  
  114. (script continuous player0_death_tracker
  115. (sleep_until (and (!= 0 rox_user_state)(<  0 (unit_get_health (player0)))) 5)
  116. (sleep_until (>= 0 (unit_get_health (player0))) 5)
  117. (if (= 9 enemy_points_ones)
  118.     (begin (set enemy_points_tens (+ 1 enemy_points_tens))(set enemy_points_ones 0))
  119.     (set enemy_points_ones (+ 1 enemy_points_ones))
  120. ))
  121.  
  122. (script continuous player1_death_tracker
  123. (sleep_until (and (!= 0 rox_user_state)(<  0 (unit_get_health (player1)))) 10)
  124. (sleep_until (>= 0 (unit_get_health (player1))) 5)
  125. (if (= 9 enemy_points_ones)
  126.     (begin (set enemy_points_tens (+ 1 enemy_points_tens))(set enemy_points_ones 0))
  127.     (set enemy_points_ones (+ 1 enemy_points_ones))
  128. ))
  129.  
  130. (script continuous friend_death_tracker
  131. (sleep_until (and (!= 0 rox_user_state)(= 0 (ai_living_count teammate))) 5)
  132. (if (= 9 enemy_points_ones)
  133.     (begin (set enemy_points_tens (+ 1 enemy_points_tens))(set enemy_points_ones 0))
  134.     (set enemy_points_ones (+ 1 enemy_points_ones))
  135. )
  136. (sleep 150)
  137. (cond
  138.     ((volume_test_object zone_6 (player0))
  139.         (ai_place teammate/6))
  140.     ((or    (volume_test_object zone_1 (player0))
  141.         (volume_test_object zone_2 (player0))
  142.         (volume_test_object zone_5 (player0)))
  143.             (ai_place teammate/1))
  144.     ((volume_test_object zone_3 (player0))
  145.         (ai_place teammate/3))
  146.     ((volume_test_object zone_4 (player0))
  147.         (ai_place teammate/4))
  148.     ((volume_test_object zone_7 (player0))
  149.         (ai_place teammate/7))
  150.     ((or
  151.         (volume_test_object zone_8 (player0))
  152.         (volume_test_object zone_10 (player0)))
  153.             (ai_place teammate/8))
  154.     ((volume_test_object zone_9 (player0))
  155.         (ai_place teammate/9))
  156.     ((volume_test_object zone_11 (player0))
  157.         (ai_place teammate/11))
  158.     ((volume_test_object zone_12 (player0))
  159.         (ai_place teammate/12))
  160. )
  161. (if (= 0 (ai_living_count teammate))
  162.     (cond
  163.         ((= random_number 1)(ai_place teammate/6))
  164.         ((= random_number 2)(ai_place teammate/1))
  165.         ((= random_number 3)(ai_place teammate/3))
  166.         ((= random_number 4)(ai_place teammate/4))
  167.         ((= random_number 5)(ai_place teammate/7))
  168.         ((= random_number 6)(ai_place teammate/8))
  169.         ((= random_number 7)(ai_place teammate/9))
  170.         ((= random_number 8)(ai_place teammate/11))
  171.         ((= random_number 9)(ai_place teammate/12))
  172.     )
  173. )
  174. (if (= 0 (ai_living_count teammate))
  175.     (ai_place teammate/1)
  176. )
  177. (activate_nav_point_object default_red (player0) (friend) 0.6)
  178. )
  179.  
  180. (script continuous enemy_a_death_tracker
  181. (sleep_until (and (!= 0 rox_user_state)(= 0 (ai_living_count enemy_a))) 5)
  182. (if (= 9 team_points_ones)
  183.     (begin (set team_points_tens (+ 1 team_points_tens))(set team_points_ones 0))
  184.     (set team_points_ones (+ 1 team_points_ones))
  185. )
  186. (sleep 150)
  187. (cond
  188.     ((volume_test_object zone_6 (enemy_b))
  189.         (ai_place enemy_a/6))
  190.     ((or    (volume_test_object zone_1 (enemy_b))
  191.         (volume_test_object zone_2 (enemy_b))
  192.         (volume_test_object zone_5 (enemy_b)))
  193.             (ai_place enemy_a/1))
  194.     ((volume_test_object zone_3 (enemy_b))
  195.         (ai_place enemy_a/3))
  196.     ((volume_test_object zone_4 (enemy_b))
  197.         (ai_place enemy_a/4))
  198.     ((volume_test_object zone_7 (enemy_b))
  199.         (ai_place enemy_a/7))
  200.     ((or
  201.         (volume_test_object zone_8 (enemy_b))
  202.         (volume_test_object zone_10 (enemy_b)))
  203.             (ai_place enemy_a/8))
  204.     ((volume_test_object zone_9 (enemy_b))
  205.         (ai_place enemy_a/9))
  206.     ((volume_test_object zone_11 (enemy_b))
  207.         (ai_place enemy_a/11))
  208.     ((volume_test_object zone_12 (enemy_b))
  209.         (ai_place enemy_a/12))
  210. )
  211. (if (= 0 (ai_living_count enemy_a))
  212.     (cond
  213.         ((= random_number 1)(ai_place enemy_a/6))
  214.         ((= random_number 2)(ai_place enemy_a/1))
  215.         ((= random_number 3)(ai_place enemy_a/3))
  216.         ((= random_number 4)(ai_place enemy_a/4))
  217.         ((= random_number 5)(ai_place enemy_a/7))
  218.         ((= random_number 6)(ai_place enemy_a/8))
  219.         ((= random_number 7)(ai_place enemy_a/9))
  220.         ((= random_number 8)(ai_place enemy_a/11))
  221.         ((= random_number 9)(ai_place enemy_a/12))
  222.     )
  223. )
  224. (if (= 0 (ai_living_count enemy_a))
  225.     (ai_place enemy_a/1)
  226. )
  227. )
  228.  
  229. (script continuous enemy_b_death_tracker
  230. (sleep_until (and (!= 0 rox_user_state)(= 0 (ai_living_count enemy_b))) 5)
  231. (if (= 9 team_points_ones)
  232.     (begin (set team_points_tens (+ 1 team_points_tens))(set team_points_ones 0))
  233.     (set team_points_ones (+ 1 team_points_ones))
  234. )
  235. (sleep 150)
  236. (cond
  237.     ((volume_test_object zone_6 (enemy_a))
  238.         (ai_place enemy_b/6))
  239.     ((or    (volume_test_object zone_1 (enemy_a))
  240.         (volume_test_object zone_2 (enemy_a))
  241.         (volume_test_object zone_5 (enemy_a)))
  242.             (ai_place enemy_b/1))
  243.     ((volume_test_object zone_3 (enemy_a))
  244.         (ai_place enemy_b/3))
  245.     ((volume_test_object zone_4 (enemy_a))
  246.         (ai_place enemy_b/4))
  247.     ((volume_test_object zone_7 (enemy_a))
  248.         (ai_place enemy_b/7))
  249.     ((or
  250.         (volume_test_object zone_8 (enemy_a))
  251.         (volume_test_object zone_10 (enemy_a)))
  252.             (ai_place enemy_b/8))
  253.     ((volume_test_object zone_9 (enemy_a))
  254.         (ai_place enemy_b/9))
  255.     ((volume_test_object zone_11 (enemy_a))
  256.         (ai_place enemy_b/11))
  257.     ((volume_test_object zone_12 (enemy_a))
  258.         (ai_place enemy_b/12))
  259. )
  260. (if (= 0 (ai_living_count enemy_b))
  261.     (cond
  262.         ((= random_number 1)(ai_place enemy_b/6))
  263.         ((= random_number 2)(ai_place enemy_b/1))
  264.         ((= random_number 3)(ai_place enemy_b/3))
  265.         ((= random_number 4)(ai_place enemy_b/4))
  266.         ((= random_number 5)(ai_place enemy_b/7))
  267.         ((= random_number 6)(ai_place enemy_b/8))
  268.         ((= random_number 7)(ai_place enemy_b/9))
  269.         ((= random_number 8)(ai_place enemy_b/11))
  270.         ((= random_number 9)(ai_place enemy_b/12))
  271.     )
  272. )
  273. (if (= 0 (ai_living_count enemy_b))
  274.     (ai_place enemy_b/1)
  275. )
  276. )
  277.  
  278. (script continuous scoreboard-endgame
  279. (sleep 29)
  280. (if (= 0 rox_user_state)
  281.     (cinematic_set_title prompt)
  282.     (begin
  283. (if (= 1 enemy_points_tens)
  284.     (cinematic_set_title blu_tens_one)
  285.     (if (= 2 enemy_points_tens)
  286.         (cinematic_set_title blu_tens_two)
  287.         (if (= 3 enemy_points_tens)
  288.             (cinematic_set_title blu_tens_three)
  289.             (if (= 4 enemy_points_tens)
  290.                 (cinematic_set_title blu_tens_four)
  291.                 (if (= 5 enemy_points_tens)
  292.                     (begin  (cinematic_set_title blu_tens_five)
  293.                         (cinematic_set_title blu_ones_zero)
  294.                         (fade_out 0 0 0 60)
  295.                         (player_enable_input false)
  296.                         (object_cannot_take_damage (player0))
  297.                         (object_cannot_take_damage (player1))
  298.                         (sleep -1 enemy_a_death_tracker)
  299.                         (sleep -1 enemy_b_death_tracker)
  300.                         (sleep -1 friend_death_tracker)
  301.                         (sleep -1 player0_death_tracker)
  302.                         (sleep -1 player1_death_tracker)
  303.                         (ai_kill_silent teammate)
  304.                         (ai_kill_silent enemy_a)
  305.                         (ai_kill_silent enemy_b)
  306.                         (sleep 30)
  307.                         (unit_set_current_vitality (player0) 100 100)
  308.                         (unit_set_current_vitality (player1) 100 100)
  309.                         (cinematic_set_title pgcr)
  310.                         (cinematic_set_title bluewin)
  311.                         (sleep -1 camo_timer)
  312.                         (sleep -1 number_randomizer)
  313.                         (sleep -1 special_moves_friend)
  314.                         (sleep -1 special_moves_enemy_a)
  315.                         (sleep -1 special_moves_enemy_b)
  316.                         (sleep -1)
  317.                     )
  318.                 )
  319.             )
  320.         )
  321.     )
  322. )
  323. (if (= 1 team_points_tens)
  324.     (cinematic_set_title red_tens_one)
  325.     (if (= 2 team_points_tens)
  326.         (cinematic_set_title red_tens_two)
  327.         (if (= 3 team_points_tens)
  328.             (cinematic_set_title red_tens_three)
  329.             (if (= 4 team_points_tens)
  330.                 (cinematic_set_title red_tens_four)
  331.                 (if (= 5 team_points_tens)
  332.                     (begin  (cinematic_set_title red_tens_five)
  333.                         (cinematic_set_title red_ones_zero)
  334.                         (fade_out 0 0 0 60)
  335.                         (player_enable_input false)
  336.                         (object_cannot_take_damage (player0))
  337.                         (object_cannot_take_damage (player1))
  338.                         (sleep -1 enemy_a_death_tracker)
  339.                         (sleep -1 enemy_b_death_tracker)
  340.                         (sleep -1 friend_death_tracker)
  341.                         (sleep -1 player0_death_tracker)
  342.                         (sleep -1 player1_death_tracker)
  343.                         (ai_kill_silent teammate)
  344.                         (ai_kill_silent enemy_a)
  345.                         (ai_kill_silent enemy_b)
  346.                         (sleep 30)
  347.                         (unit_set_current_vitality (player0) 100 100)
  348.                         (unit_set_current_vitality (player1) 100 100)
  349.                         (cinematic_set_title pgcr)
  350.                         (cinematic_set_title redwin)
  351.                         (sleep -1 camo_timer)
  352.                         (sleep -1 number_randomizer)
  353.                         (sleep -1 special_moves_friend)
  354.                         (sleep -1 special_moves_enemy_a)
  355.                         (sleep -1 special_moves_enemy_b)
  356.                         (sleep -1)
  357.                     )
  358.                 )
  359.             )
  360.         )
  361.     )
  362. )
  363. (if (> 5 enemy_points_ones)
  364.     (if (>= 0 enemy_points_ones)
  365.         (cinematic_set_title blu_ones_zero)
  366.         (if (= 1 enemy_points_ones)
  367.             (cinematic_set_title blu_ones_one)
  368.             (if (= 2 enemy_points_ones)
  369.                 (cinematic_set_title blu_ones_two)
  370.                 (if (= 3 enemy_points_ones)
  371.                     (cinematic_set_title blu_ones_three)
  372.                     (cinematic_set_title blu_ones_four)
  373.                 )
  374.             )
  375.         )
  376.     )
  377.     (if (= 5 enemy_points_ones)
  378.         (cinematic_set_title blu_ones_five)
  379.         (if (= 6 enemy_points_ones)
  380.             (cinematic_set_title blu_ones_six)
  381.             (if (= 7 enemy_points_ones)
  382.                 (cinematic_set_title blu_ones_seven)
  383.                 (if (= 8 enemy_points_ones)
  384.                     (cinematic_set_title blu_ones_eight)
  385.                     (cinematic_set_title blu_ones_nine)
  386.                 )
  387.             )
  388.         )
  389.     )
  390. )
  391. (if (> 5 team_points_ones)
  392.     (if (>= 0 team_points_ones)
  393.         (cinematic_set_title red_ones_zero)
  394.         (if (= 1 team_points_ones)
  395.             (cinematic_set_title red_ones_one)
  396.             (if (= 2 team_points_ones)
  397.                 (cinematic_set_title red_ones_two)
  398.                 (if (= 3 team_points_ones)
  399.                     (cinematic_set_title red_ones_three)
  400.                     (cinematic_set_title red_ones_four)
  401.                 )
  402.             )
  403.         )
  404.     )
  405.     (if (= 5 team_points_ones)
  406.         (cinematic_set_title red_ones_five)
  407.         (if (= 6 team_points_ones)
  408.             (cinematic_set_title red_ones_six)
  409.             (if (= 7 team_points_ones)
  410.                 (cinematic_set_title red_ones_seven)
  411.                 (if (= 8 team_points_ones)
  412.                     (cinematic_set_title red_ones_eight)
  413.                     (cinematic_set_title red_ones_nine)
  414.                 )
  415.             )
  416.         )
  417.     )
  418. ))))
  419.  
  420. (script startup intro-housekeeping
  421. (fade_out 0.0 0.0 0.0 0)
  422. (player_enable_input false)
  423. (ai_dialogue_triggers false)
  424. (ai_link_activation enemy_a enemy_b)
  425. (if (= 2 (list_count (players)))
  426.     (begin (sleep -1 friend_death_tracker)(sleep -1 special_moves_friend))
  427.     (if (< 2 (list_count (players)))
  428.         (sleep -1 player1_death_tracker)
  429.     )
  430. )
  431. (sleep 10)
  432. (player_action_test_reset)
  433. (sleep_until (player_action_test_action))
  434. (player_action_test_reset)
  435. (sleep 141 player0_death_tracker)
  436. (sleep 141 player1_death_tracker)
  437. (sleep 141 scoreboard-endgame)
  438. (set rox_user_state 1)
  439. (sleep 50)
  440. (cinematic_set_title cd_3)
  441. (sound_impulse_start "sound\sfx\ui\countdown_for_respawn" none 1)
  442. (sleep 30)
  443. (cinematic_set_title cd_2)
  444. (sound_impulse_start "sound\sfx\ui\countdown_for_respawn" none 1)
  445. (sleep 30)
  446. (cinematic_set_title cd_1)
  447. (sound_impulse_start "sound\sfx\ui\countdown_for_respawn" none 1)
  448. (sleep 30)
  449. (sv_map_reset)
  450. (fade_in 0.0 0.0 0.0 5)
  451. (sound_impulse_start "sound\sfx\ui\player_respawn" none 1)
  452. (player_enable_input true)
  453. (sleep 30)
  454. )
  455.  
  456. (script continuous item_timer
  457. (if (= 1 random_number)
  458.     (begin (ai_command_list teammate goto_ov)(ai_command_list enemy_b goto_rox)(ai_command_list enemy_a goto_camo))
  459.     (if (= 2 random_number)
  460.         (begin (ai_command_list enemy_a goto_ov)(ai_command_list teammate goto_rox)(ai_command_list enemy_b goto_camo))
  461.         (if (= 3 random_number)
  462.             (begin (ai_command_list enemy_b goto_ov)(ai_command_list enemy_a goto_rox)(ai_command_list teammate goto_camo))
  463.             (if (= 4 random_number)
  464.                 (begin (ai_command_list teammate goto_rox)(ai_command_list enemy_a goto_camo)(ai_command_list enemy_b goto_ov))
  465.                 (if (= 5 random_number)
  466.                     (begin (ai_command_list enemy_a goto_rox)(ai_command_list enemy_b goto_camo)(ai_command_list teammate goto_ov))
  467.                     (if (= 6 random_number)
  468.                         (begin (ai_command_list enemy_b goto_rox)(ai_command_list teammate goto_camo)(ai_command_list enemy_a goto_ov))
  469.                         (if (= 7 random_number)
  470.                             (begin (ai_command_list teammate goto_camo)(ai_command_list enemy_b goto_ov)(ai_command_list enemy_a goto_rox))
  471.                             (if (= 8 random_number)
  472.                                 (begin (ai_command_list enemy_a goto_camo)(ai_command_list enemy_b goto_ov)(ai_command_list teammate goto_rox))
  473.                                 (begin (ai_command_list enemy_b goto_camo)(ai_command_list enemy_a goto_ov)(ai_command_list teammate goto_rox))
  474.                             )
  475.                         )
  476.                     )
  477.                 )
  478.             )
  479.         )
  480.     )
  481. )
  482. (sleep (* 57 30))
  483. (if (= 0 os_user_state)
  484.     (if (< random_number 4)
  485.         (ai_command_list teammate goto_ov)
  486.         (if (< random_number 7)
  487.             (ai_command_list enemy_a goto_ov)
  488.             (begin
  489.                 (ai_command_list enemy_b goto_ov)
  490.                 (if (= 7 random_number)
  491.                     (ai_command_list enemy_b goto_shotty)
  492.                     (if (= 8 random_number)
  493.                         (ai_command_list enemy_a goto_shotty)
  494.                         (ai_command_list teammate goto_shotty)
  495.                     )
  496.                 )
  497.             )
  498.         )
  499.     )
  500. )
  501. (sleep 3)
  502. )
  503.  
  504. (script continuous pickup_sniper_friend
  505. (sleep_until (and
  506.         (> 6 random_number)
  507.         (!= 2 rox_user_state)
  508.         (!= 3 rox_user_state)
  509.         (not (volume_test_object pickup_sniper (unit (list_get (ai_actors teammate/camo) 0))))
  510.         (volume_test_object pickup_sniper (friend))
  511.          )
  512. 45)
  513. (sleep 2 friend_death_tracker)
  514. (object_destroy (friend))
  515. (ai_place teammate/sniper)
  516. (activate_nav_point_object default_red (player0) (unit (list_get (ai_actors teammate/sniper) 0)) 0.6)
  517. (sleep_until (>= 0 (unit_get_health (friend)))))
  518.  
  519. (script continuous pickup_sniper_enemy_a
  520. (sleep_until (and
  521.         (> 6 random_number)
  522.         (!= 4 rox_user_state)
  523.         (!= 5 rox_user_state)
  524.         (not (volume_test_object pickup_sniper (unit (list_get (ai_actors enemy_a/camo) 0))))
  525.         (volume_test_object pickup_sniper (enemy_a))
  526.          )
  527. 45)
  528. (sleep 2 enemy_a_death_tracker)
  529. (object_destroy (enemy_a))
  530. (ai_place enemy_a/sniper)
  531. (sleep_until (>= 0 (unit_get_health (enemy_a)))))
  532.  
  533. (script continuous pickup_sniper_enemy_b
  534. (sleep_until (and
  535.         (> 6 random_number)
  536.         (!= 6 rox_user_state)
  537.         (!= 7 rox_user_state)
  538.         (not (volume_test_object pickup_sniper (unit (list_get (ai_actors enemy_b/camo) 0))))
  539.         (volume_test_object pickup_sniper (enemy_b))
  540.          )
  541. 45)
  542. (sleep 2 enemy_b_death_tracker)
  543. (object_destroy (enemy_b))
  544. (ai_place enemy_b/sniper)
  545. (sleep_until (>= 0 (unit_get_health (enemy_b)))))
  546.  
  547. (script continuous pickup_shotty_friend
  548. (sleep_until (and
  549.         (> 4 random_number)
  550.         (!= 2 rox_user_state)
  551.         (!= 3 rox_user_state)
  552.         (not (volume_test_object pickup_shotty (unit (list_get (ai_actors teammate/camo) 0))))
  553.         (volume_test_object pickup_shotty (friend))
  554.          )
  555. 60)
  556. (sleep 2 friend_death_tracker)
  557. (object_destroy (friend))
  558. (ai_place teammate/shotty)
  559. (activate_nav_point_object default_red (player0) (unit (list_get (ai_actors teammate/shotty) 0)) 0.6)
  560. (sleep_until (>= 0 (unit_get_health (friend)))))
  561.  
  562. (script continuous pickup_shotty_enemy_a
  563. (sleep_until (and
  564.         (> 4 random_number)
  565.         (!= 4 rox_user_state)
  566.         (!= 5 rox_user_state)
  567.         (not (volume_test_object pickup_shotty (unit (list_get (ai_actors enemy_a/camo) 0))))
  568.         (volume_test_object pickup_shotty (enemy_a))
  569.          )
  570. 60)
  571. (sleep 2 enemy_a_death_tracker)
  572. (object_destroy (enemy_a))
  573. (ai_place enemy_a/shotty)
  574. (sleep_until (>= 0 (unit_get_health (enemy_a)))))
  575.  
  576. (script continuous pickup_shotty_enemy_b
  577. (sleep_until (and
  578.         (> 4 random_number)
  579.         (!= 6 rox_user_state)
  580.         (!= 7 rox_user_state)
  581.         (not (volume_test_object pickup_shotty (unit (list_get (ai_actors enemy_b/camo) 0))))
  582.         (volume_test_object pickup_shotty (enemy_b))
  583.          )
  584. 60)
  585. (sleep 2 enemy_b_death_tracker)
  586. (object_destroy (enemy_b))
  587. (ai_place enemy_b/shotty)
  588. (sleep_until (>= 0 (unit_get_health (enemy_b)))))
  589.  
  590. (script continuous pickup_rox_friend
  591. (sleep_until (and (volume_test_object pickup_rox (friend))(= 1 rox_user_state))20)
  592. (sleep 2 friend_death_tracker)
  593. (set rox_user_state 2)
  594. (object_destroy (friend))
  595. (if camo_time_toggle
  596.     (begin (ai_place teammate/camo-at-rox)(activate_nav_point_object default_red (player0) (unit (list_get (ai_actors teammate/camo-at-rox) 0)) 0.6)(set rox_user_state 3))
  597.     (begin (ai_place teammate/rox)(activate_nav_point_object default_red (player0) (unit (list_get (ai_actors teammate/rox) 0)) 0.6))
  598. )
  599.  
  600. (sleep_until (= 0 (ai_living_count teammate)) 5)
  601. (set rox_user_state 1))
  602.  
  603. (script continuous pickup_rox_enemy_a
  604. (sleep_until (and (volume_test_object pickup_rox (enemy_a))(= 1 rox_user_state))20)
  605. (sleep 2 enemy_a_death_tracker)
  606. (set rox_user_state 4)
  607. (object_destroy (enemy_a))
  608. (if camo_time_toggle
  609.     (begin (ai_place enemy_a/camo-at-rox)(set rox_user_state 5))
  610.     (ai_place enemy_a/rox)
  611. )
  612. (sleep_until (= 0 (ai_living_count enemy_a)) 5)
  613. (set rox_user_state 1))
  614.  
  615. (script continuous pickup_rox_enemy_b
  616. (sleep_until (and (volume_test_object pickup_rox (enemy_b))(= 1 rox_user_state))20)
  617. (sleep 2 enemy_b_death_tracker)
  618. (set rox_user_state 6)
  619. (object_destroy (enemy_b))
  620. (if camo_time_toggle
  621.     (begin (ai_place enemy_b/camo-at-rox)(set rox_user_state 7))
  622.     (ai_place enemy_b/rox)
  623. )
  624. (sleep_until (= 0 (ai_living_count enemy_b)) 5)
  625. (set rox_user_state 1))
  626.  
  627. (script continuous pickup_camo_friend
  628. (sleep_until (and (= 0 camo_time_toggle)(volume_test_object pickup_camo (friend))) 20)
  629. (sleep 2 friend_death_tracker)
  630. (sleep 3 pickup_rox_friend)
  631. (set camo_time_toggle 1)
  632. (object_destroy (friend))
  633. (if (= 2 rox_user_state)
  634.     (begin  (ai_place teammate/rox-at-camo)
  635.         (set rox_user_state 3)(activate_nav_point_object default_red (player0) (unit (list_get (ai_actors teammate/rox-at-camo) 0)) 0.6))
  636.     (begin  (ai_place teammate/camo)
  637.         (activate_nav_point_object default_red (player0) (unit (list_get (ai_actors teammate/camo) 0)) 0.6)
  638.         (ai_command_list teammate goto_rox))
  639. )
  640. (sleep_until (or (= 0 camo_time_toggle)(>= 0 (unit_get_health (friend))))))
  641.  
  642. (script continuous pickup_camo_enemy_a
  643. (sleep_until (and (= 0 camo_time_toggle)(volume_test_object pickup_camo (enemy_a))) 20)
  644. (sleep 2 enemy_a_death_tracker)
  645. (sleep 3 pickup_rox_enemy_a)
  646. (set camo_time_toggle 1)
  647. (object_destroy (enemy_a))
  648. (if (= 4 rox_user_state)
  649.     (begin (ai_place enemy_a/rox-at-camo)(set rox_user_state 5))
  650.     (begin (ai_place enemy_a/camo)(ai_command_list enemy_a goto_rox))
  651. )
  652. (sleep_until (or (= 0 camo_time_toggle)(>= 0 (unit_get_health (enemy_a))))))
  653.  
  654. (script continuous pickup_camo_enemy_b
  655. (sleep_until (and (= 0 camo_time_toggle)(volume_test_object pickup_camo (enemy_b))) 20)
  656. (sleep 2 enemy_b_death_tracker)
  657. (sleep 3 pickup_rox_enemy_b)
  658. (set camo_time_toggle 1)
  659. (object_destroy (enemy_b))
  660. (if (= 6 rox_user_state)
  661.     (begin (ai_place enemy_b/rox-at-camo)(set rox_user_state 7))
  662.     (begin (ai_place enemy_b/camo)(ai_command_list enemy_b goto_rox))
  663. )
  664. (sleep_until (or (= 0 camo_time_toggle)(>= 0 (unit_get_health (enemy_b))))))
  665.  
  666. (script continuous os_deathtracker
  667. (sleep 20)
  668. (cond
  669.     ((= 1 os_user_state)(begin (sleep_until (or (= 0 (ai_living_count teammate))(= 0 os_user_state)) 5)(set os_user_state 2)))
  670.     ((= 3 os_user_state)(begin (sleep_until (or (= 0 (ai_living_count enemy_a))(= 0 os_user_state)) 5)(set os_user_state 4)))
  671.     ((= 5 os_user_state)(begin (sleep_until (or (= 0 (ai_living_count enemy_b))(= 0 os_user_state)) 5)(set os_user_state 6)))
  672. )
  673. )
  674.  
  675. (script continuous os_timerscript
  676. (sleep_until (< 0 os_timer) 30)
  677. (set os_timer (- 1 os_timer)))
  678.  
  679. (script continuous os_pickup
  680. (sleep_until
  681.     (or
  682.         (volume_test_object pickup_os (friend))
  683.         (volume_test_object pickup_os (enemy_a))
  684.         (volume_test_object pickup_os (enemy_b))
  685.     )
  686. 20)
  687. (set os_user_state 0)
  688. (cond
  689.     ((and (volume_test_object pickup_os (friend))(>= 1 (unit_get_shield (player0)))(>= 1 (unit_get_shield (player1))))
  690.         (begin
  691.             (object_cannot_take_damage (friend))
  692.             (unit_set_current_vitality (friend) 100 100)
  693.             (sleep 60)
  694.             (set os_user_state 1)
  695.             (object_can_take_damage (friend))
  696.             (set os_timer 30)
  697.             (sleep_until (or (= 0 os_timer)(= 0 (unit_get_shield (friend)))))
  698.             (if (= 1 os_user_state)
  699.                 (begin
  700.                     (unit_set_current_vitality (friend) 100 100)
  701.                     (set os_timer 45)
  702.                 )
  703.             )
  704.             (sleep_until (or (= 0 os_timer)(= 0 (unit_get_shield (friend)))))
  705.             (if (= 1 os_user_state)
  706.                 (begin
  707.                     (unit_set_current_vitality (friend) 100 100)
  708.                     (set os_timer 45)
  709.                 )
  710.             )
  711.             (sleep_until (or (= 0 os_timer)(= 0 (unit_get_shield (friend)))))
  712.             (if (= 1 os_user_state)
  713.                 (unit_set_current_vitality (friend) 100 100)
  714.             )
  715.             (set os_timer 0)
  716.             (set os_user_state 0)
  717.         ))
  718.     ((and (volume_test_object pickup_os (enemy_a))(>= 1 (unit_get_shield (player0)))(>= 1 (unit_get_shield (player1))))
  719.         (begin
  720.             (object_cannot_take_damage (enemy_a))
  721.             (unit_set_current_vitality (enemy_a) 100 100)
  722.             (sleep 60)
  723.             (set os_user_state 3)
  724.             (object_can_take_damage (enemy_a))
  725.             (set os_timer 30)
  726.             (sleep_until (or (= 0 os_timer)(= 0 (unit_get_shield (enemy_a)))))
  727.             (if (= 3 os_user_state)
  728.                 (begin
  729.                     (unit_set_current_vitality (enemy_a) 100 100)
  730.                     (set os_timer 45)
  731.                 )
  732.             )
  733.             (sleep_until (or (= 0 os_timer)(= 0 (unit_get_shield (enemy_a)))))
  734.             (if (= 3 os_user_state)
  735.                 (begin
  736.                     (unit_set_current_vitality (enemy_a) 100 100)
  737.                     (set os_timer 45)
  738.                 )
  739.             )
  740.             (sleep_until (or (= 0 os_timer)(= 0 (unit_get_shield (enemy_a)))))
  741.             (if (= 3 os_user_state)
  742.                 (unit_set_current_vitality (enemy_a) 100 100)
  743.             )
  744.             (set os_timer 0)
  745.             (set os_user_state 0)
  746.         ))
  747.     ((and (volume_test_object pickup_os (enemy_b))(>= 1 (unit_get_shield (player0)))(>= 1 (unit_get_shield (player1))))
  748.         (begin
  749.             (object_cannot_take_damage (enemy_b))
  750.             (unit_set_current_vitality (enemy_b) 100 100)
  751.             (sleep 60)
  752.             (set os_user_state 5)
  753.             (object_can_take_damage (enemy_b))
  754.             (set os_timer 30)
  755.             (sleep_until (or (= 0 os_timer)(= 0 (unit_get_shield (enemy_b)))))
  756.             (if (= 5 os_user_state)
  757.                 (begin
  758.                     (unit_set_current_vitality (enemy_b) 100 100)
  759.                     (set os_timer 45)
  760.             )
  761.             )
  762.             (sleep_until (or (= 0 os_timer)(= 0 (unit_get_shield (enemy_b)))))
  763.             (if (= 5 os_user_state)
  764.                 (begin
  765.                     (unit_set_current_vitality (enemy_b) 100 100)
  766.                     (set os_timer 45)
  767.                 )
  768.             )
  769.             (sleep_until (or (= 0 os_timer)(= 0 (unit_get_shield (enemy_b)))))
  770.             (if (= 5 os_user_state)
  771.                 (unit_set_current_vitality (enemy_b) 100 100)
  772.             )
  773.             (set os_timer 0)
  774.             (set os_user_state 0)
  775.         ))
  776. ))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top