From: terencehill Date: Thu, 16 Feb 2017 22:52:55 +0000 (+0100) Subject: Make bots more responsive while chasing players X-Git-Tag: xonotic-v0.8.2~202^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=64d2924eec32a6d9c4f5dc922b8587b677e0f8da;p=xonotic%2Fxonotic-data.pk3dir.git Make bots more responsive while chasing players --- diff --git a/qcsrc/server/bot/default/havocbot/roles.qc b/qcsrc/server/bot/default/havocbot/roles.qc index d7890d114..5ddb0f74b 100644 --- a/qcsrc/server/bot/default/havocbot/roles.qc +++ b/qcsrc/server/bot/default/havocbot/roles.qc @@ -206,6 +206,9 @@ void havocbot_role_generic(entity this) havocbot_goalrating_enemyplayers(this, 20000, this.origin, 10000); havocbot_goalrating_waypoints(this, 1, this.origin, 3000); navigation_goalrating_end(this); + + if(IS_PLAYER(this.goalentity)) + this.bot_strategytime = time + min(2, autocvar_bot_ai_strategyinterval); } }