From: Mario Date: Thu, 12 Jun 2014 11:29:41 +0000 (+1000) Subject: Fix nade sound not following the player X-Git-Tag: xonotic-v0.8.0~162^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d866325b7abfb04d25fc589df5f98d8b31e595d4;p=xonotic%2Fxonotic-data.pk3dir.git Fix nade sound not following the player --- diff --git a/qcsrc/server/mutators/mutator_nades.qc b/qcsrc/server/mutators/mutator_nades.qc index 6d4759b01..7b65430d9 100644 --- a/qcsrc/server/mutators/mutator_nades.qc +++ b/qcsrc/server/mutators/mutator_nades.qc @@ -717,12 +717,15 @@ float nade_customize() { // somewhat hide the model, but keep the glow //self.effects = 0; - //self.alpha = -1; - return FALSE; // or not + if(self.traileffectnum) + self.traileffectnum = 0; + self.alpha = -1; } else { //self.effects = EF_ADDITIVE | EF_FULLBRIGHT | EF_LOWPRECISION; + if(!self.traileffectnum) + self.traileffectnum = particleeffectnum(Nade_TrailEffect(Nade_ProjectileFromID(self.nade_type, FALSE), self.team)); self.alpha = 1; }