You could play a 3D sound for the loud, close-range gunshot and a 2D sound for the distant gunshot (the entire server will hear it.)