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

Fix player max health being set to 100 after down in solo

This commit is contained in:
Jbleezy
2022-01-22 08:01:24 -08:00
parent 9f1eb5a2e7
commit c5d5a01c1c
2 changed files with 4 additions and 3 deletions

View File

@ -64,6 +64,7 @@ main()
init()
{
level.using_solo_revive = 0;
level.player_starting_health = 150;
setscoreboardcolumns_gametype();
set_lethal_grenade_init();
@ -285,7 +286,7 @@ wait_and_set_max_health()
{
wait 0.05;
self setMaxHealth(150);
self setMaxHealth(level.player_starting_health);
}
health_bar_hud()

View File

@ -218,14 +218,14 @@ perk_set_max_health_if_jugg( perk, set_premaxhealth, clamp_health_to_max_health
}
else
{
max_total_health = 100;
max_total_health = level.player_starting_health;
}
}
else
{
if ( perk == "health_reboot" )
{
max_total_health = 100;
max_total_health = level.player_starting_health;
}
}
if ( isDefined( max_total_health ) )