]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: Onslaught: rate the controlpoint itself if it should be touched
authorterencehill <piuntn@gmail.com>
Fri, 15 Jun 2018 18:14:06 +0000 (20:14 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 15 Jun 2018 18:14:06 +0000 (20:14 +0200)
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc

index f5095bce4156fe9fae8aa978abb7d6936564227f..ac90aa78c0722703911baaa693fd5903c09684cd 100644 (file)
@@ -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);
        }
 }