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

@ -204,11 +204,23 @@ void CDEAGLE::WeaponIdle()
if (m_flTimeWeaponIdle <= UTIL_WeaponTimeBase())
{
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 20.0f;
if (m_iWeaponState & WPNSTATE_SHIELD_DRAWN)
#ifdef REGAMEDLL_FIXES
if (m_pPlayer->HasShield())
#endif
{
SendWeaponAnim(DEAGLE_SHIELD_IDLE_UP, UseDecrement() != FALSE);
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 20.0f;
if (m_iWeaponState & WPNSTATE_SHIELD_DRAWN)
{
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
}
}