Hi,
PHP Code:
#include <sourcemod>
#include <sdktools>
#define SOUND_UP_1 "ambient/atmosphere/cave_hit6.wav"
#define SOUND_UP_4 "music/zombiechoir/zombiechoir_04.wav"
public void OnPluginStart()
{
RegAdminCmd("sm_d", CmdD, ADMFLAG_ROOT, "");
}
public Action CmdD(int client, int args)
{
PrintToChat(client, "Playing");
float vec[3];
GetClientAbsOrigin(client, vec);
EmitSoundToClient(client, SOUND_UP_4, _, SNDCHAN_AUTO);
//EmitAmbientSound(SOUND_UP_4, vec, SOUND_FROM_WORLD, SOUL_SND_LEVEL, SND_NOFLAGS, 1.0);
}
SOUND_UP_1 is playing normally.
But, SOUND_UP_4, located in /music/ subfolder go to "music" channel. So if I adjust my game settings to 0 level of music volume, I can't hear that sound.
Is it possible to change sound type (without placing wav to another folder)?
I tried different SNDCHAN
constants from inc, but it didn't help.
Thanks.
__________________