this is the routine in snd_world.cpp that displays the drawSound position and distance name
all that would be needed is a map.script access to
distance (distance through a visportal)
realDistance (distance if using noclip)
min (its in meters) sound min radius
max (its in meters) sound max radius
as you can already get player position with $player1.getWorldOrigin() or maybe with the entity name get entity name World Origin.
sprintf( text, "%s (%i/%i %i/%i)%s", chan->soundShader->GetName(), (int)def->distance,
(int)def->realDistance, (int)min, (int)max, defaulted );
without having to turn on the debugging s_drawSound cvar.
be along lines of measure distance between player and sound being played if its a vocal sound and within range say 10 meters (about 35 feet) write subtitle text to gui based on language of l18m, along the lines of if there aren't any polish vocal then you could write the polish text for what the vocal is.
Edited by stumpy, 22 March 2017 - 09:51 PM.