the ball they will ignore all other players and focus on the ball
carrier.
+entity ka_ball;
// traces multiple trajectories to find one that will impact the target
// 'end' vector is the place it aims for,
// returns TRUE only if it hit targ (don't target non-solid entities)
if(e.freezetag_frozen)
return FALSE;
+ // If neither player has ball then don't attack unless the ball is on the
+ // ground.
if (g_keepaway)
- if (!e.ballcarried && !self.ballcarried)
+ if (!e.ballcarried && !self.ballcarried && ka_ball.owner)
return FALSE;
if(teams_matter)