That’s basically it.
Don’t ask me what base I’m using, I make my own sweps from scratch.
If you must know, the script that emits the sound is this:
if not self:CanPrimaryAttack() then return end
self.Weapon:EmitSound( self.Primary.Sound )
self.PlayOnce = false
self.Weapon:SetNextPrimaryFire(CurTime() + self.Primary.Delay)
self:ShootBullets(self.Primary.Damage, self.Primary.NumShots, self.Primary.Cone) self:TakePrimaryAmmo(1)
The sound plays most of the time, but often it doesn’t and it’s very jarring. I’ve looked at other sweps and this is basically the same code they use, so I’m absolutely puzzled.