From d866325b7abfb04d25fc589df5f98d8b31e595d4 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 12 Jun 2014 21:29:41 +1000 Subject: [PATCH] Fix nade sound not following the player --- qcsrc/server/mutators/mutator_nades.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.39.2