Hi,
there is some way to play game sound instead of using ClientCommand?
I'm trying do this like:
PHP Code:
EmitGameSoundToAll("tr.PuckFail")
Error:
PHP Code:
CSoundEmitterSystemBase::GetParametersForSound: No such sound tr.PuckFail
Any EmitGameSound command that uses GetParametersForSound crashes my server and in console I can find that there is no sound like "tr.PuckFail". But it's a wrong error, because in game_sounds_world.txt we can find this sound. If I join my server and put sv_cheats 1 and then in console I type
PHP Code:
playgamesound tr.PuckFail
then it works. I guess sourcemod has a bug and any of EmitGameSound command will not work.
I'd like to ask you if you know something about this problem. I found some info that in TF2 everything works fine. Thanks for help
Edit:
I tried this:
PHP Code:
EmitGameSoundToAll("training/puck_fail");
and
PHP Code:
EmitGameSoundToAll("training/puck_fail.wav");
then there is no error in server console, but nothing happend (no sound at all) and I think it's not because of no channel parameter.