Skip to content

Commit 94aa374

Browse files
authored
Merge pull request #8 from Niterux/reducehealthoverhealsize
reduced the health size of the bonus overheal
2 parents af3fed4 + 48fc582 commit 94aa374

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)