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