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

Solved how to block other player sounds for a single player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zkfpk6
Member
Join Date: Sep 2017
Old 11-21-2017 , 19:45   how to block other player sounds for a single player?
Reply With Quote #1

well i guess need this hook

PHP Code:
register_forward(FM_AddToFullPack"FM_AddToFullPack"
but i don't know in this hook how to catch which entity should play sounds. does the pev have this property?

Last edited by zkfpk6; 11-23-2017 at 00:15. Reason: wrong words
zkfpk6 is offline
zkfpk6
Member
Join Date: Sep 2017
Old 11-22-2017 , 01:49   Re: how to block other player sounds for a single player?
Reply With Quote #2

the reason is that i have a kz server, other player's fire sound/step sound/pain sound is too noisy for a player.
emmmmmm...plz reply
zkfpk6 is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 11-22-2017 , 05:36   Re: how to block other player sounds for a single player?
Reply With Quote #3

well if it's a kz server you could try this: https://forums.alliedmods.net/showpo...&postcount=122

that semiclip method has a side effect that does exactly what you want
jimaway is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-22-2017 , 09:43   Re: how to block other player sounds for a single player?
Reply With Quote #4

Do you need it to block sounds for a single player (a T player can't hear CT players, but CT players can hear others) or to block it for all (sound isnt emitted if it comes from CT team, but is emitted when it comes from T team)
TheWhitesmith is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 11-22-2017 , 16:28   Re: how to block other player sounds for a single player?
Reply With Quote #5

Play sound to certain ids.
__________________
Relaxing is offline
zkfpk6
Member
Join Date: Sep 2017
Old 11-23-2017 , 00:15   Re: how to block other player sounds for a single player?
Reply With Quote #6

Quote:
Originally Posted by jimaway View Post
well if it's a kz server you could try this: https://forums.alliedmods.net/showpo...&postcount=122

that semiclip method has a side effect that does exactly what you want
big thanks to uuuuuuuuuuuu!!!!!
work perfectly!! that's exactly i want!!(although i cant understand his code lol)
zkfpk6 is offline
zkfpk6
Member
Join Date: Sep 2017
Old 11-23-2017 , 00:20   Re: how to block other player sounds for a single player?
Reply With Quote #7

Quote:
Originally Posted by TheWhitesmith View Post
Do you need it to block sounds for a single player (a T player can't hear CT players, but CT players can hear others) or to block it for all (sound isnt emitted if it comes from CT team, but is emitted when it comes from T team)
no, i need block all sound that emit by other player such as walk/jump/fire/pain/, not about team. jimaway's answer is exactly i want. anyway, thanks for ur help
zkfpk6 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:01.


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