]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make bots more responsive while chasing players
authorterencehill <piuntn@gmail.com>
Thu, 16 Feb 2017 22:52:55 +0000 (23:52 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 16 Feb 2017 22:52:55 +0000 (23:52 +0100)
qcsrc/server/bot/default/havocbot/roles.qc

index d7890d11439b594a6d7ce2850ff3e7bae5347e64..5ddb0f74b576ab0bcd8107dad86e1af96a5f6a27 100644 (file)
@@ -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);
                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);
        }
 }
 
        }
 }