This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Replace Smoke Explode Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-25-2013 , 20:44   Replace Smoke Explode Sound
Reply With Quote #1

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
mottzi is offline
Send a message via MSN to mottzi
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 07-25-2013 , 21:24   Re: Replace Smoke Explode Sound
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?p=532225

Last edited by UchihaSkills; 07-25-2013 at 21:24.
UchihaSkills is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-25-2013 , 21:48   Re: Replace Smoke Explode Sound
Reply With Quote #3

Ok, as ive read in connors code, it seems to be possible with EmitSound.
mottzi is offline
Send a message via MSN to mottzi
fl0werD
Senior Member
Join Date: May 2011
Old 07-26-2013 , 10:20   Re: Replace Smoke Explode Sound
Reply With Quote #4

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;


Last edited by fl0werD; 07-26-2013 at 10:22.
fl0werD is offline
Send a message via ICQ to fl0werD
Old 07-26-2013, 10:23
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
fl0werD
Senior Member
Join Date: May 2011
Old 07-26-2013 , 10:25   Re: Replace Smoke Explode Sound
Reply With Quote #5

Quote:
Originally Posted by LordOfNothing View Post
Sasai.
fl0werD is offline
Send a message via ICQ to fl0werD
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 09:17.


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