AUG/SG552: Reset maxspeed when zooming

This commit is contained in:
s1lentq 2024-12-11 02:19:09 +07:00
parent 942f2e6637
commit 3efc5ad166
2 changed files with 18 additions and 0 deletions

View File

@ -73,6 +73,15 @@ void CAUG::SecondaryAttack()
else else
m_pPlayer->pev->fov = m_pPlayer->m_iFOV = 90; 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; m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + 0.3f;
} }

View File

@ -72,6 +72,15 @@ void CSG552::SecondaryAttack()
else else
m_pPlayer->pev->fov = m_pPlayer->m_iFOV = 90; 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; m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + 0.3f;
} }