mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-03-12 13:40:19 +03:00
AUG/SG552: Reset maxspeed when zooming
This commit is contained in:
parent
942f2e6637
commit
3efc5ad166
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user