// // Map: Byzantine // Author: Ifurita // 2010 mars, peyote, modified the 2 window at aixs gold, get destructed when door gets destroyed. // also modified map overtime, the team with more objectives wins, else its a draw. // needs etpro, or nq > 1.2.5, else remove the delete {} sections. game_manager //need a script_multiplayer with scriptname = game manager to autoexec { spawn { create { targetname "fix_windows" scriptname "fix_windows" classname "func_explosive" type "glass" health 0 spawnflags 4 model "*45" } create { targetname "fix_windows" scriptname "fix_windows" classname "func_explosive" type "glass" health 0 spawnflags 4 model "*47" } //These infos are from QMM Stripper.. delete { //classname=func_explosive //type=glass health 30 //spawnflags=4 model "*45" } delete { //classname=func_explosive //type=glass health 30 //spawnflags=4 model "*47" } remapshaderflush // Game rules wm_axis_respawntime 25 wm_allied_respawntime 25 wm_number_of_objectives 8 wm_set_round_timelimit 30 // Objectives //1 Seize Allied gold //2 Disassemble the radar transponder unit //3 Seize Radar beacon //4 Seize Axis gold //5 Disassemble the radio intercept unit //6 Seize radio codes //7 Hold Forward Spawn //8 Build Command Post // Current main objectives for each team (0=Axis, 1=Allies) wm_objective_status 1 0 0 wm_objective_status 1 1 0 wm_objective_status 2 0 0 wm_objective_status 2 1 0 wm_objective_status 3 0 0 wm_objective_status 3 1 0 wm_objective_status 4 0 0 wm_objective_status 4 1 0 wm_objective_status 5 0 0 wm_objective_status 5 1 0 wm_objective_status 6 0 0 wm_objective_status 6 1 0 wm_objective_status 7 0 0 wm_objective_status 7 1 0 wm_objective_status 8 0 0 wm_objective_status 8 1 0 //Accum values accum 1 set 0 //Overall Axis status accum 2 set 0 //Overall Allied status accum 7 set 2 //From Drakir's forward spawn point prefab, set 2 = null value accum 3 set -1 accum 4 set 2 // Stopwatch mode defending team (0=Axis, 1=Allies) wm_set_defending_team 0 // Winner on expiration of round timer (0=Axis, 1=Allies, -1=no winner at expiration) wm_setwinner 0 wait 2000 setautospawn "Mosque Courtyard" 1 //Uses name from description field of team_WOLF_objective setautospawn "Mosque Courtyard" 0 } //Objective Flags trigger obj1 //Return of Allied Gold and Radar Parts { accum 1 inc 1 accum 2 trigger_if_equal 0 game_manager axis_checkgame accum 2 trigger_if_equal 1 game_manager draw_game accum 1 trigger_if_equal 2 game_manager axis_wingame } trigger obj2 //Return of Axis Gold and Radar Parts { accum 2 inc 1 accum 1 trigger_if_equal 0 game_manager allied_checkgame accum 1 trigger_if_equal 1 game_manager draw_game accum 2 trigger_if_equal 2 game_manager axis_wingame } trigger draw_game { accum 4 set 2 } trigger axis_checkgame { accum 4 set 0 } trigger axis_wingame { wm_setwinner 0 wait 1500 //End the round wm_endround } trigger allied_checkgame { accum 4 set 1 } trigger allied_wingame // mirrors axis_checkgame { wm_setwinner 1 wait 1500 wm_endround } trigger timelimit_hit { wm_setwinner -1 accum 4 trigger_if_equal 0 game_manager axis_wingame accum 4 trigger_if_equal 1 game_manager allied_wingame // no ignore the flag.. //accum 4 trigger_if_equal 2 game_manager flag_wingame wait 4000 wm_endround } trigger depotflagblue { // Change the objective state internally, so UI can update, etc. // Allied takes control of depot // Some kind of UI pop-up to alert players wm_announce "Allies capture the Mosque Courtyard!" wm_objective_status 7 1 1 wm_objective_status 7 0 2 } trigger depotflagred { // Change the objective state internally, so UI can update, etc. // Axis takes control of depot // Some kind of UI pop-up to alert players wm_announce "Axis captures the Mosque Courtyard!" wm_objective_status 7 1 2 wm_objective_status 7 0 1 } } //End of Game_manager section // FORWARD SPAWN POINT ================================================ forward_spawn { spawn { wait 200 setstate mosque_wobj invisible accum 0 set 0 } trigger axis_capture { trigger game_manager depotflagred trigger forward_spawn setaxis } trigger allied_capture { trigger game_manager depotflagblue trigger forward_spawn setallies } trigger setaxis { setstate mosque_wobj default accum 0 abort_if_equal 0 accum 0 set 0 alertentity mosque_wobj } trigger setallies { setstate mosque_wobj default accum 0 abort_if_equal 1 accum 0 set 1 alertentity mosque_wobj } } // CONSTRUCTIBLE OBJECTIVES ================================================ //Axis safehouse door safehouse_script { spawn { wait 200 constructible_class 2 trigger self startup } buildstart final { } built final { setstate safehouse_target default setstate safehouse_materials invisible wm_announce "The Axis safehouse door has been constructed" } decayed final { trigger self startup } death { trigger self startup wm_announce "The Axis safehouse has been breached" setstate safehouse_materials default } trigger startup { setstate safehouse_target default setstate safehouse_materials invisible } } //Dock warehouse door dockpad_script { spawn { wait 200 constructible_class 2 trigger self startup } buildstart final { } built final { setstate dockpad_target default setstate dockpad_materials invisible wm_announce "The Dock Warehouse door has been built" } decayed final { trigger self startup } death { trigger self startup wm_announce "The Axis have destroyed the Dock Warehouse door" setstate dockpad_materials default } trigger startup { setstate dockpad_target default setstate dockpad_materials invisible } } // DECONSTRUCTIBLE OBJECTIVES ================================================ //Cabinet containing Allied Radar components (at dock) allied_radar_crate_open { spawn { wait 200 constructible_class 3 trigger self startup } buildstart final { } built final { setstate allied_radar_crate_open default setstate allied_radar_crate invisible wm_announce "The Axis have disassembled the radar cabinet" wm_objective_status 2 0 1 wm_objective_status 2 1 2 } decayed final { trigger self startup } death { } trigger startup { setstate allied_radar_crate default setstate allied_radar_crate_open invisible } } //Cabinet containing Axis Radar components (at safehouse) axis_radar_crate_open { spawn { wait 200 constructible_class 3 trigger self startup } buildstart final { } built final { setstate axis_radar_crate_open default setstate axis_radar_crate invisible wm_announce "The Allies have disassembled the radio cabinet" wm_objective_status 5 0 2 wm_objective_status 5 1 1 } decayed final { trigger self startup } death { } trigger startup { setstate axis_radar_crate default setstate axis_radar_crate_open invisible } } // DESTRUCTIBLE OBJECTIVES ================================================ //Door to room containing Allied gold alliedvault_script { spawn { wait 200 constructible_class 3 } death { wm_announce "Axis have opened the Allied gold safe" } } //Door to room containing Axis gold axisvault_script { spawn { wait 200 constructible_class 3 } death { //Blow the newly add window away, ~peyote alertentity fix_windows wm_announce "Allies have opened the Axis gold safe" } } // AXIS OBJECTIVES ================================================ //Radar allied_radar //enter this as the scriptname value for the team_CTF_red/blueflag entity { spawn { wait 200 setstate allied_radar_captured invisible } trigger stolen { setstate allied_radar_cm_marker invisible } trigger returned { setstate allied_radar_cm_marker default } trigger captured { wm_announce "The Axis have secured the transponder module" setstate allied_radar_red invisible setstate allied_radar_captured default // *----------------------------------- vo ------------------------------------------* wm_teamvoiceannounce 0 "axis_obj_secured" wm_teamvoiceannounce 1 "allied_obj_lost" // *----------------------------------- vo ------------------------------------------* wm_objective_status 3 0 1 wm_objective_status 3 1 2 } } //Gold allied_gold { spawn { wait 200 setstate allied_gold_captured invisible } trigger stolen { setstate allied_gold_cm_marker invisible } trigger returned { setstate allied_gold_cm_marker default } trigger captured { wm_announce "The Axis have secured the Allied gold" setstate allied_gold_red invisible setstate allied_gold_captured default // *----------------------------------- vo ------------------------------------------* wm_teamvoiceannounce 0 "axis_obj_secured" wm_teamvoiceannounce 1 "allied_obj_lost" // *----------------------------------- vo ------------------------------------------* wm_objective_status 1 0 1 wm_objective_status 1 1 2 } } allied_objectives //enter this as the scriptname value for the single trigger_flagonly_multiples entity { death { trigger game_manager obj1 } } // ALLIED OBJECTIVES ================================================ //Radar axis_radar { spawn { wait 200 setstate axis_radar_captured invisible } trigger stolen { setstate axis_radar_cm_marker invisible } trigger returned { setstate axis_radar_cm_marker default } trigger captured { wm_announce "The Allies have secured the radio codes" setstate axis_radar_red invisible setstate axis_radar_captured default // *----------------------------------- vo ------------------------------------------* wm_teamvoiceannounce 1 "allied_obj_secured" wm_teamvoiceannounce 0 "axis_obj_lost" // *----------------------------------- vo ------------------------------------------* wm_objective_status 6 0 2 wm_objective_status 6 1 1 } } //Gold axis_gold { spawn { wait 200 setstate axis_gold_captured invisible } trigger stolen { setstate axis_gold_cm_marker invisible } trigger returned { setstate axis_gold_cm_marker default } trigger captured { wm_announce "The Allies have secured the Axis gold" setstate axis_gold_red invisible setstate axis_gold_captured default // *----------------------------------- vo ------------------------------------------* wm_teamvoiceannounce 1 "allied_obj_secured" wm_teamvoiceannounce 0 "axis_obj_lost" // *----------------------------------- vo ------------------------------------------* wm_objective_status 4 0 2 wm_objective_status 4 1 1 } } axis_objectives { death { trigger game_manager obj2 } } // NEUTRAL COMMAND POST ================================================ // FROM Goldrush Thx SD!!! prefab by seven 2003 allied_compost_built { spawn { wait 400 trigger allied_compost_built setup constructible_class 2 } trigger setup { setchargetimefactor 1 soldier 1 setchargetimefactor 1 lieutenant 1 setchargetimefactor 1 medic 1 setchargetimefactor 1 engineer 1 setchargetimefactor 1 covertops 1 sethqstatus 1 0 } buildstart final { setstate allied_compost_built_model underconstruction setstate neutral_compost_closed_clip invisible setstate neutral_compost_closed_model invisible } built final { setstate allied_compost_built_model default setstate neutral_compost_closed_clip invisible setstate neutral_compost_closed_model invisible trigger allied_compost_built_model enable_allied_features enablespeaker allies_compost_sound } decayed final { setstate allied_compost_built_model invisible setstate neutral_compost_closed_clip default setstate neutral_compost_closed_model default } death { setstate allied_compost_built_model invisible setstate neutral_compost_closed_clip default setstate neutral_compost_closed_model default trigger allied_compost_built_model disable_allied_features disablespeaker allies_compost_sound } } allied_compost_built_model { spawn { wait 400 setstate allied_compost_built_model invisible } trigger enable_allied_features { setchargetimefactor 1 soldier 0.75 setchargetimefactor 1 lieutenant 0.75 setchargetimefactor 1 medic 0.75 setchargetimefactor 1 engineer 0.75 setchargetimefactor 1 covertops 0.75 sethqstatus 1 1 wm_announce "Allied Command Post constructed. Charge speed increased!" // *----------------------------------- vo ------------------------------------------* wm_teamvoiceannounce 0 "axis_hq_compost_constructed_allies" wm_teamvoiceannounce 1 "allies_hq_compost_constructed" wm_removeteamvoiceannounce 1 "allies_hq_compost_construct" // *---------------------------------------------------------------------------------* wm_objective_status 8 0 2 wm_objective_status 8 1 1 } trigger disable_allied_features { setchargetimefactor 1 soldier 1 setchargetimefactor 1 lieutenant 1 setchargetimefactor 1 medic 1 setchargetimefactor 1 engineer 1 setchargetimefactor 1 covertops 1 sethqstatus 1 0 wm_announce "Axis team has destroyed the Allied Command Post!" // *----------------------------------- vo ------------------------------------------* wm_addteamvoiceannounce 0 "axis_hq_compost_construct" wm_addteamvoiceannounce 1 "allies_hq_compost_construct" wm_teamvoiceannounce 0 "axis_hq_compost_construct" wm_teamvoiceannounce 1 "allies_hq_compost_damaged" // *---------------------------------------------------------------------------------* wm_objective_status 8 0 0 wm_objective_status 8 1 0 } } axis_compost_built { spawn { wait 400 trigger axis_compost_built setup constructible_class 2 } trigger setup { setchargetimefactor 0 soldier 1 setchargetimefactor 0 lieutenant 1 setchargetimefactor 0 medic 1 setchargetimefactor 0 engineer 1 setchargetimefactor 0 covertops 1 sethqstatus 0 0 } buildstart final { setstate axis_compost_built_model underconstruction setstate neutral_compost_closed_clip invisible setstate neutral_compost_closed_model invisible } built final { setstate axis_compost_built_model default setstate neutral_compost_closed_clip invisible setstate neutral_compost_closed_model invisible trigger axis_compost_built_model enable_axis_features enablespeaker axis_compost_sound } decayed final { setstate axis_compost_built_model invisible setstate neutral_compost_closed_clip default setstate neutral_compost_closed_model default } death { setstate axis_compost_built_model invisible setstate neutral_compost_closed_clip default setstate neutral_compost_closed_model default trigger axis_compost_built_model disable_axis_features disablespeaker axis_compost_sound } } axis_compost_built_model { spawn { wait 400 setstate axis_compost_built_model invisible } trigger enable_axis_features { setchargetimefactor 0 soldier 0.75 setchargetimefactor 0 lieutenant 0.75 setchargetimefactor 0 medic 0.75 setchargetimefactor 0 engineer 0.75 setchargetimefactor 0 covertops 0.75 sethqstatus 0 1 wm_announce "Axis Command Post constructed. Charge speed increased!" // *----------------------------------- vo ------------------------------------------* wm_teamvoiceannounce 0 "axis_hq_compost_constructed" wm_teamvoiceannounce 1 "allies_hq_compost_constructed_axis" wm_removeteamvoiceannounce 0 "axis_hq_compost_construct" // *---------------------------------------------------------------------------------* wm_objective_status 8 0 1 wm_objective_status 8 1 2 } trigger disable_axis_features { setchargetimefactor 0 soldier 1 setchargetimefactor 0 lieutenant 1 setchargetimefactor 0 medic 1 setchargetimefactor 0 engineer 1 setchargetimefactor 0 covertops 1 sethqstatus 0 0 wm_announce "Allied team has destroyed the Axis Command Post!" // *----------------------------------- vo ------------------------------------------* wm_addteamvoiceannounce 0 "axis_hq_compost_construct" wm_addteamvoiceannounce 1 "allies_hq_compost_construct" wm_teamvoiceannounce 0 "axis_hq_compost_damaged" wm_teamvoiceannounce 1 "allies_hq_compost_construct" // *---------------------------------------------------------------------------------* wm_objective_status 8 0 0 wm_objective_status 8 1 0 } } //Constructable MG positions //MG on top of Allied Operations dock_mg { spawn { wait 200 constructible_class 2 trigger self startup } buildstart final { } built final { setstate dockmg_extra default setstate dockmg_mg42 default setstate dockmg_crates invisible wm_announce "Allied team has built the dock MG nest!" } decayed final { trigger self startup } death { trigger self startup wm_announce "Axis team has destroyed the dock MG nest!" } trigger startup { setstate dockmg_extra invisible setstate dockmg_mg42 invisible setstate dockmg_crates default repairmg42 construction_mg42 } } //MG by North Market Patio patio_mg { spawn { wait 200 constructible_class 2 trigger self startup } buildstart final { } built final { setstate patiomg_extra default setstate patiomg_mg42 default setstate patiomg_crates invisible wm_announce "Axis team has built the North Patio MG nest!" } decayed final { trigger self startup } death { trigger self startup wm_announce "Allied team has destroyed the North Patio MG nest!" } trigger startup { setstate patiomg_extra invisible setstate patiomg_mg42 invisible setstate patiomg_crates default repairmg42 construction_mg42 } }