Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 12.43 KB | None | 0 0
  1. ;;GAME GLOBALS----------------------------------------------------------------
  2.  
  3. (global short rounds_completed 0)
  4. (global short lives 999)
  5. (global trigger_volume battlefield_volume deathbystupidness_1)
  6. (global short restart_battlefield 0)
  7. (global boolean life_titles true)
  8. (global short destroyall 0)
  9.  
  10. ;ITEM GLOBALS----------------------------------------------------------------
  11.  
  12. (global boolean bubble_shield_possession false)
  13.  
  14. (global boolean existing_powerup false)
  15. (global boolean existing_weapon false)
  16. (global boolean existing_pelican false)
  17. (global boolean existing_sparrowhawk false)
  18.  
  19. (global boolean existing_phantom_1 false)
  20. (global boolean existing_phantom_2 false)
  21. (global boolean existing_phantom_3 false)
  22.  
  23. ;PLAYER----------------------------------------------------------------------
  24. (script static unit player
  25. (unit (list_get (players) 0)))
  26.  
  27. ;THIS IS THE MUSIC SCRIPT----------------------------------------------------
  28.  
  29. (script static void music_ambercladremix
  30.     (sound_looping_start sound\moooseguy\sound_looping\ambercladremix none 1))
  31. (script static void music_walkinwoodsremix
  32.     (sound_looping_start sound\moooseguy\sound_looping\walkinwoodsremix none 1))
  33. (script static void music_haloremixepicintro
  34.     (sound_looping_start sound\moooseguy\sound_looping\haloremixepicintro none 1))
  35. (script static void music_bothways
  36.     (sound_looping_start sound\moooseguy\sound_looping\bothways none 1))
  37. (script static void music_epicodst
  38.     (sound_looping_start sound\moooseguy\sound_looping\epicodst none 1))
  39. (script static void music_lonewolf
  40.     (sound_looping_start sound\moooseguy\sound_looping\lonewolf none 1))
  41. (script static void music_wintercontingency
  42.     (sound_looping_start sound\moooseguy\sound_looping\wintercontingency none 1))
  43. (script static void music_coviedanceremix
  44.     (sound_looping_start sound\moooseguy\sound_looping\coviedanceremix none 1))
  45. (script static void music_unforgottenremix
  46.     (sound_looping_start sound\moooseguy\sound_looping\unforgottenremix none 1))
  47. (script static void music_haloreach
  48.     (sound_looping_start sound\moooseguy\sound_looping\haloreach none 1))
  49. (script static void music_tipofthespear
  50.     (sound_looping_start sound\moooseguy\sound_looping\tipofthespear none 1))
  51.  
  52.  
  53. ;;THIS IS THE LIFE LOST SCRIPT-------------------------------------------
  54.  
  55. (script dormant life_lost
  56. (sleep_until (= (unit_get_health (player)) 0) 1)
  57.     (set life_titles 0)
  58.     (set lives (- lives 1))
  59.     (player_enable_input 0)
  60.     (object_cannot_take_damage (player))
  61.     (player_camera_control 0)
  62.     (object_create_anew spawnball)
  63.     (fade_out 0 0 0 20)
  64.     (sleep 20)
  65.     (show_hud 0)
  66.     (object_teleport (player) respawn_point)
  67. (if (= lives 0)
  68.     (object_teleport (player) hide))
  69.     (sleep 20)
  70.     (fade_in 0 0 0 20)
  71. (player_add_equipment (player) maiballs false)
  72.     (sleep 15)
  73. (player_add_equipment (player) empty true)
  74.     (sleep 15)
  75. (player_add_equipment (player) respawn true)
  76.     (show_hud 1)
  77.     (player_enable_input 1)
  78.     (player_camera_control 1)
  79.     (sleep (* 30 5))
  80.     (object_can_take_damage (player))
  81. )
  82.  
  83. ;;THESE ARE THE WAVE SCRIPTS------------------------------------------------
  84.  
  85. (script dormant wave1
  86.     (sleep (* 30.00 6.00))
  87.     (ai_place wave_gravlift/wave1)
  88.         (sleep (* 30.00 2.00))
  89.         (ai_magically_see_unit wave_gravlift/wave1 (player))
  90.         (ai_try_to_fight_player wave_gravlift/wave1)
  91.     (object_destroy control_begin_game)
  92.     (object_destroy control_next_round)
  93.     (object_create_anew control_end_game)
  94.     (sleep_until (= (ai_living_count wave_gravlift/wave1) 0))
  95.     (if (= destroyall 0)
  96.         (wake wave2))
  97. )
  98.  
  99. (script dormant wave2
  100.     (music_walkinwoodsremix))
  101.  
  102. ;;THIS IS THE CREDITS CUTSCENE----------------------------------------------
  103.  
  104. (script dormant credits_cutscene
  105.     (volume_teleport_players_not_inside hide endgame_cutscene_test)
  106.     (player_enable_input 0)
  107.     (cinematic_start)
  108.     (set destroyall 1)
  109.     (camera_control 1)
  110.     (object_destroy_all)
  111.         (object_create_anew secretroombattery)
  112.         (object_create_anew secretbush1)
  113.         (object_create_anew secretbush2)
  114.         (object_create_anew secretbush3)
  115.         (object_create_anew secretbush4)
  116.         (object_create_anew secretbush5)
  117.         (object_create_anew secretbush6)
  118.         (object_create_anew secretbush7)
  119.         (object_create_anew secretbush8)
  120.     (camera_set credits1 1)
  121.     (sleep 50)
  122.     (fade_in 0 0 0 30)
  123.     (camera_set credits2 100)
  124.     (sleep 50)
  125.     (camera_set credits3 100)
  126.     (sleep 50)
  127.     (object_create_anew podguy)
  128.     (object_teleport podguy hideplayer)
  129.     (camera_set credits4 100)
  130.     (sleep 50)
  131.     (camera_set credits5 100)
  132.     (sleep (* 30 6.5))
  133.     (fade_out 0 0 0 20)
  134.     (sleep 20)
  135.     (cinematic_stop)
  136.     (camera_set ranking_cam 1)
  137.     (fade_in 0 0 0 20)
  138.     (cinematic_set_title you_are_a)
  139.     (if (= rounds_completed 0)
  140.         (begin (cinematic_set_title ranknoob)
  141.         (cinematic_set_title ranknoob_compliment)))
  142.     (if (= rounds_completed 1)
  143.         (begin (cinematic_set_title ranknoob)
  144.         (cinematic_set_title ranknoob_compliment)))
  145.     (if (= rounds_completed 2)
  146.         (begin (cinematic_set_title rankhero)
  147.         (cinematic_set_title rankhero_compliment)))
  148.     (if (= rounds_completed 3)
  149.         (begin (cinematic_set_title rankhero)
  150.         (cinematic_set_title rankhero_compliment)))
  151.     (if (= rounds_completed 4)
  152.         (begin (cinematic_set_title ranklegend)
  153.         (cinematic_set_title ranklegend_compliment)))
  154.     (if (= rounds_completed 5)
  155.         (begin (cinematic_set_title ranklegend)
  156.         (cinematic_set_title ranklegend_compliment)))
  157.     (if (>= rounds_completed 5)
  158.         (begin (cinematic_set_title rankmyth)
  159.         (cinematic_set_title rankmyth_compliment)))
  160. )
  161.  
  162. ;;THIS IS THE OUT OF LIVES CUTSCENE------------------------------------------
  163.  
  164. (script dormant death_cutscene
  165.     (enable_hud_help_flash false)
  166.     (show_hud_help_text false)
  167.     (player_enable_input 0)
  168.     (sound_looping_predict sound\moooseguy\sound_looping\perilremix)
  169.     (cinematic_start)
  170.     (sound_looping_start sound\moooseguy\sound_looping\perilremix none 1)
  171.     (camera_control 1)
  172.     (ai_disregard (player) true)
  173.     (camera_set death1 1)
  174.     (sleep 20)
  175.     (object_create_anew deadguy)
  176.     (camera_set death2 90)
  177.     (sleep 30)
  178.     (camera_set death3 100)
  179.     (sleep 30)
  180.     (camera_set death4 100)
  181.     (sleep 50)
  182.     (camera_set death5 100)
  183.     (sleep 50)
  184.     (camera_set death6 100)
  185.     (sleep 30)
  186.     (camera_set death7 100)
  187.     (sleep 50)
  188.     (camera_set death8 110)
  189.     (cinematic_set_title gameover)
  190.     (sleep 150)
  191.     (fade_out 0 0 0 30)
  192.     (sleep 50)
  193.     (cinematic_stop)
  194.     (wake credits_cutscene)
  195. )
  196.  
  197. ;;THIS IS THE CINEMATIC TITLES LIFE SCRIPT------------------------------
  198.  
  199. (script dormant life_titlez
  200.     (if
  201.     (>= lives 0)
  202.     (begin
  203.     (if (= lives 11)
  204.         (if (= life_titles false)
  205.         (begin
  206.             (cinematic_set_title livesmax)
  207.             (set life_titles true))))
  208.     (if (= lives 10)
  209.         (if (= life_titles false)
  210.         (begin
  211.             (cinematic_set_title lives9)
  212.             (set life_titles true))))
  213.     (if (= lives 9)
  214.         (if (= life_titles false)
  215.         (begin
  216.             (cinematic_set_title lives8)
  217.             (set life_titles true))))
  218.     (if (= lives 8)
  219.         (if (= life_titles false)
  220.         (begin
  221.             (cinematic_set_title lives7)
  222.             (set life_titles true))))
  223.     (if (= lives 7)
  224.         (if (= life_titles false)
  225.         (begin
  226.             (cinematic_set_title lives6)
  227.             (set life_titles true))))
  228.     (if (= lives 6)
  229.         (if (= life_titles false)
  230.         (begin
  231.             (cinematic_set_title lives5)
  232.             (set life_titles true))))
  233.     (if (= lives 5)
  234.         (if (= life_titles false)
  235.         (begin
  236.             (cinematic_set_title lives4)
  237.             (set life_titles true))))
  238.     (if (= lives 4)
  239.         (if (= life_titles false)
  240.         (begin
  241.             (cinematic_set_title lives3)
  242.             (set life_titles true))))
  243.     (if (= lives 3)
  244.         (if (= life_titles false)
  245.         (begin
  246.             (cinematic_set_title lives2)
  247.             (set life_titles true))))
  248.     (if (= lives 2)
  249.         (if (= life_titles false)
  250.         (begin
  251.             (cinematic_set_title lives1)
  252.             (set life_titles true))))
  253.     (if (= lives 1)
  254.         (if (= life_titles false)
  255.         (begin
  256.             (cinematic_set_title lives0)
  257.             (set life_titles true))))
  258.     (if (= lives 0)
  259.         (begin
  260.         (set life_titles true)
  261.         (fade_out 0 0 0 20)
  262.         (sleep 30)
  263.         (wake death_cutscene)
  264.         (sleep_until (volume_test_objects hide (player)) 999)))
  265. )))
  266.  
  267. ;;THIS IS THE STARTUP CUTSCENE----------------------------------------
  268.  
  269. (script startup startup_cutscene
  270.     (sound_looping_predict sound\moooseguy\sound_looping\ambercladremix)
  271.     (object_pvs_set_camera loadbipeds)
  272.     (sound_looping_start sound\moooseguy\sound_looping\ambercladremix none 1)
  273.     (hud_set_objective_text pausemenu)
  274.     (set cheat_deathless_player true)
  275.     (show_hud 0)
  276.     (ai_allegiance flood human)
  277.     (ai_allegiance flood sentinel)
  278.     (ai_allegiance flood covenant)
  279.     (ai_allegiance sentinel covenant)
  280.     (cinematic_start)
  281.     (camera_control 1)
  282.     (object_destroy podguy)
  283.     (object_destroy deadguy)
  284.     (volume_teleport_players_not_inside hide hideplayer)
  285.     (player_enable_input 0)
  286.     (fade_in 0 0 0 30)
  287.     (camera_set start1 100)
  288.     (sleep 50)
  289.     (camera_set start2 100)
  290.     (sleep 50)
  291.     (camera_set start3 100)
  292.     (sleep 50)
  293.     (camera_set start4 100)
  294.     (sleep 50)
  295.     (camera_set start5 100)
  296.     (sleep 50)
  297.     (camera_set start6 100)
  298.     (sleep 30)
  299.     (camera_set start7 100)
  300.     (sleep 50)
  301.     (object_create_anew podguy)
  302.     (ai_attach podguy cinematic_podguy)
  303.     (ai_command_list_by_unit podguy jumpout)
  304.     (camera_set start8 100)
  305.     (sleep 50)
  306.     (camera_set start9 100)
  307.     (sleep 50)
  308.     (camera_set start10 100)
  309.     (sleep 50)
  310.     (camera_set start11 100)
  311.     (sleep 150)
  312.     (object_destroy podguy)
  313.     (camera_control 0)
  314.     (cinematic_set_title welcome)
  315.     (volume_teleport_players_not_inside hide showplayer)
  316.     (player_enable_input 1)
  317.     (sleep (* 30 5.5))
  318.     (cinematic_stop)
  319.     (show_hud 1)
  320.     (cinematic_set_title startgameviapanel)
  321.     (activate_team_nav_point_flag default player holo_panel_flag 0.30)
  322.     (sleep_until (= (device_get_position control_begin_game) 1.00))
  323.     (begin
  324.     (if (= (game_difficulty_get) normal)
  325.         (set lives 10))
  326.     (if (= (game_difficulty_get) hard)
  327.         (set lives 9))
  328.     (if (= (game_difficulty_get) impossible)
  329.         (set lives 8)))
  330.     (deactivate_team_nav_point_flag player holo_panel_flag)
  331.     (wake wave1)
  332. )
  333.  
  334.  
  335. ;;----------------------------------------------------------------------------
  336. ;;$$$$$$$$$$$$$$$$$$$$$$$$$$$$--VARIOUS BASIC FUNCTIONS--$$$$$$$$$$$$$$$$$$$$$
  337. ;;----------------------------------------------------------------------------
  338.  
  339.  
  340. ;;THIS IS THE RETURN TO THE BATTLEFIELD SCRIPT--------------------------------
  341.  
  342. (script dormant BattlefieldScript
  343. (if (volume_test_objects battlefield_volume (players))
  344.     (begin
  345.     (show_hud_help_text true)
  346.     (hud_set_help_text awolp1)
  347.     (enable_hud_help_flash true)
  348.     (sleep 30)
  349.     (hud_set_help_text awolp2)
  350.     (sleep 30)
  351.     (show_hud_help_text false)
  352.     (if (volume_test_objects battlefield_volume (players))
  353.         (begin
  354.         (show_hud_help_text true)
  355.         (hud_set_help_text awolp3)
  356.         (sleep 30)
  357.         (show_hud_help_text false)
  358.     (if (volume_test_objects battlefield_volume (players))
  359.         (begin
  360.         (show_hud_help_text true)
  361.         (hud_set_help_text awolp4)
  362.         (sleep 30)
  363.         (show_hud_help_text false)
  364.     (if (volume_test_objects battlefield_volume (players))
  365.         (begin
  366.         (damage_object moooseguy\characters\spiblack\killme (player))
  367.         (sleep 60)))))))
  368.         (show_hud_help_text false)))
  369.        
  370. (if (= battlefield_volume deathbystupidness_10)
  371.     (set restart_battlefield 1))
  372. (if (= battlefield_volume deathbystupidness_9)
  373.     (set battlefield_volume deathbystupidness_10))
  374. (if (= battlefield_volume deathbystupidness_8)
  375.     (set battlefield_volume deathbystupidness_9))
  376. (if (= battlefield_volume deathbystupidness_7)
  377.     (set battlefield_volume deathbystupidness_8))
  378. (if (= battlefield_volume deathbystupidness_6)
  379.     (set battlefield_volume deathbystupidness_7))
  380. (if (= battlefield_volume deathbystupidness_5)
  381.     (set battlefield_volume deathbystupidness_6))
  382. (if (= battlefield_volume deathbystupidness_4)
  383.     (set battlefield_volume deathbystupidness_5))
  384. (if (= battlefield_volume deathbystupidness_3)
  385.     (set battlefield_volume deathbystupidness_4))
  386. (if (= battlefield_volume deathbystupidness_2)
  387.     (set battlefield_volume deathbystupidness_3))
  388. (if (= battlefield_volume deathbystupidness_1)
  389.     (set battlefield_volume deathbystupidness_2))
  390. (if (= restart_battlefield 1)
  391.     (begin
  392.     (set battlefield_volume deathbystupidness_1)
  393.     (set restart_battlefield 0)))
  394. )
  395.  
  396.  
  397. ;;I MADE THIS FOR YOU-----------------------------------------------------------
  398.  
  399. (script continuous deathless_keep
  400. (if (= cheat_deathless_player false)
  401.     (set cheat_deathless_player true)
  402. )
  403.  
  404. (if (= (unit_get_shield (player)) 1)
  405.     (units_set_current_vitality (player) 100 100)
  406.  )
  407.  
  408. (wake BattlefieldScript)
  409. (sleep 30)
  410.  
  411. (if (= (volume_test_object deathbycookie (player) ) 1)
  412.     (damage_object moooseguy\characters\spiblack\killme (player))
  413. )
  414.  
  415. (wake life_lost)
  416. (sleep 15)
  417. (wake life_titlez)
  418.    
  419. )
  420.  
  421. ;;THATS IT FOR NOW, AND I LIKE PIE,  , HAHAHAHAHAHA------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement