Place two playable units in the editor.
Place a NATO weapon box.
Save the mission as a multiplayer mission.
Start your mission up in multiplayer and have a friend join the game.
Both players will be able to hear gun shot sounds but then if someone switches their weapon the other player won't be able to hear their team mates gunshots.