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

Disable Defuse sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TCB_WyattEarp
Member
Join Date: Sep 2013
Old 06-17-2015 , 14:55   Disable Defuse sound
Reply With Quote #1

I would like to turn off the sound of a CT diffusing the bomb.
I think it lame for a CT to "sneak" all the way across the map to the site undetected, just to be given away by the sound of the defuse.

What about it?
TCB_WyattEarp is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-18-2015 , 20:03   Re: Disable Defuse sound
Reply With Quote #2

This will block c4_disarm.wav and c4_disarmed.wav sounds.
PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init() 
{
    
register_plugin"Disable C4 Defuse Sound" "0.1" "bugsy" );

    new 
szMap];
    
get_mapnameszMap charsmaxszMap ) );
    
    if ( 
equalszMap "de_" ) )
        
register_forwardFM_EmitSound "EmitSound" );
}

public 
EmitSoundid channel sample[] )
{
    return ( 
sample] == 'c' && sample] == '4' && sample11 ] == 'd' ) ? FMRES_SUPERCEDE FMRES_IGNORED;

__________________

Last edited by Bugsy; 06-18-2015 at 20:27.
Bugsy is offline
TCB_WyattEarp
Member
Join Date: Sep 2013
Old 06-20-2015 , 08:32   Re: Disable Defuse sound
Reply With Quote #3

Thanks
I will give this a shot !
TCB_WyattEarp 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 13:47.


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