Raised This Month: $51 Target: $400
 12% 

[CS:GO] GetParametersForSound crashes server. SourceMod bug?


Post New Thread Reply   
 
Thread Tools Display Modes
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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode