This commit is contained in:
s1lent 2019-08-13 21:02:22 +07:00
parent 95550dcd86
commit b1d884224e
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C
2 changed files with 17 additions and 2 deletions

View File

@ -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

View File

@ -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);
}