Blocking ALL sound from a player
Hello, I have a hard time blocking all sounds coming from a (certain) player. No matter what I do, I can't get rid of reload/zoom sounds (and possibly others, too).
I've tried sound hooks, both normal and ambient. Those sounds simply go unnoticed by it (same as sounds caused by "Shotgun Shot"). I've tried hooking weapon_reload event and disabling broadcast, but that doesn't work either. I've tried SDKHook_SetTransmit on client. The client is invisible and doesn't update on the radar, but I can still hear those pesky sounds. I've tried SDKHook_SetTransmit on weapons. Still no luck. I've tried SDHook_Reload. I take it I can't do anything with it except for blocking the reload (which I don't intend to do). Any ideas? |
Re: Blocking ALL sound from a player
Not 100% sure if you can block all sounds from playing to a client but what I would try is the sound hooks again but try both setting the volume to 0, changing the path to empty maybe with both of these returning changed and then just flat out returning stop. Certain things like player footsteps are hard to stop because of client predictions from previous experience.
You could send the convar to the client on connect to set their footsteps to 0, I did that once and it seemed to work. |
Re: Blocking ALL sound from a player
You cant block predicted sounds for yourself.
They will be blocked for all clients besides the client generating the sound. You can turn prediction off to help accomplish what you want, but movement and key reactions will be effected by ping. |
Re: Blocking ALL sound from a player
Quote:
|
Re: Blocking ALL sound from a player
Maybe you are able to block broadcast on weapon_reload Event.
Not tested. |
Re: Blocking ALL sound from a player
Sounds are client sided.
You can block the client’s sound when firing a weapon, but others would still hear it. Although I’m not entirely sure if you could force the players to run with no sound. Worth a try. Edit: (Anyone, correct me if I’m wrong) |
Re: Blocking ALL sound from a player
Quote:
You can block almost everysound including footsteps for other players. You cant block most of your own sounds as the game client plays them as part of prediction. |
Re: Blocking ALL sound from a player
Quote:
|
All times are GMT -4. The time now is 14:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.