Context: TF2.
I almost do not know how to code, but ... I use the "dirty" trick to increase the volume: just double or triple call function EmitSoundToClient.
I do not understand why that's the first line gives a doubling of the volume, and the second example of the volume does not change. How can it be?
(1) Volume x 2
Code:
EmitSoundToClient(client,g_soundName);
EmitSoundToClient(client,g_soundName);
(2) Volume x1, why?
Code:
EmitSoundToClient(client,g_soundName,SNDCHAN_AUTO,SNDLEVEL_NORMAL,SND_NOFLAGS,SNDVOL_NORMAL);
EmitSoundToClient(client,g_soundName,SNDCHAN_AUTO,SNDLEVEL_NORMAL,SND_NOFLAGS,SNDVOL_NORMAL);
Despite the fact that many years have passed since the opening this topic, seems in sound engine something is still not right.
The following lines give exactly the same volume level, although judging by sourcemod\scripting\include\sdktools_sound.in c difference should be.
Code:
EmitSoundToClient(client,g_soundName,SNDCHAN_AUTO,SNDLEVEL_NORMAL);
...and...
EmitSoundToClient(client,g_soundName,SNDCHAN_AUTO,SNDLEVEL_RAIDSIREN);