SetVoiceGain sets player voice BOOST gain. Not voice gain.
I want to add a volume slider to my player voice radio system.
This is currently only possible by abusing the existing API.
At the moment I have to do this for every single player on the radio EVERY FRAME:
  1. Measure the distance from the local player to the other player. This has to be approximate since there is no native way to get the exact position of a remote player's head, only their head bone.
  2. Somehow adjust the voice distance near and far based on the distance to that player in an attempt to use the falloff curve to indirectly set each player's voice volume.
This is extremely silly.
I propose adding "SetVoiceVolume(float value)" where value is in the range 0 - 1.
This would function exactly like a volume slider in the quick menu.
There's already a similar canny, but it has a lot of requests in one, so I made this one.