]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/havocbot/havocbot.qc
Bot AI: fix bots standing still for a few seconds after taking a dropped weapon
[xonotic/xonotic-data.pk3dir.git] / 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))
        {