From c1b538c34971bc28601cc7a9952413438fe96b12 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 14 Jun 2018 19:19:50 +0200 Subject: [PATCH] Bot AI: fix bots heading to another control point right before reaching the current control point goal --- qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2