mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-29 16:40:18 -05:00
Solo lives uses separate variable instead of .lives
Makes solo lives work on MOTD
This commit is contained in:
@ -610,7 +610,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
}
|
||||
if ( count < players.size || isDefined( level._game_module_game_end_check ) && ![[ level._game_module_game_end_check ]]() )
|
||||
{
|
||||
if ( isDefined( self.lives ) && self.lives > 0 && is_true( level.force_solo_quick_revive ) && self hasperk( "specialty_quickrevive" ) )
|
||||
if ( isDefined( self.solo_lives_given ) && self.solo_lives_given < 3 && is_true( level.force_solo_quick_revive ) && self hasperk( "specialty_quickrevive" ) )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm::wait_and_revive();
|
||||
}
|
||||
@ -679,7 +679,7 @@ is_solo_death( self, players )
|
||||
{
|
||||
if ( players.size == 1 && flag( "solo_game" ) )
|
||||
{
|
||||
if(self.lives == 0)
|
||||
if(self.solo_lives_given >= 3)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@ -737,7 +737,7 @@ player_laststand( einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, s
|
||||
players = get_players();
|
||||
if ( players.size == 1 && flag( "solo_game" ) )
|
||||
{
|
||||
if ( self.lives > 0 )
|
||||
if ( self.solo_lives_given < 3 )
|
||||
{
|
||||
active_perks = 0;
|
||||
if(isDefined(self.perks_active))
|
||||
@ -862,7 +862,7 @@ wait_and_revive()
|
||||
}
|
||||
flag_clear( "wait_and_revive" );
|
||||
self maps/mp/zombies/_zm_laststand::auto_revive( self );
|
||||
self.lives--;
|
||||
self.solo_lives_given++;
|
||||
|
||||
self.waiting_to_revive = 0;
|
||||
if ( is_true( self.pers_upgrades_awarded[ "perk_lose" ] ) )
|
||||
|
@ -19,9 +19,9 @@ chugabud_bleed_timeout( delay, corpse )
|
||||
}
|
||||
}
|
||||
|
||||
if ( flag( "solo_game" ) && self.lives > 0 && isDefined( self.loadout.perks ) && self.loadout.perks.size > 0 )
|
||||
if ( flag( "solo_game" ) && self.solo_lives_given < 3 )
|
||||
{
|
||||
self.lives--;
|
||||
self.solo_lives_given++;
|
||||
corpse notify( "player_revived" );
|
||||
return;
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ insta_kill_player( perks_can_respawn_player, kill_if_falling )
|
||||
self thread blood_splat();
|
||||
if ( getnumconnectedplayers() == 1 )
|
||||
{
|
||||
if ( isDefined( self.lives ) && self.lives > 0 )
|
||||
if ( isDefined( self.solo_lives_given ) && self.solo_lives_given < 3 )
|
||||
{
|
||||
self.waiting_to_revive = 1;
|
||||
points = getstruct( "zone_green_start", "script_noteworthy" );
|
||||
|
Reference in New Issue
Block a user