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

[CS:GO] EmitSound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raitom
New Member
Join Date: Aug 2012
Old 08-17-2012 , 17:56   [CS:GO] EmitSound
Reply With Quote #1

Hi guys !

I'm trying to use a function to play sounds in cs:go. I used the sourcemod functions EmitSound, EmitSoundToAll and EmitSoundToClient but no one of these seems to work (I tried with a simple sound file in .wav and .mp3 ).

So does anybody have been able to use these functions in cs:go ?
raitom is offline
TheAvengers2
BANNED
Join Date: Jul 2011
Old 08-18-2012 , 10:03   Re: [CS:GO] EmitSound
Reply With Quote #2

Quote:
Originally Posted by raitom View Post
So does anybody have been able to use these functions in cs:go ?
SMAC uses them. http://hg.nicholashastings.com/smac/...llhack.sp#L408

Last edited by TheAvengers2; 08-18-2012 at 10:03.
TheAvengers2 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-18-2012 , 16:12   Re: [CS:GO] EmitSound
Reply With Quote #3

The function works... getting the sound to be heard by the client on CS:GO is another story... unless you put your sounds in a custom .vpk and get that to the clients (which have built in audio cache), the clients won't hear your sound, unless they execute the snd_rebuildaudiocache command, which takes about 2 minutes or so, depending on your system...
__________________
View my Plugins | Donate
TnTSCS is offline
BoBzY
AlliedModders Donor
Join Date: Aug 2010
Location: Bruxelles
Old 08-19-2012 , 02:24   Re: [CS:GO] EmitSound
Reply With Quote #4

So, any "simple" way to play our old .wav, .mp3 in CS:GO?

In case of no, how to make the vpk?
How it work to play a selected sound?

Thanks for infos
BoBzY is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 08-22-2012 , 21:31   Re: [CS:GO] EmitSound
Reply With Quote #5

just put you mp3 in sound\music\YOUFOLDER\
__________________
altex is offline
BoBzY
AlliedModders Donor
Join Date: Aug 2010
Location: Bruxelles
Old 08-22-2012 , 22:26   Re: [CS:GO] EmitSound
Reply With Quote #6

[Sound] S_StartSound(): Failed to load sound 'sound\music\test.mp3'. Can't create mixer.

Last edited by BoBzY; 08-22-2012 at 22:27.
BoBzY is offline
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 08-24-2012 , 12:28   Re: [CS:GO] EmitSound
Reply With Quote #7

Quote:
Originally Posted by altex View Post
just put you mp3 in sound\music\YOUFOLDER\
I noticed this on GG for CSGO, great finding Altex!

Custom sounds work with no problems.
__________________

Last edited by tigerox; 08-24-2012 at 12:28.
tigerox is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 08-24-2012 , 13:26   Re: [CS:GO] EmitSound
Reply With Quote #8

Quote:
Originally Posted by tigerox View Post
I noticed this on GG for CSGO, great finding Altex!

Custom sounds work with no problems.
the only issue i found is that the sounds work only in mp3 format, wav does not work
__________________
altex is offline
BoBzY
AlliedModders Donor
Join Date: Aug 2010
Location: Bruxelles
Old 08-24-2012 , 18:49   Re: [CS:GO] EmitSound
Reply With Quote #9

oh yeah, I missed the "YOURFOLDER"

Soz & ty
BoBzY 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 11:35.


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