]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 a01d70f14a65a3382cc4bdd91f1cd79507d3d6ec..490071334a635d1cd02cf2a0da1ae6052c4d4fb7 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);