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:
parent
f9aa608a6a
commit
677aa4fed8
3 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue