mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-17 02:28:06 -05:00
Die Rise: bleed out zombies that are alone in the Green Highrise Level 1b zone
This commit is contained in:
@ -62,6 +62,7 @@ init()
|
||||
|
||||
level thread elevator_call();
|
||||
level thread escape_pod_call();
|
||||
level thread zombie_bad_zone_watcher();
|
||||
}
|
||||
|
||||
zombie_init_done()
|
||||
@ -449,4 +450,46 @@ escape_pod_call_think()
|
||||
|
||||
flag_waitopen( "escape_pod_needs_reset" );
|
||||
}
|
||||
}
|
||||
|
||||
zombie_bad_zone_watcher()
|
||||
{
|
||||
level endon( "end_game" );
|
||||
level endon( "green_level3_door2" );
|
||||
|
||||
elevator_volume = getent( "elevator_1d", "targetname" );
|
||||
|
||||
while ( 1 )
|
||||
{
|
||||
wait 0.05;
|
||||
|
||||
if ( maps\mp\zombies\_zm_zonemgr::player_in_zone( "zone_green_level3c" ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
zombies = getaiarray( level.zombie_team );
|
||||
|
||||
foreach ( zombie in zombies )
|
||||
{
|
||||
if ( is_true( zombie.completed_emerging_into_playable_area ) && zombie maps\mp\zombies\_zm_zonemgr::entity_in_zone( "zone_green_level3c" ) && !zombie istouching( elevator_volume ) )
|
||||
{
|
||||
if ( is_true( zombie.is_leaper ) )
|
||||
{
|
||||
self maps\mp\zombies\_zm_ai_leaper::leaper_cleanup();
|
||||
}
|
||||
else
|
||||
{
|
||||
level.zombie_total++;
|
||||
|
||||
if ( self.health < level.zombie_health )
|
||||
{
|
||||
level.zombie_respawned_health[level.zombie_respawned_health.size] = self.health;
|
||||
}
|
||||
}
|
||||
|
||||
zombie dodamage( zombie.health + 100, zombie.origin );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user