Raised This Month: $ Target: $400
 0% 

[CSGO] EmitSoundToClient issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BoBzY
AlliedModders Donor
Join Date: Aug 2010
Location: Bruxelles
Old 07-14-2014 , 14:51   [CSGO] EmitSoundToClient issue
Reply With Quote #1

Hello,

I have a little problem using EmitSoundToClient with CSGO.

I precaching & emiting mp3 file using the following method https://wiki.alliedmods.net/Csgo_quirks

It works fine I can emit sound, but unlike css, I'm not able to play more than 1 sound at once (the next emitsound will stop the previous one)

This problem doesnt appear if I'm using wav file, but every client will need to snd_rebuildaudiocache, so csgo force me to use only mp3 file.

Any idea on the how to play more than 1 mp3 file ?

Edit : Using ClientCommand with playgamesound dont fix the problem

Any idea?
Thanks.

Last edited by BoBzY; 07-14-2014 at 14:57.
BoBzY is offline
sxe88894
New Member
Join Date: Dec 2013
Old 09-01-2014 , 15:37   Re: [CSGO] EmitSoundToClient issue
Reply With Quote #2

Try this

Code:
EmitSoundToClient(client,"*test/test.mp3", SOUND_FROM_PLAYER, SNDCHAN_STATIC);
sxe88894 is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 09-01-2014 , 17:29   Re: [CSGO] EmitSoundToClient issue
Reply With Quote #3

Or use this https://forums.alliedmods.net/showthread.php?t=237045
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
BoBzY
AlliedModders Donor
Join Date: Aug 2010
Location: Bruxelles
Old 09-01-2014 , 20:57   Re: [CSGO] EmitSoundToClient issue
Reply With Quote #4

Quote:
Originally Posted by sxe88894 View Post
Try this

Code:
EmitSoundToClient(client,"*test/test.mp3", SOUND_FROM_PLAYER, SNDCHAN_STATIC);

Quote:
Originally Posted by Bara View Post

edit : Both combined seems to works
ty

Last edited by BoBzY; 09-01-2014 at 21:47.
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 16:15.


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