Skip to content

Commit

Permalink
Increase hit marker size on bigger resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyLobo committed Jun 4, 2016
1 parent c8c0309 commit eb7e325
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mp/src/game/client/sdk/hud/sdk_hud_damage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ void CHudDamageIndicator::Paint()
RemapVal(pPlayer->GetCurrentTime(), m_aDamageEvents[i].flTimeDamaged, m_aDamageEvents[i].flTimeDamaged + hud_damage_time.GetFloat(), 255, 0));

float flSize = RemapVal(m_aDamageEvents[i].flDamage, 10, 60, m_flDamageSize, m_flDamageSize*3);
flSize = RemapVal(flSize, 0, 768, 0, iTall);

SDKViewport::DrawPolygon(icon_up,
iWide/2 + vecPlayerScreenDamageDirection.x * flRadius - flSize/2, iTall/2 + vecPlayerScreenDamageDirection.y * flRadius - flSize/2,
Expand Down

0 comments on commit eb7e325

Please sign in to comment.