AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Replace Smoke Explode Sound (https://forums.alliedmods.net/showthread.php?t=221744)

mottzi 07-25-2013 20:44

Replace Smoke Explode Sound
 
Hey,

could you show me, or send me link where it is shown, a method to replace the smokegrenade explode sound?

Ive searched and found that EmitSound isnt called when a smoke explodes...


Thanks in advance

UchihaSkills 07-25-2013 21:24

Re: Replace Smoke Explode Sound
 
http://forums.alliedmods.net/showthread.php?p=532225

mottzi 07-25-2013 21:48

Re: Replace Smoke Explode Sound
 
Ok, as ive read in connors code, it seems to be possible with EmitSound.

fl0werD 07-26-2013 10:20

Re: Replace Smoke Explode Sound
 
PHP Code:

#include < amxmodx >
#include < fakemeta >


#define SG_EXPLODE_SOUND         "weapons/sg_explode_new.wav"


public plugin_precache( )
{
    
register_forwardFM_EmitSound"FM_Hook_EmitSound", ._post );

    
precache_soundSG_EXPLODE_SOUND );
}

public 
FM_Hook_EmitSoundiEntityiChannelszSample[ ], FloatflVolFloatflAttniBitsFlagsiPitch )
{
    if( !
equalszSample"weapons/sg_explode.wav") )
        return 
FMRES_IGNORED;

    
emit_soundiEntityiChannelSG_EXPLODE_SOUNDflVolflAttniBitsFlagsiPitch );
    return 
FMRES_SUPERCEDE;



fl0werD 07-26-2013 10:25

Re: Replace Smoke Explode Sound
 
Quote:

Originally Posted by LordOfNothing (Post 1999122)
:nono:

Sasai.


All times are GMT -4. The time now is 06:30.

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