Skip to content

Commit c034284

Browse files
Niteruxmastercoms
authored andcommitted
reduced the health size of the bonus overheal even though I asked mastercoms in detail about what size it should be and discussed various resolutions it should be based on and mastercoms chose the resolution that would make the overheal the largest, anyways this commit just divides the number by 2
1 parent 7508b3c commit c034284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/game/client/tf/tf_hud_playerstatus.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ void CTFHudPlayerHealth::SetHealth( int iNewHealth, int iMaxHealth, int iMaxBuff
768768

769769
// scale the flashing image based on how much health bonus we currently have
770770
float flBoostMaxAmount = ( iMaxBuffedHealth ) - m_nMaxHealth;
771-
float flPercent = MIN( ( m_nHealth - m_nMaxHealth ) / flBoostMaxAmount, 1.0f );
771+
float flPercent = MIN( ( m_nHealth - m_nMaxHealth ) / flBoostMaxAmount, 1.0f ) / 2;
772772

773773
int nPosAdj = RoundFloatToInt( flPercent * m_nHealthBonusPosAdj );
774774
int nSizeAdj = 2 * nPosAdj;
@@ -801,7 +801,7 @@ void CTFHudPlayerHealth::SetHealth( int iNewHealth, int iMaxHealth, int iMaxBuff
801801

802802
// scale the flashing image based on how much health bonus we currently have
803803
float flBoostMaxAmount = m_nMaxHealth * m_flHealthDeathWarning;
804-
float flPercent = ( flBoostMaxAmount - m_nHealth ) / flBoostMaxAmount;
804+
float flPercent = (flBoostMaxAmount - m_nHealth) / flBoostMaxAmount / 2;
805805

806806
int nPosAdj = RoundFloatToInt( flPercent * m_nHealthBonusPosAdj );
807807
int nSizeAdj = 2 * nPosAdj;

0 commit comments

Comments
 (0)