From dfe6ffd00eec5560dacb9d6303c7b1e4ba6059c8 Mon Sep 17 00:00:00 2001 From: hamdi2050 Date: Thu, 16 May 2024 10:09:07 +0100 Subject: [PATCH] rename function --- regamedll/dlls/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 42d7ec013..d6aaf8b37 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -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) @@ -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))