From: terencehill Date: Thu, 21 Jun 2018 13:07:23 +0000 (+0200) Subject: Bot AI: fix bots that are in the water (even if only with their own feet) refusing... X-Git-Tag: xonotic-v0.8.5~1923^2~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c9ab32043c2f552a0ade2afccbfb72712f35a5d2;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: fix bots that are in the water (even if only with their own feet) refusing to attack anyone; as a direct consequence it's now less likely that many bots get stuck in flooded tunnels (e.g. maps Drain and Ruiner) --- diff --git a/qcsrc/server/bot/default/aim.qc b/qcsrc/server/bot/default/aim.qc index 4625d4a08..53932ff6a 100644 --- a/qcsrc/server/bot/default/aim.qc +++ b/qcsrc/server/bot/default/aim.qc @@ -154,11 +154,6 @@ bool bot_shouldattack(entity this, entity targ) void bot_lagfunc(entity this, float t, float f1, float f2, entity e1, vector v1, vector v2, vector v3, vector v4) { - if(this.flags & FL_INWATER) - { - this.bot_aimtarg = NULL; - return; - } this.bot_aimtarg = e1; this.bot_aimlatency = CS(this).ping; // FIXME? Shouldn't this be in the lag item? //this.bot_aimorigin = v1;