Raised This Month: $32 Target: $400
 8% 

Solved [CS:GO] Problem with EmitSoundToClient


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 07-19-2017 , 13:04   [CS:GO] Problem with EmitSoundToClient
Reply With Quote #1

Since several months ago when new sound system was added
EmitSoundToClient now works like EmitAmbientSound
When you are dead and watching by other player
Sound plays from your dead body
Maybe smb know how to fix this ?

Last edited by Indarello; 07-24-2017 at 04:38.
Indarello is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 07-19-2017 , 22:55   Re: [CS:GO] Problem with EmitSoundToClient
Reply With Quote #2

Try
PHP Code:
ClientCommand(client"play *sound.mp3"); 
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 07-24-2017 , 04:36   Re: [CS:GO] Problem with EmitSoundToClient
Reply With Quote #3

Fix
SoundLevel = 0 = SNDLEVEL_NONE
EmitSoundToClientAny(client, sound, _, _, 0);

Last edited by Indarello; 07-24-2017 at 04:38.
Indarello is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 07-30-2017 , 09:22   Re: [CS:GO] Problem with EmitSoundToClient
Reply With Quote #4

/**
* Specifies the sound that gets played when an item is selected from a menu.
*/
"MenuItemSound" "buttons/button14.wav"

From Core.cfg
How to modify also them?
Indarello is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 01-05-2019 , 05:02   Re: [CS:GO] Problem with EmitSoundToClient
Reply With Quote #5

Even More better if you also add
int entity = SOUND_FROM_LOCAL_PLAYER = -1
EmitSoundToClientAny(client, sound, -1, _, 0);
Indarello is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-05-2019 , 07:44   Re: [CS:GO] Problem with EmitSoundToClient
Reply With Quote #6

Quote:
Originally Posted by rogeraabbccdd View Post
Try
PHP Code:
ClientCommand(client"play *sound.mp3"); 
This is a bit problematic because it doesn't allow pitch and the worst: doesn't allow volume adjustment. This is because Volvo forgot to make playvol as server_can_execute
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-09-2019 , 15:36   Re: [CS:GO] Problem with EmitSoundToClient
Reply With Quote #7

Quote:
Originally Posted by eyal282 View Post
This is a bit problematic because it doesn't allow pitch and the worst: doesn't allow volume adjustment. This is because Volvo forgot to make playvol as server_can_execute
Or just don't use ClientCommand to play sounds, EmitSoundToClient still works
Mitchell is offline
Reply


Thread Tools
Display Modes

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 19:37.


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