From f9969aceab95783a537902282d127d4c88daf5ae Mon Sep 17 00:00:00 2001 From: Vaqtincha <51029683+Vaqtincha@users.noreply.github.com> Date: Mon, 12 Aug 2024 11:48:41 +0500 Subject: [PATCH] fix https://github.com/s1lentq/ReGameDLL_CS/issues/927 (#985) --- regamedll/dlls/wpn_shared/wpn_deagle.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/regamedll/dlls/wpn_shared/wpn_deagle.cpp b/regamedll/dlls/wpn_shared/wpn_deagle.cpp index e9bbc7132..f04ab55d6 100644 --- a/regamedll/dlls/wpn_shared/wpn_deagle.cpp +++ b/regamedll/dlls/wpn_shared/wpn_deagle.cpp @@ -204,11 +204,23 @@ void CDEAGLE::WeaponIdle() if (m_flTimeWeaponIdle <= UTIL_WeaponTimeBase()) { - m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 20.0f; +#ifdef REGAMEDLL_FIXES + if (m_pPlayer->HasShield()) +#endif + { + m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 20.0f; - if (m_iWeaponState & WPNSTATE_SHIELD_DRAWN) + if (m_iWeaponState & WPNSTATE_SHIELD_DRAWN) + { + SendWeaponAnim(DEAGLE_SHIELD_IDLE_UP, UseDecrement() != FALSE); + } + } +#ifdef REGAMEDLL_FIXES + else if (m_iClip) { - SendWeaponAnim(DEAGLE_SHIELD_IDLE_UP, UseDecrement() != FALSE); + m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 3.0625f; + SendWeaponAnim(DEAGLE_IDLE1, UseDecrement() != FALSE); } +#endif } }