1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-21 12:40:20 -05:00
Files
BO2-Reimagined/scripts/zm/locs/common.gsc
Jbleezy 4cb45dd562 Diner: disable out of map zombie spawn points
Remove moving zombie spawn points
Move disable zombie spawn points code to location script
2022-01-10 09:28:06 -08:00

38 lines
921 B
Plaintext

#include maps/mp/_utility;
#include maps/mp/zombies/_zm_utility;
#include common_scripts/utility;
common_init()
{
level.enemy_location_override_func = ::enemy_location_override;
flag_wait( "initial_blackscreen_passed" );
maps/mp/zombies/_zm_game_module::turn_power_on_and_open_doors();
flag_wait( "start_zombie_round_logic" );
wait 1;
level notify( "revive_on" );
wait_network_frame();
level notify( "doubletap_on" );
wait_network_frame();
level notify( "marathon_on" );
wait_network_frame();
level notify( "juggernog_on" );
wait_network_frame();
level notify( "sleight_on" );
wait_network_frame();
level notify( "tombstone_on" );
wait_network_frame();
level notify( "Pack_A_Punch_on" );
}
enemy_location_override( zombie, enemy )
{
location = enemy.origin;
if ( is_true( self.reroute ) )
{
if ( isDefined( self.reroute_origin ) )
{
location = self.reroute_origin;
}
}
return location;
}