nexball: don't display a useless health bar on a lone ball (BUT: could be undone...
authorRudolf Polzer <divverent@alientrap.org>
Sat, 20 Nov 2010 05:59:44 +0000 (06:59 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 20 Nov 2010 05:59:44 +0000 (06:59 +0100)
qcsrc/server/nexball.qc

index a01d70f..4900713 100644 (file)
@@ -202,7 +202,8 @@ void DropBall (entity ball, vector org, vector vel)
        }
 
        WaypointSprite_Kill(ball.owner.waypointsprite_attachedforcarrier);
-       WaypointSprite_AttachCarrier("nb-ball", ball);
+       //WaypointSprite_AttachCarrier("nb-ball", ball);
+       WaypointSprite_Spawn("nb-ball", 0, 0, ball, '0 0 64', world, ball.team, ball, waypointsprite_attachedforcarrier, FALSE); // no health bar please
        WaypointSprite_UpdateRule(ball.waypointsprite_attachedforcarrier, 0, SPRITERULE_DEFAULT);
        WaypointSprite_UpdateTeamRadar(ball.waypointsprite_attachedforcarrier, RADARICON_FLAGCARRIER, BALL_SPRITECOLOR);