From d946f335b530eaf267a2aed0ea6423bb63fc0b5a Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 15 Jul 2015 18:45:51 +0200 Subject: [PATCH] Fix ka bot logic bug where it was rated route to either the ball owner and the ball itself --- qcsrc/server/mutators/gamemode_keepaway.qc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/mutators/gamemode_keepaway.qc b/qcsrc/server/mutators/gamemode_keepaway.qc index 6b62e7da1..1a91658a6 100644 --- a/qcsrc/server/mutators/gamemode_keepaway.qc +++ b/qcsrc/server/mutators/gamemode_keepaway.qc @@ -192,9 +192,8 @@ void havocbot_goalrating_ball(float ratingscale, vector org) t = (self.health + self.armorvalue) / (ball_owner.health + ball_owner.armorvalue); navigation_routerating(ball_owner, t * ratingscale, 2000); } - - // Ball has been dropped so collect. - navigation_routerating(ka_ball, ratingscale, 2000); + else // Ball has been dropped so collect. + navigation_routerating(ka_ball, ratingscale, 2000); } void havocbot_role_ka_carrier() -- 2.39.2