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

Bomb sound


Post New Thread Reply   
 
Thread Tools Display Modes
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-25-2019 , 08:34   Re: Bomb sound
Reply With Quote #11

Quote:
Originally Posted by PawNod View Post
tardisd2 I am sory i forgot say " when hegrenade plant I change this sound " iam so sory
__________________









Last edited by CrazY.; 07-25-2019 at 08:39.
CrazY. is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-25-2019 , 08:39   Re: Bomb sound
Reply With Quote #12

I think somehow this section should have a minimum amount of letters entered (excluding scripts, links, images etc.). So this way questions will be more polite with every single user reading them.

Last edited by thEsp; 07-25-2019 at 08:40. Reason: was -> way
thEsp is offline
PawNod
Member
Join Date: Jun 2019
Location: Turkey
Old 07-25-2019 , 08:47   Re: Bomb sound
Reply With Quote #13

tardisd2 Okay, I'm telling you. I want to change the sound when the grenade explodes
PawNod is offline
PawNod
Member
Join Date: Jun 2019
Location: Turkey
Old 07-26-2019 , 03:57   Re: Bomb sound
Reply With Quote #14

Update
PawNod is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 07-26-2019 , 12:27   Re: Bomb sound
Reply With Quote #15

Quote:
Originally Posted by PawNod View Post
Update
Why update? No one knows what you want, we not gonna be guessing, if you want help, give a better explanation
tarsisd2 is offline
PawNod
Member
Join Date: Jun 2019
Location: Turkey
Old 07-26-2019 , 13:27   Re: Bomb sound
Reply With Quote #16

I want to change the sound when the grenade explode.This plugin for My health bomb thread.
PawNod is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-26-2019 , 13:41   Re: Bomb sound
Reply With Quote #17

Quote:
Originally Posted by PawNod View Post
I want to change the sound when the grenade explode.This plugin for My health bomb thread.
1. Read rules, do not bump your threads every day. Be patient.
2. Use better title as well as description. Instead of bumping over and over (every day) to specify your request.
3. Grenade explosion sound is client-side only, and therefore can't be replaced (override) to match stock sound perfectly.
thEsp is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-26-2019 , 14:21   Re: Bomb sound
Reply With Quote #18

Quote:
Originally Posted by thEsp
3. Grenade explosion sound is client-side only, and therefore can't be replaced (override) to match stock sound perfectly.
That's not true.
@OP try this plugin, I've tested and it's working.

PHP Code:

#include <amxmodx>
#include <engine>
#include <hamsandwich>

new const EXPLOSION_SOUNDS[][] = { "weapons/explode3.wav""weapons/explode4.wav""weapons/explode5.wav" };
new 
Float:g_flGameTimeg_pGrenade;

public 
plugin_init()
{
    
register_plugin("HE Explosion Sound""1.0""Crazy")
    
register_message(SVC_TEMPENTITY"MsgFunc_TempEntity");
    
RegisterHam(Ham_Think"grenade""CGrenade_Think");
}

public 
plugin_precache()
{
    for (new 
0sizeof EXPLOSION_SOUNDSi++)
        
precache_sound(EXPLOSION_SOUNDS[i]);
}

public 
MsgFunc_TempEntity(iMsgIdiMsgDestpMsgEnt)
{
    if (
get_msg_arg_int(1) != TE_EXPLOSION)
        return 
PLUGIN_CONTINUE;

    if (
get_gametime() != g_flGameTime)
        return 
PLUGIN_CONTINUE;
    
    
set_msg_arg_int(8ARG_BYTETE_EXPLFLAG_NOSOUND);
    
emit_sound(g_pGrenadeCHAN_WEAPONEXPLOSION_SOUNDS[random(sizeof EXPLOSION_SOUNDS)], VOL_NORMATTN_NORM0PITCH_NORM);
    return 
PLUGIN_CONTINUE;
}

public 
CGrenade_Think(this)
{
    if (!
is_valid_ent(this))
        return 
HAM_IGNORED;

    if (
entity_get_float(thisEV_FL_dmg) <= 40.0)
        return 
HAM_IGNORED;

    static 
Float:flGameTime;
    
flGameTime get_gametime();

    if (
entity_get_float(thisEV_FL_dmgtime) > flGameTime)
        return 
HAM_IGNORED;

    
g_pGrenade this;
    
g_flGameTime flGameTime;
    return 
HAM_IGNORED;

To change the explosion sounds edit this array
Code:
new const EXPLOSION_SOUNDS[][] = { "weapons/explode3.wav", "weapons/explode4.wav", "weapons/explode5.wav" };
__________________









Last edited by CrazY.; 07-26-2019 at 15:14.
CrazY. is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-26-2019 , 14:37   Re: Bomb sound
Reply With Quote #19

Have you tried throwing the grenade at longer distance? It will still emit sound all over the map with same volume.
thEsp is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 07-26-2019 , 14:44   Re: Bomb sound
Reply With Quote #20

Quote:
Originally Posted by PawNod View Post
I want to change the sound when the grenade explode.This plugin for My health bomb thread.
First time we heard about that health bomb plugin, for this and future reference, send us the source code
tarsisd2 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 14:27.


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