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

Die Rise: zombies are no longer killed while spawning in a stationary elevator

This commit is contained in:
Jbleezy
2023-04-17 00:52:07 -07:00
parent a1072d0abb
commit fa6449a48e
3 changed files with 50 additions and 2 deletions

View File

@ -578,7 +578,7 @@
* Escape pod can be used with any amount of players
* Moved weapon locker to the downstairs fridge
* Quick Revive elevator randomizes with Speed Cola and Who's Who elevators
* Zombies no longer spawn in an elevator when the elevator is within 1 floor of the spawn location
* Zombies are no longer killed while spawning in a stationary elevator
* Zombies no longer spawn in the Upper Blue Highrise zone when in the Green Highrise zone
* Zombies no longer spawn in the zone next to the Lower Orange Highrise zone when in the Lower Orange Highrise zone while the debris is closed
* Fixed weapon model angle on upside down Mystery Box

View File

@ -255,7 +255,7 @@ faller_location_logic()
faller_spawn_points = getstructarray( "faller_location", "script_noteworthy" );
leaper_spawn_points = getstructarray( "leaper_location", "script_noteworthy" );
spawn_points = arraycombine( faller_spawn_points, leaper_spawn_points, 1, 0 );
dist_check = 65536;
dist_check = 16384;
elevator_names = getarraykeys( level.elevators );
elevators = [];
@ -322,6 +322,44 @@ faller_location_logic()
disable_elevator_spawners( volume, spawn_points );
}
wait 0.05;
}
}
watch_for_elevator_during_faller_spawn()
{
self endon( "death" );
self endon( "risen" );
self endon( "spawn_anim" );
while ( true )
{
should_gib = 0;
foreach ( elevator in level.elevators )
{
if ( is_true( elevator.body.is_moving ) && self istouching( elevator.body ) )
should_gib = 1;
}
if ( should_gib )
{
playfx( level._effect["zomb_gib"], self.origin );
if ( !( isdefined( self.has_been_damaged_by_player ) && self.has_been_damaged_by_player ) && !( isdefined( self.is_leaper ) && self.is_leaper ) )
level.zombie_total++;
if ( isdefined( self.is_leaper ) && self.is_leaper )
{
self maps\mp\zombies\_zm_ai_leaper::leaper_cleanup();
self dodamage( self.health + 100, self.origin );
}
else
self delete();
break;
}
wait 0.05;
}
}

View File

@ -58,6 +58,7 @@ init()
slipgun_change_ammo();
level thread custom_faller_entrance_logic();
level thread elevator_call();
level thread escape_pod_call();
}
@ -143,6 +144,15 @@ onbuyweapon_slipgun( player )
level notify( "slipgun_bought", player );
}
custom_faller_entrance_logic()
{
flag_wait( "initial_blackscreen_passed" );
wait 1;
level.custom_faller_entrance_logic = scripts\zm\replaced\zm_highrise_elevators::watch_for_elevator_during_faller_spawn;
}
elevator_call()
{
trigs = getentarray( "elevator_key_console_trigger", "targetname" );