sound speed's not even adjusting for me so can't say for sure but if it's anything like the volume you handle it by changing the speed after you play the sound - it's supposed to only change the last sound triggered which works fine for me
in the video i have 1 barrel with the below script and another barrel with a script with no sound volume change at all (doesn't even set the volume)
local vol = 100
local maxHP = {}
function sound_adjuster_init(e)
maxHP[e] = g_Entity[e]['health']
StartTimer(e)
SetActivated(e,1)
end
function sound_adjuster_main(e)
--SetSoundVolume(100)
if g_Entity[e]['activated'] == 1 then
PlaySound(e,1)
vol = g_Entity[e]['health']/maxHP[e]
vol = vol*100
if vol < 0 then vol = 0 end
SetSoundVolume(vol+70) --only +70 for volume as below 70 is inaudible in GG for some reason
SetActivated(e,2)
end
vol = g_Entity[e]['health']/maxHP[e]
vol = vol*100
--for testing only
if GetPlayerDistance(e) > 200 then
StopSound(e,1)
SetActivated(e,1)
end
PromptLocal(e,"volume = "..vol)
end