On my server, when other players fire their weapons, you cannot hear them. But you can hear when you fire your own gun. The exception is the rifle, which you can hear. I looked at the code for the rifle and the sound is formatted like this:
[code]SWEP.Primary.Sound = Sound(")weapons/scout/scout_fire-1.wav")[/code]
While all the other weapon sounds are coded like this:
[code]SWEP.Primary.Sound = Sound( "Weapon_M4A1.Single" )[/code]
Any help?
[URL="http://wiki.garrysmod.com/page/sound/Add"]sound.Add[/URL]
Also SWEP.Primary.Sound = Sound(")weapons/scout/scout_fire-1.wav") should be
SWEP.Primary.Sound = Sound("weapons/scout/scout_fire-1.wav")
I will submit a pull request to fix this by the next update, but it should be,
[code]SWEP.Primary.Sound = Sound( "Weapon_Scout.Single" )[/code]
[editline]15th April 2014[/editline]
[QUOTE=_Jacob;44557926][URL="http://wiki.garrysmod.com/page/sound/Add"]sound.Add[/URL]
Also SWEP.Primary.Sound = Sound(")weapons/scout/scout_fire-1.wav") should be
SWEP.Primary.Sound = Sound("weapons/scout/scout_fire-1.wav")[/QUOTE]
He needs to use a soundscape sound like the rest of the weapons.
Oh sorry i didn't read that it was a default sound. I went off instinct and figured it was custom.
All sounds included with GMod, including HL2 and CS:S ones have soundscape names iirc.
[QUOTE=code_gs;44557975]I will submit a pull request to fix this by the next update, but it should be,
[code]SWEP.Primary.Sound = Sound( "Weapon_Scout.Single" )[/code][/QUOTE]
But what I meant was, the scout sound is the only one that [i]does[/i] work.
That's because soundscapes are broken, which will be fixed in the next update.
How long do we have to wait for this?
Sorry, you need to Log In to post a reply to this thread.