I have been trying to build a weapon audio system for automatic weapons, but I’m running into following issue:
If I fire the automatic weapon (loop sound with trigger cue) and another player with the same weapon is very close, the weapon sound sometimes starts phasing as soon as we both start firing. I already tried to randomize the pitch, put filters on the signal based on distance, used different samples but still this phasing occurs. This might become even more obvious as soon as 4+ player are using the same weapon sound.
My question: Is there any other way which prioritizes closer sounds (maybe via ducking) or is there any other solution for this problem? How are other multiplayer shooters resolving this issue?
Any help would be highly appreciated!!!