mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-26 05:28:01 +03:00
fix Deagle animation (#985)
This commit is contained in:
parent
b6c2c62e8b
commit
4e1cb1091f
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user