diff --git a/regamedll/dlls/wpn_shared/wpn_aug.cpp b/regamedll/dlls/wpn_shared/wpn_aug.cpp index 988c74808..dfba3fdf9 100644 --- a/regamedll/dlls/wpn_shared/wpn_aug.cpp +++ b/regamedll/dlls/wpn_shared/wpn_aug.cpp @@ -73,6 +73,15 @@ void CAUG::SecondaryAttack() else m_pPlayer->pev->fov = m_pPlayer->m_iFOV = 90; +#ifdef REGAMEDLL_FIXES + if (TheBots) + { + TheBots->OnEvent(EVENT_WEAPON_ZOOMED, m_pPlayer); + } + + m_pPlayer->ResetMaxSpeed(); +#endif + m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + 0.3f; } diff --git a/regamedll/dlls/wpn_shared/wpn_sg552.cpp b/regamedll/dlls/wpn_shared/wpn_sg552.cpp index e86eec412..f9eb61f5f 100644 --- a/regamedll/dlls/wpn_shared/wpn_sg552.cpp +++ b/regamedll/dlls/wpn_shared/wpn_sg552.cpp @@ -72,6 +72,15 @@ void CSG552::SecondaryAttack() else m_pPlayer->pev->fov = m_pPlayer->m_iFOV = 90; +#ifdef REGAMEDLL_FIXES + if (TheBots) + { + TheBots->OnEvent(EVENT_WEAPON_ZOOMED, m_pPlayer); + } + + m_pPlayer->ResetMaxSpeed(); +#endif + m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + 0.3f; }