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

How to hook these sounds?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 09-28-2018 , 19:47   How to hook these sounds?
Reply With Quote #1

How can I hook and block these sounds?

PHP Code:
    "weapons/ak47_boltpull.wav",
    
"weapons/aug_boltpull.wav",
    
"weapons/elite_deploy.wav",
    
"weapons/famas_boltpull.wav",
    
"weapons/fiveseven_slidepull.wav",
    
"weapons/galil_boltpull.wav",
    
"weapons/m4a1_boltpull.wav",
    
"weapons/mac10_boltpull.wav",
    
"weapons/mp5_slideback.wav",
    
"weapons/p228_slidepull.wav",
    
"weapons/p228_sliderelease.wav",
    
"weapons/sg552_boltpull.wav",
    
"weapons/usp_slideback.wav",
    
"weapons/m3_pump.wav" 
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-28-2018 , 19:57   Re: How to hook these sounds?
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=41265 or editing the model directly.
__________________








CrazY. is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 09-28-2018 , 22:59   Re: How to hook these sounds?
Reply With Quote #3

Don't this method block the animations when you block the sounds tho?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-29-2018 , 05:40   Re: How to hook these sounds?
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?t=280998
You also need to recode the firing part of the weapon.
__________________

Last edited by HamletEagle; 09-29-2018 at 05:40.
HamletEagle is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-29-2018 , 08:04   Re: How to hook these sounds?
Reply With Quote #5

Not only firing, as also reload and bullet "traces". Check Ghosted CSWM module.
__________________









Last edited by CrazY.; 09-29-2018 at 08:07.
CrazY. is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 09-29-2018 , 13:18   Re: How to hook these sounds?
Reply With Quote #6

Ok Hamlet, but I'm not talking about the firing sound. I just want to block all sounds I mentioned.

@CrazY. , I was thinking to do it without a module... is it possible?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 09-29-2018 at 13:39.
EFFx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-29-2018 , 14:02   Re: How to hook these sounds?
Reply With Quote #7

Quote:
Originally Posted by EFFx View Post
Ok Hamlet, but I'm not talking about the firing sound. I just want to block all sounds I mentioned.

@CrazY. , I was thinking to do it without a module... is it possible?
Block as in unprecache or block as block and replace them with something else?
__________________
HamletEagle is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 09-29-2018 , 14:55   Re: How to hook these sounds?
Reply With Quote #8

That's exatly what I thinked, but what should I hook or precache to block? I mean, how could I detect these sounds?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-29-2018 , 16:27   Re: How to hook these sounds?
Reply With Quote #9

Hook FM_PrecacheSound and block sounds from being precached. Not sure if this will cause server crash, but sure it will give some console warnings.

You can block "client prediction" without that module, what I mean was to you take a look at source code.
__________________








CrazY. 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 05:24.


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