mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 15:48:05 -05:00
MOTD: laundry machine always spawns zombies
This commit is contained in:
@ -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 )
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user