Voice Rolloff Curve

Just making a post here to know if anyone knows the how the player voice roll off curve works

I’m trying to make a custom system that turns “Voice Rolloff Distance” into a volume percentage, but in order to do this, I need to know how the voice rolloff curve works so I can get the inverse and set the distance based off the curve

This is all so I can make a system that prevents you from hearing players completely through walls, unless the walls are really thin or there is a nearby opening (Like the player is around a corner)