From: terencehill Date: Thu, 14 Jun 2018 17:19:50 +0000 (+0200) Subject: Bot AI: fix bots heading to another control point right before reaching the current... X-Git-Tag: xonotic-v0.8.5~1923^2~32 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c1b538c34971bc28601cc7a9952413438fe96b12;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: fix bots heading to another control point right before reaching the current control point goal --- diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc index a4bdc205a..4caf054e0 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc @@ -1307,7 +1307,7 @@ void havocbot_goalrating_ons_controlpoints_attack(entity this, float ratingscale // Count team mates interested in this control point // (easier and cleaner than keeping counters per cp and teams) - FOREACH_CLIENT(IS_PLAYER(it), { + FOREACH_CLIENT(it != this && IS_PLAYER(it), { if(SAME_TEAM(it, this)) if(it.havocbot_role_flags & HAVOCBOT_ONS_ROLE_OFFENSE) if(it.havocbot_ons_target == cp2)