fix: run player move even on dead clients on non-standard game modes (ref #676 )

ctrl: added "w" alias as graph command
This commit is contained in:
jeefo 2025-03-02 20:53:27 +03:00
commit 677aa4fed8
No known key found for this signature in database
GPG key ID: D696786B81B667C8
3 changed files with 5 additions and 3 deletions

View file

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