From c9ab32043c2f552a0ade2afccbfb72712f35a5d2 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 21 Jun 2018 15:07:23 +0200 Subject: [PATCH] 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) --- qcsrc/server/bot/default/aim.qc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/qcsrc/server/bot/default/aim.qc b/qcsrc/server/bot/default/aim.qc index 4625d4a08c..53932ff6a9 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; -- 2.39.2