]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix nade sound not following the player
authorMario <mario.mario@y7mail.com>
Thu, 12 Jun 2014 11:29:41 +0000 (21:29 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 12 Jun 2014 11:29:41 +0000 (21:29 +1000)
qcsrc/server/mutators/mutator_nades.qc

index 6d4759b01b7b913e2216479b51c079c004ea10b2..7b65430d9a2087476fc38f9131bb83fd26b74102 100644 (file)
@@ -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;
        }