Quote:
Originally Posted by Powerlord
To be fair, I'm not even sure if this include is necessary any more. I've heard a recent CS:GO update made it unnecessary.
|
I've just ran some test and the results were that the sound got played even tough I haven't used emitsoundany but the "default" emitsound so I can confirm you tought
My test case:
PHP Code:
#define SOUND "sound/hexah/mafix.wav"
#define PLAY "hexah/mafix.wav"
public void OnPluginStart()
{
RegConsoleCmd("sm_playsound", Cmd_Play);
}
public void OnMapStart()
{
AddFileToDownloadsTable(SOUND);
PrecacheSound(PLAY);
}
public Action Cmd_Play(int client, int args)
{
float vPos[3];
GetClientAbsOrigin(client, vPos);
EmitAmbientSound(PLAY, vPos);
}
I've tried both .mp3 & .wav
Quote:
Originally Posted by Bacardi
@fragnichtnach, ...what I remember, there is differences with *.wav and *.mp3 files. *.wav files work immediatelly if I don't remember wrong.
|
Here works fine with both
__________________