AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Disable Defuse sound (https://forums.alliedmods.net/showthread.php?t=264495)

TCB_WyattEarp 06-17-2015 14:55

Disable Defuse sound
 
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?

Bugsy 06-18-2015 20:03

Re: Disable Defuse sound
 
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;



TCB_WyattEarp 06-20-2015 08:32

Re: Disable Defuse sound
 
Thanks
I will give this a shot !


All times are GMT -4. The time now is 20:01.

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