]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: fix bots standing still for a few seconds after taking a dropped weapon
authorterencehill <piuntn@gmail.com>
Wed, 9 Oct 2019 21:36:06 +0000 (23:36 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 9 Oct 2019 21:36:57 +0000 (23:36 +0200)
qcsrc/server/bot/default/havocbot/havocbot.qc

index 4e32ce99a0c415927749afa9f89b672f6e2a6c49..477d1ec464c9c4af95f10f6dd3d2b260bd5bc6e3 100644 (file)
@@ -90,7 +90,11 @@ void havocbot_ai(entity this)
        }
 
        if (this.goalcurrent && wasfreed(this.goalcurrent))
+       {
                navigation_clearroute(this);
+               navigation_goalrating_timeout_force(this);
+               return;
+       }
 
        if(IS_DEAD(this) || STAT(FROZEN, this))
        {