From a96e77d5c75c819bc32841dc031925fee2b6e922 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Thu, 27 Feb 2020 17:11:18 -0800 Subject: [PATCH] Grief on Bus Depot: local electric doors closed --- README.md | 3 +++ _zm_reimagined.gsc | 23 +++++++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 84d95d40..bb234942 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,9 @@ * Survival: replaced Galvaknuckles wallbuy with Claymore wallbuy * Grief: added Claymore wallbuy +#### Bus Depot +* Grief: Turbine doors closed + ### Die Rise * Zombies no longer spawn in the Skyscraper Tower zone when in the Trample Steam zone * Zombies no longer spawn in the zone next to the AN94 when in the AN94 zone while the debris is closed diff --git a/_zm_reimagined.gsc b/_zm_reimagined.gsc index 373ed1e5..0254b1ac 100644 --- a/_zm_reimagined.gsc +++ b/_zm_reimagined.gsc @@ -95,6 +95,10 @@ post_all_players_spawned() jetgun_remove_forced_weapon_switch(); jetgun_remove_drop_fn(); + depot_grief_close_local_electric_doors(); + + town_move_staminup_machine(); + slipgun_always_kill(); slipgun_disable_reslip(); @@ -115,8 +119,6 @@ post_all_players_spawned() level thread transit_power_local_electric_doors_globally(); - level thread town_move_staminup_machine(); - level thread prison_auto_refuel_plane(); level thread buried_deleteslothbarricades(); @@ -1190,6 +1192,23 @@ transit_power_local_electric_doors_globally() } } +depot_grief_close_local_electric_doors() +{ + if(!(level.scr_zm_ui_gametype == "zgrief" && level.scr_zm_map_start_location == "transit")) + { + return; + } + + zombie_doors = getentarray( "zombie_door", "targetname" ); + foreach (door in zombie_doors) + { + if ( isDefined( door.script_noteworthy ) && door.script_noteworthy == "local_electric_door" ) + { + door delete(); + } + } +} + town_move_staminup_machine() { if (!(!is_classic() && level.scr_zm_map_start_location == "town"))