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

Hook the Reload Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 10-06-2018 , 19:01   Hook the Reload Sound
Reply With Quote #1

Interested in muting the reload sound and jump-landing sound. Hooking footsteps is working fine with AddNormalSoundHook. But the reload sounds and the jump is not getting hooked by this function. Tested. Anybody an idea?
fragnichtnach is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 10-06-2018 , 19:44   Re: Hook the Reload Sound
Reply With Quote #2

They are client-side, aren't they?
You start reload, switch the gun, but reload sound does not stop.
__________________
My English is A0
E1_531G is offline
Kushfield
Member
Join Date: Jan 2017
Location: Estonia
Old 10-06-2018 , 20:42   Re: Hook the Reload Sound
Reply With Quote #3

I think you might be in the wrong section as AddNormalSoundHook does not exist in AMXX.
Kushfield is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 10-07-2018 , 01:52   Re: Hook the Reload Sound
Reply With Quote #4

Quote:
Originally Posted by Kushfield View Post
I think you might be in the wrong section as AddNormalSoundHook does not exist in AMXX.
oh, yes wrong section. Sorry. Is this moveable to the Sourcemod section?
fragnichtnach is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 10-10-2018 , 00:31   Re: Hook the Reload Sound
Reply With Quote #5

Not getting an answer should tell me this is impossible? I was expecting that this might not be possible. But I was hoping for sth. like AddTempEntHook("Shotgun Shot", Hook_ShotgunShot);! However I don't find a Temporary Entity matching a reload.
fragnichtnach is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 10-10-2018 , 03:37   Re: Hook the Reload Sound
Reply With Quote #6

I believe those are client sided sounds thus impossible. You could try alternative methods; for the reload, you could just make the player not reload and make a delay until his ammo regenerates but obviously it would look ridiculous. As for landing sound, many people attempted to figure out a way to mute it, but I'm not sure if anyone succeeded.
__________________
LenHard is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-10-2018 , 04:50   Re: Hook the Reload Sound
Reply With Quote #7

You can block sounds for others and not yourself.

Your game client predicts your landing sounds and reload and plays them before they they trigger via the server.

Sound you will always hear your own sounds while you can block other clients via sound hook or blocking events.
__________________
Neuro Toxin is offline
ttasdasda
Member
Join Date: Apr 2014
Old 10-10-2018 , 05:33   Re: Hook the Reload Sound
Reply With Quote #8

https://forums.alliedmods.net/showthread.php?t=310419
Spend quite some time trying to mute reload sounds, but alas, couldn't find a way to do it. Still, it HAS to be networked to the client somehow. Thought it could come from player reload animations, but couldn't figure out a way to fake a reload animation (setting m_nSequence 5 on a player weapoon doesn't seem to do anything; and PlayerAnimEvent doesn't seem to fire in CSGO).

Last edited by ttasdasda; 10-10-2018 at 05:50.
ttasdasda is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-10-2018 , 05:36   Re: Hook the Reload Sound
Reply With Quote #9

Maybe this...

https://wiki.alliedmods.net/Counter-...#weapon_reload
__________________
Neuro Toxin is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 10-10-2018 , 13:46   Re: Hook the Reload Sound
Reply With Quote #10

wow, big thanks for all the input. I will check this and will get back to this thread.
Not sure if I tested the blocking of AddNormalSoundHook on a different person than myself.

Last edited by fragnichtnach; 10-10-2018 at 18:06.
fragnichtnach 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 06:00.


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