wallhack player hiding code hides sound
You cannot hear a hidden (behind a wall) player fire a hitscan weapon (pistol, shotgun, ect). well, weapons where the projectile isnt what makes the sound - according to GhostlyDeath
How odd, I thought I reported this but I guess I never did. Still, I should point out that this is related a lot with bug 218.
After more rigorous testing, we've come this conclusion:
If player B is not in sight of player A, player A can only hear player B fire projectiles (rockets, plasma, BFG).
If player B is not in sight of player A, player A cannot hear Player B fire any hit scan weapons (pistol, shotgun, super shotgun, chaingun). They also cannot hear a chain saw fire OR a chain saw's idling.
The same bug, this also prevents player jump sounds (hitting the ground) if hidden.
*** Bug 468 has been marked as a duplicate of this bug. ***
The bug only applies when SV_ANTIWALLHACK is set to 1.
The antiwallhack setting prevents the server from sending information about players that are not visible from the client's current position. Since the information about which sound other players are making is included in the information withheld by the server, clients can't hear sounds made by players the server doesn't let the client know about.
Missiles and other projectiles are AActors separate from the player and their information is not withheld ever by the server: hence they're audible and hitscan attacks or grunts are not.
One solution would be to spawn an invisible AActor for each sound a player makes instead of having the player emit sound. This sound actor would follow the player and be destroyed when the sound is done or when the player needs to make another sound (eg, Silent BFG).
We removed support for the anti-wallhack a couple of versions ago because it didn't work very well. This bug was one of the reasons for removal because there is not a very good solution and it just didn't work. Marking invalid simply because there's nothing left to fix here.