1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 07:08:06 -05:00

MOTD: laundry machine always spawns zombies

This commit is contained in:
Jbleezy
2023-04-30 01:27:13 -07:00
parent adcf0f1ded
commit 2038d4623c
3 changed files with 32 additions and 1 deletions

View File

@ -632,6 +632,8 @@
* Decreased starting room doors cost from 1000 to 750
* Opening one of the starting room doors no longer opens the other
* Brutus no longer spawns if no doors have been opened
* Activating the laundry machine always spawns zombies instead of Brutus
* Players no longer respawn in the Acid Trap
* Acid Trap: kills on any round (normally stops killing after round 158 on PC)
* Acid Trap: kills zombies instantly
* Acid Trap: decreased player damage from 75% of max health to 50% of max health
@ -639,7 +641,6 @@
* Tower Trap: kills on any round in 1 shot
* Tower Trap (upgraded): kills on any round in 1-2 shots
* Tower Trap (upgraded): stays upgraded until the end of the round
* Players no longer respawn in the Acid Trap
* Zombies spawn in the Docks zone when in the Docks Gates zone
* Zombies spawn in the Docks Gates zone when in the Docks zone
* Quest: number pad only needs each number to be shocked once in order to complete

View File

@ -22,6 +22,35 @@
#include maps\mp\zombies\_zm_clone;
#include maps\mp\zm_alcatraz_sq;
dryer_zombies_thread()
{
n_zombie_count_min = 20;
e_shower_zone = getent( "cellblock_shower", "targetname" );
flag_wait( "dryer_cycle_active" );
if ( level.zombie_total < n_zombie_count_min )
level.zombie_total = n_zombie_count_min;
while ( flag( "dryer_cycle_active" ) )
{
a_zombies_in_shower = [];
a_zombies_in_shower = get_zombies_touching_volume( "axis", "cellblock_shower", undefined );
if ( a_zombies_in_shower.size < n_zombie_count_min )
{
e_zombie = get_farthest_available_zombie( e_shower_zone );
if ( isdefined( e_zombie ) && !isinarray( a_zombies_in_shower, e_zombie ) )
{
e_zombie notify( "zapped" );
e_zombie thread dryer_teleports_zombie();
}
}
wait 1;
}
}
track_quest_status_thread()
{
while ( true )

View File

@ -32,6 +32,7 @@ main()
replaceFunc(maps\mp\zm_alcatraz_gamemodes::init, scripts\zm\replaced\zm_alcatraz_gamemodes::init);
replaceFunc(maps\mp\zm_alcatraz_utility::blundergat_upgrade_station, scripts\zm\replaced\zm_alcatraz_utility::blundergat_upgrade_station);
replaceFunc(maps\mp\zm_alcatraz_utility::check_solo_status, scripts\zm\replaced\zm_alcatraz_utility::check_solo_status);
replaceFunc(maps\mp\zm_alcatraz_sq::dryer_zombies_thread, scripts\zm\replaced\zm_alcatraz_sq::dryer_zombies_thread);
replaceFunc(maps\mp\zm_alcatraz_sq::track_quest_status_thread, scripts\zm\replaced\zm_alcatraz_sq::track_quest_status_thread);
replaceFunc(maps\mp\zm_alcatraz_sq::plane_boarding_thread, scripts\zm\replaced\zm_alcatraz_sq::plane_boarding_thread);
replaceFunc(maps\mp\zm_alcatraz_sq::plane_flight_thread, scripts\zm\replaced\zm_alcatraz_sq::plane_flight_thread);