bot: always run player movement (else it's bad for mods)

This commit is contained in:
jeefo 2025-03-02 23:20:55 +03:00
commit 8c9e47cc13
No known key found for this signature in database
GPG key ID: D696786B81B667C8

View file

@ -2985,11 +2985,7 @@ void Bot::frame () {
// run bot command on twice speed // run bot command on twice speed
if (m_commandDelay.time <= timestamp) { if (m_commandDelay.time <= timestamp) {
const bool nonStandardGameMode = game.is (GameFlags::CSDM | GameFlags::FreeForAll | GameFlags::ZombieMod);
if (m_botMovement || nonStandardGameMode || pev->deadflag == DEAD_DYING) {
runMovement (); runMovement ();
}
m_commandDelay.time = timestamp + m_commandDelay.interval; m_commandDelay.time = timestamp + m_commandDelay.interval;
} }