]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge remote branch 'origin/pooga/keepawaybots'
authorRudolf Polzer <divVerent@xonotic.org>
Mon, 20 Jun 2011 08:17:40 +0000 (10:17 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 20 Jun 2011 08:17:40 +0000 (10:17 +0200)
Conflicts:
qcsrc/server/bot/aim.qc

1  2 
qcsrc/server/bot/aim.qc
qcsrc/server/bot/havocbot/roles.qc
qcsrc/server/mutators/gamemode_keepaway.qc

index 9300ac721d889366a386bc8b0a06fb0656ad1443,5277b400b92dc5dcca610f45f6b61d3ff966bb41..63e971b17da9c52cacc638e8ae6c3f006cff096f
@@@ -113,7 -114,13 +114,13 @@@ float bot_shouldattack(entity e
                if(e.freezetag_frozen)
                        return FALSE;
  
 -      if(teams_matter)
+       // If neither player has ball then don't attack unless the ball is on the
+       // ground.
+       if (g_keepaway)
+               if (!e.ballcarried && !self.ballcarried && ka_ball.owner)
+                       return FALSE;
 +      if(teamplay)
        {
                if(e.team==0)
                        return FALSE;
Simple merge