View Single Post
Author Message
sebuli
Junior Member
Join Date: Aug 2016
Old 03-21-2020 , 19:29   [CS:GO] GetParametersForSound crashes server. SourceMod bug?
Reply With Quote #1

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::GetParametersForSoundNo 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.

Last edited by sebuli; 03-22-2020 at 06:16.
sebuli is offline