Skip to content

Commit

Permalink
fix Deagle animation (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaqtincha authored and SergeyShorokhov committed Aug 14, 2024
1 parent b6c2c62 commit 4e1cb10
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
}
}

1 comment on commit 4e1cb10

@Vaqtincha

This comment was marked as abuse.

Please sign in to comment.