diff --git a/regamedll/dlls/bot/cs_bot_update.cpp b/regamedll/dlls/bot/cs_bot_update.cpp index 2e6aa58a..9de07687 100644 --- a/regamedll/dlls/bot/cs_bot_update.cpp +++ b/regamedll/dlls/bot/cs_bot_update.cpp @@ -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 diff --git a/regamedll/game_shared/bot/bot.cpp b/regamedll/game_shared/bot/bot.cpp index 7f14485a..706740fe 100644 --- a/regamedll/game_shared/bot/bot.cpp +++ b/regamedll/game_shared/bot/bot.cpp @@ -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); }