From: Mario Date: Mon, 22 Aug 2016 09:40:15 +0000 (+1000) Subject: Add a couple of skipped bot_attack cases X-Git-Tag: xonotic-v0.8.2~663^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bd7d70ad82b60ae35c91770af1adce1828e89f06;p=xonotic%2Fxonotic-data.pk3dir.git Add a couple of skipped bot_attack cases --- diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc index 3f48fd15a..8e60bc308 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc @@ -220,6 +220,8 @@ void onslaught_updatelinks() if (l.goalentity) { l.goalentity.takedamage = DAMAGE_NO; + if(l.goalentity.bot_attack) + IL_REMOVE(g_bot_targets, l.goalentity); l.goalentity.bot_attack = false; } } @@ -229,6 +231,8 @@ void onslaught_updatelinks() if (l.goalentity) { l.goalentity.takedamage = DAMAGE_AIM; + if(!l.goalentity.bot_attack) + IL_PUSH(g_bot_targets, l.goalentity); l.goalentity.bot_attack = true; } } diff --git a/qcsrc/common/triggers/func/door_secret.qc b/qcsrc/common/triggers/func/door_secret.qc index efe997c85..0b8930aec 100644 --- a/qcsrc/common/triggers/func/door_secret.qc +++ b/qcsrc/common/triggers/func/door_secret.qc @@ -20,6 +20,8 @@ void fd_secret_use(entity this, entity actor, entity trigger) string message_save; this.health = 10000; + if(!this.bot_attack) + IL_PUSH(g_bot_targets, this); this.bot_attack = true; // exit if still moving around...