]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: fix bots that are in the water (even if only with their own feet) refusing...
authorterencehill <piuntn@gmail.com>
Thu, 21 Jun 2018 13:07:23 +0000 (15:07 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 21 Jun 2018 13:07:23 +0000 (15:07 +0200)
qcsrc/server/bot/default/aim.qc

index 4625d4a08ca8a0b01354ed2792c7952d31ca0096..53932ff6a9d1e75e12e9918c3f3a6f6dae8fa2a5 100644 (file)
@@ -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;