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

Hook the Reload Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 10-13-2018 , 14:13   Re: Hook the Reload Sound
Reply With Quote #21

Try it with AddTempEntHook("Shotgun Shot", TE_OnShotgunShot);
That mutes impact effect+sound.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.

Last edited by Bara; 10-13-2018 at 14:15.
Bara is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 10-14-2018 , 11:44   Re: Hook the Reload Sound
Reply With Quote #22

Quote:
Originally Posted by Bara View Post
Try it with AddTempEntHook("Shotgun Shot", TE_OnShotgunShot);
That mutes impact effect+sound.
True, just tested! Thanks man, I should have recognized this before. Was maybe confused by the body hits. The body-impacts /aim-punsh are still a problem! I tested AddNormalSoundHook and this one:
Code:
AddTempEntHook("Impact", TE_Impact);
The body-hits are not hooked with these two options.

edit: I just checked your code. Did you mute the body hits? If you did that, I don't see it. Could you give me the line?

Last edited by fragnichtnach; 10-14-2018 at 11:52.
fragnichtnach is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 10-14-2018 , 12:30   Re: Hook the Reload Sound
Reply With Quote #23

Quote:
Originally Posted by fragnichtnach View Post
edit: I just checked your code. Did you mute the body hits? If you did that, I don't see it. Could you give me the line?
With SDKHook_TraceAttack.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 10-14-2018 , 14:22   Re: Hook the Reload Sound
Reply With Quote #24

Thanks, however I still don't see it. I try to explain what is my problem by using your plugin as example:

Suppose one bullet that would connect in OnTraceAttack (in the ghostdm):
if(g_bDM[iAttacker] == g_bDM[iVictim])
--> all g_bRedie[client] in the real game will still listen this aimpunch I think.

Am I wrong? What I am not seeing? ....

(by the way: nice plugin)

Last edited by fragnichtnach; 10-14-2018 at 14:23.
fragnichtnach 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:58.


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