diff --git a/README.md b/README.md index 2fba5c3f..9c965eea 100644 --- a/README.md +++ b/README.md @@ -602,6 +602,7 @@ * Electric chairs appear immediately after crashing at the Golden Gate Bridge * Zombies spawn sooner after crashing at the Golden Gate Bridge * Key no longer shows on HUD +* Opening one of the starting room doors no longer opens the other one * Brutus no longer spawns if no doors have been opened * Acid Trap: kills on any round (normally stops killing after round 158 on PC) * Acid Trap: kills zombies instantly diff --git a/scripts/zm/zm_prison/zm_prison_reimagined.gsc b/scripts/zm/zm_prison/zm_prison_reimagined.gsc index 68e8d884..a026b757 100644 --- a/scripts/zm/zm_prison/zm_prison_reimagined.gsc +++ b/scripts/zm/zm_prison/zm_prison_reimagined.gsc @@ -68,6 +68,8 @@ main() replaceFunc(maps\mp\zombies\_zm_weap_tomahawk::tomahawk_attack_zombies, scripts\zm\replaced\_zm_weap_tomahawk::tomahawk_attack_zombies); replaceFunc(maps\mp\zombies\_zm_weap_tomahawk::tomahawk_return_player, scripts\zm\replaced\_zm_weap_tomahawk::tomahawk_return_player); replaceFunc(maps\mp\zombies\_zm_zonemgr::manage_zones, ::manage_zones); + + door_changes(); } init() @@ -90,6 +92,23 @@ init() level thread grief_brutus_spawn_after_time(); } +door_changes() +{ + num = 0; + targets = getentarray( "cellblock_start_door", "targetname" ); + zombie_doors = getentarray( "zombie_door", "targetname" ); + for ( i = 0; i < zombie_doors.size; i++ ) + { + if ( isdefined( zombie_doors[i].target ) && zombie_doors[i].target == "cellblock_start_door" ) + { + zombie_doors[i].target += num; + targets[num].targetname += num; + targets[num + 2].targetname += num; + num++; + } + } +} + zombie_init_done() { self.allowpain = 0;