// SOS_Secret_Weapon SCRIPT by fre2d/Fredrik Segerfalk - Sons Of Stollig: fre2d@segerfalk.com // ============================================================= game_manager { spawn { //KJ: cheat fix, stops being able to walk into the red room steam tank (patch seem) create { scriptName "patchseemfix" origin "1638 -152 332" classname "func_fakebrush" contents 65536 // CONTENTS_PLAYERCLIP mins "-2 -4 -60" maxs "2 4 60" } //KJ: cheat fix, stops being able to walk outside the map create { scriptName "outsidefix" origin "-508 1484 484" classname "func_fakebrush" contents 65536 // CONTENTS_PLAYERCLIP mins "-4 -300 -52" maxs "4 300 52" } wait 100 // Wait for all entities to spawn wm_axis_respawntime 30 wm_allied_respawntime 20 wm_number_of_objectives 5 wm_set_round_timelimit 15 //wm_objective_status wm_objective_status 1 1 0 //documents allies wm_objective_status 1 0 0 //documents axis wm_objective_status 2 1 0 //radio allies wm_objective_status 2 0 0 //radio axis wm_objective_status 3 1 0 //forward spawn allies wm_objective_status 3 0 0 //forward spawn axis wm_objective_status 4 1 0 //upper door allies wm_objective_status 4 0 0 //upper door axis wm_objective_status 5 1 0 //lower door allies wm_objective_status 5 0 0 //lower door axis wait 50 setstate forwardspawn1_wobj invisible setstate forwardflag_cm_marker invisible setstate propeller invisible wm_set_defending_team 0 // Winner on expiration of round timer (0=Axis, 1=Allies, -1=no winner at expiration) wm_setwinner 0 //Assumes allies defending } } //end of game_manager // FORWARD SPAWN POINT ================================================ forwardspawn1_flag { spawn { accum 0 set 2 // Who owns flag: 0-Axis, 1-Allied } trigger axis_capture // Touched by an Axis player { accum 0 abort_if_equal 0 // do Axis own flag? accum 0 set 0 // Axis own the flag wm_announce "Axis reclaim the Forward Spawn!" wm_objective_status 3 0 2 wm_objective_status 3 1 1 alertentity forwardspawn1_wobj // Switch command map marker setstate forwardspawn1_wobj invisible setstate forwardflag_cm_marker invisible } trigger allied_capture // Touched by an allied player { accum 0 abort_if_equal 1 // do Allies own flag? accum 0 set 1 // Allied own the flag wm_announce "Allies capture the Forward Spawn!" wm_objective_status 3 0 1 wm_objective_status 3 1 2 alertentity forwardspawn1_wobj // Switch command map marker setstate forwardspawn1_wobj default setstate forwardflag_cm_marker default setautospawn "Forward Spawn" 1 // Set Allies to forward spawn } } // DESTRUCTIBLE STUFF =========================================== blowing up stuff is fun! upper_door { spawn { wait 200 constructible_class 3 } death { wm_announce "Allies have destroyed the Upper Door" wm_objective_status 4 1 2 wm_objective_status 4 0 1 } } lower_door { spawn { wait 200 constructible_class 3 } death { wm_announce "Allies have destroyed the Lower Door" wm_objective_status 5 0 1 wm_objective_status 5 1 2 } } songradio { spawn { wait 200 enablespeaker panzerlied } trigger radiodeath1 { disablespeaker panzerlied wm_announce "OMG! Somebody has destroyed the NOT so important radio!" } } // CONSTRUCTIBLE STUFF =========================================== Building is not so fun, but necessary! radio_script { spawn { wait 400 trigger self setup constructible_class 3 // Dyno } trigger setup { setstate radio_unfinished default setstate radio_unfinished_clip default setstate drop_point invisible // transmitter_obj } buildstart final { setstate radio_unfinished default setstate radio_unfinished_clip default setstate radio underconstruction } built final { setstate radio_unfinished invisible setstate radio_unfinished_clip invisible setstate drop_point default wm_announce "Allies have built the radio!" wm_announce "Allies drop point now available!" trigger airplane activated } decayed final { trigger self setup } death { trigger self setup wm_announce "Axis have destroyed the radio" wm_announce "Allies drop point NOT available!" trigger airplane deactivated } } // SEXy WEAPON ================================================= transmitter_obj { spawn { wait 50 } trigger stolen { setstate box invisible } trigger returned { setstate box default } death { wm_announce "Allied team has secured the secret weapon!" wm_setwinner 1 wait 500 wm_endround disablespeaker motor trigger airplane gameover } } // AIRPLANE... oh the sweet flyer! airplane { spawn { wait 200 followspline 0 spline0 5000 wait faceangles 0 1 0 50 } trigger activated { wait 300 startanimation 1 4 45 airplane wait 300 setstate propeller default wait 100 enablespeaker motor } trigger deactivated { wait 300 startanimation 1 1 15 airplane wait 300 setstate propeller invisible wait 100 disablespeaker motor } trigger gameover { wait 200 startanimation 1 2 45 airplane followspline 0 spline1 200 } } // MINEFIELD AT AIRPORT - PARTYCRACKERS No1 mines { spawn { wait 500 } activate { wm_announce "Someone stepped into the minefield" } }