1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-26 23:20:34 -05:00

Die Rise: fix falling off the map not using self revives in solo

This commit is contained in:
Jbleezy
2023-05-16 01:26:25 -07:00
parent 78f048e36f
commit f46d9db012

View File

@ -2350,6 +2350,12 @@ player_out_of_playable_area_monitor()
continue; continue;
} }
if ( get_players().size == 1 && flag( "solo_game" ) && ( isdefined( self.waiting_to_revive ) && self.waiting_to_revive ) )
{
wait( get_player_out_of_playable_area_monitor_wait_time() );
continue;
}
if ( !self in_life_brush() && ( self in_kill_brush() || !self in_enabled_playable_area() ) ) if ( !self in_life_brush() && ( self in_kill_brush() || !self in_enabled_playable_area() ) )
{ {
if ( !isdefined( level.player_out_of_playable_area_monitor_callback ) || self [[ level.player_out_of_playable_area_monitor_callback ]]() ) if ( !isdefined( level.player_out_of_playable_area_monitor_callback ) || self [[ level.player_out_of_playable_area_monitor_callback ]]() )
@ -2360,23 +2366,18 @@ player_out_of_playable_area_monitor()
self playlocalsound( level.zmb_laugh_alias ); self playlocalsound( level.zmb_laugh_alias );
wait 0.5; wait 0.5;
if ( get_players().size == 1 && flag( "solo_game" ) && ( isdefined( self.waiting_to_revive ) && self.waiting_to_revive ) ) self.lives = 0;
level notify( "end_game" ); self dodamage( self.health + 1000, self.origin );
else
{
self.lives = 0;
self dodamage( self.health + 1000, self.origin );
if (isDefined(level.player_suicide_func)) if (isDefined(level.player_suicide_func))
{ {
wait 0.05; wait 0.05;
self thread [[level.player_suicide_func]](); self thread [[level.player_suicide_func]]();
} }
else else
{ {
self.bleedout_time = 0; self.bleedout_time = 0;
} }
}
} }
} }