From: terencehill Date: Wed, 9 Oct 2019 21:36:06 +0000 (+0200) Subject: Bot AI: fix bots standing still for a few seconds after taking a dropped weapon X-Git-Tag: xonotic-v0.8.5~1244 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=4044996736024c615270d5b6f49bbbab8c21d313;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: fix bots standing still for a few seconds after taking a dropped weapon --- 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)) {