]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bring back random chance
authorMario <mario@smbclan.net>
Wed, 4 Nov 2015 02:55:17 +0000 (12:55 +1000)
committerMario <mario@smbclan.net>
Wed, 4 Nov 2015 02:55:17 +0000 (12:55 +1000)
qcsrc/common/weapons/weapon/shotgun.qc

index 8c2778ac26deb77d9ae866a332448f81aa27499c..4a9a2069d9e99e6fc996377ae0db4969a10c619e 100644 (file)
@@ -342,7 +342,8 @@ void W_Shotgun_Attack3_Frame1(Weapon thiswep, entity actor, .entity weaponentity
                        pointparticles(EFFECT_SHOTGUN_IMPACT, org2, w_backoff * 1000, 1);
                        if(!w_issilent && time - self.prevric > 0.25)
                        {
-                               sound(self, CH_SHOTS, SND_RIC_RANDOM(), VOL_BASE, ATTEN_NORM);
+                               if(w_random < 0.05)
+                                       sound(self, CH_SHOTS, SND_RIC_RANDOM(), VOL_BASE, ATTEN_NORM);
                                self.prevric = time;
                        }
                }