mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 07:37:56 -05:00
Fix player max health being set to 100 after down in solo
This commit is contained in:
@ -64,6 +64,7 @@ main()
|
|||||||
init()
|
init()
|
||||||
{
|
{
|
||||||
level.using_solo_revive = 0;
|
level.using_solo_revive = 0;
|
||||||
|
level.player_starting_health = 150;
|
||||||
|
|
||||||
setscoreboardcolumns_gametype();
|
setscoreboardcolumns_gametype();
|
||||||
set_lethal_grenade_init();
|
set_lethal_grenade_init();
|
||||||
@ -285,7 +286,7 @@ wait_and_set_max_health()
|
|||||||
{
|
{
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
|
|
||||||
self setMaxHealth(150);
|
self setMaxHealth(level.player_starting_health);
|
||||||
}
|
}
|
||||||
|
|
||||||
health_bar_hud()
|
health_bar_hud()
|
||||||
|
@ -218,14 +218,14 @@ perk_set_max_health_if_jugg( perk, set_premaxhealth, clamp_health_to_max_health
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
max_total_health = 100;
|
max_total_health = level.player_starting_health;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( perk == "health_reboot" )
|
if ( perk == "health_reboot" )
|
||||||
{
|
{
|
||||||
max_total_health = 100;
|
max_total_health = level.player_starting_health;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( isDefined( max_total_health ) )
|
if ( isDefined( max_total_health ) )
|
||||||
|
Reference in New Issue
Block a user