mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-13 23:28:04 +03:00
Fixes #399
This commit is contained in:
parent
95550dcd86
commit
b1d884224e
@ -174,8 +174,14 @@ void CCSBot::Upkeep()
|
||||
m_lookPitch += driftAmplitude * BotSIN(13.0f * gpGlobals->time);
|
||||
}
|
||||
|
||||
// view angles can change quickly
|
||||
UpdateLookAngles();
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
// Don't update view angles at frozen state
|
||||
if (!(pev->flags & FL_FROZEN))
|
||||
#endif
|
||||
{
|
||||
// view angles can change quickly
|
||||
UpdateLookAngles();
|
||||
}
|
||||
}
|
||||
|
||||
// Heavyweight processing, invoked less often
|
||||
|
@ -273,6 +273,15 @@ void CBot::ExecuteCommand()
|
||||
m_buttonFlags |= IN_DUCK;
|
||||
}
|
||||
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
// don't move if frozen state present
|
||||
if (pev->flags & FL_FROZEN)
|
||||
{
|
||||
adjustedMSec = 0;
|
||||
ResetCommand();
|
||||
}
|
||||
#endif
|
||||
|
||||
// Run the command
|
||||
PLAYER_RUN_MOVE(edict(), pev->v_angle, m_forwardSpeed, m_strafeSpeed, m_verticalSpeed, m_buttonFlags, 0, adjustedMSec);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user