From 4044996736024c615270d5b6f49bbbab8c21d313 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 9 Oct 2019 23:36:06 +0200 Subject: [PATCH] Bot AI: fix bots standing still for a few seconds after taking a dropped weapon --- qcsrc/server/bot/default/havocbot/havocbot.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 4e32ce99a..477d1ec46 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -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)) { -- 2.39.2