bot: added basic support for zombie plague warmup mode
Controllable via yb_ignore_enemies_after_spawn_time, and automatically set from zp_delay cvar.
This commit is contained in:
parent
c0715714d6
commit
7b7ae7020b
5 changed files with 20 additions and 3 deletions
|
|
@ -3691,7 +3691,7 @@ bool Bot::isOutOfBombTimer () {
|
|||
}
|
||||
|
||||
void Bot::updateHearing () {
|
||||
if (game.is (GameFlags::FreeForAll)) {
|
||||
if (game.is (GameFlags::FreeForAll) || m_enemyIgnoreTimer > game.time ()) {
|
||||
return;
|
||||
}
|
||||
edict_t *hearedEnemy = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue