bot: always run player movement (else it's bad for mods)
This commit is contained in:
parent
677aa4fed8
commit
8c9e47cc13
1 changed files with 1 additions and 5 deletions
|
|
@ -2985,11 +2985,7 @@ void Bot::frame () {
|
|||
|
||||
// run bot command on twice speed
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue