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:
jeefo 2024-02-15 05:42:52 +03:00
commit 7b7ae7020b
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
5 changed files with 20 additions and 3 deletions

View file

@ -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;