From 1c7d33de2e039556332b758078502ff2f66de402 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 15 Jun 2018 20:14:06 +0200 Subject: [PATCH] Bot AI: Onslaught: rate the controlpoint itself if it should be touched --- .../gamemodes/gamemode/onslaught/sv_onslaught.qc | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc index f5095bce4..ac90aa78c 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc @@ -1378,19 +1378,7 @@ void havocbot_goalrating_ons_controlpoints_attack(entity this, float ratingscale { // Should be touched LOG_DEBUG(this.netname, " found a touchable controlpoint at ", vtos(cp.origin)); - found = false; - - // Look for auto generated waypoint - if (!bot_waypoints_for_items) - IL_EACH(g_waypoints, vdist(cp.origin - it.origin, <, 100), - { - navigation_routerating(this, it, ratingscale, 10000); - found = true; - }); - - // Nothing found, rate the controlpoint itself - if (!found) - navigation_routerating(this, cp, ratingscale, 10000); + navigation_routerating(this, cp, ratingscale, 10000); } } -- 2.39.2