Skip to content

Commit

Permalink
fix #927 (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaqtincha authored Aug 12, 2024
1 parent b6c2c62 commit f9969ac
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions regamedll/dlls/wpn_shared/wpn_deagle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit f9969ac

Please sign in to comment.