Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
hamdi2050 committed May 16, 2024
1 parent 974a63c commit dfe6ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ void LogAttack(CBasePlayer *pAttacker, CBasePlayer *pVictim, int teamAttack, int
}
}

float GetWeaponRatio(int iGunType) {
float GetWeaponArmorRatio(int iGunType) {
float flRatio = 1.0;

switch (iGunType)
Expand Down Expand Up @@ -1144,7 +1144,7 @@ BOOL EXT_FUNC CBasePlayer::__API_HOOK(TakeDamage)(entvars_t *pevInflictor, entva
iGunType = pAttack->m_pActiveItem->m_iId;
flRatio += flShieldRatio;

flRatio *= GetWeaponRatio(iGunType);
flRatio *= GetWeaponArmorRatio(iGunType);
}

if (!ShouldDoLargeFlinch(m_LastHitGroup, iGunType))
Expand Down

0 comments on commit dfe6ffd

Please sign in to comment.