From: Rudolf Polzer Date: Sat, 20 Nov 2010 05:59:44 +0000 (+0100) Subject: nexball: don't display a useless health bar on a lone ball (BUT: could be undone... X-Git-Tag: xonotic-v0.1.0preview~116^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9d5937190a2741571a0eb5748c03e249e6da1f2b;p=xonotic%2Fxonotic-data.pk3dir.git nexball: don't display a useless health bar on a lone ball (BUT: could be undone, and later used for having the ball "time out") --- diff --git a/qcsrc/server/nexball.qc b/qcsrc/server/nexball.qc index a01d70f14..490071334 100644 --- a/qcsrc/server/nexball.qc +++ b/qcsrc/server/nexball.qc @@ -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);