fix Deagle animation (#985)

This commit is contained in:
Vaqtincha 2024-08-12 11:48:41 +05:00 committed by Sergey Shorokhov
parent b6c2c62e8b
commit 4e1cb1091f

View File

@ -203,6 +203,10 @@ void CDEAGLE::WeaponIdle()
m_pPlayer->GetAutoaimVector(AUTOAIM_10DEGREES); m_pPlayer->GetAutoaimVector(AUTOAIM_10DEGREES);
if (m_flTimeWeaponIdle <= UTIL_WeaponTimeBase()) if (m_flTimeWeaponIdle <= UTIL_WeaponTimeBase())
{
#ifdef REGAMEDLL_FIXES
if (m_pPlayer->HasShield())
#endif
{ {
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 20.0f; m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 20.0f;
@ -211,4 +215,12 @@ void CDEAGLE::WeaponIdle()
SendWeaponAnim(DEAGLE_SHIELD_IDLE_UP, UseDecrement() != FALSE); SendWeaponAnim(DEAGLE_SHIELD_IDLE_UP, UseDecrement() != FALSE);
} }
} }
#ifdef REGAMEDLL_FIXES
else if (m_iClip)
{
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 3.0625f;
SendWeaponAnim(DEAGLE_IDLE1, UseDecrement() != FALSE);
}
#endif
}
} }