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

Helmet Hit Sound


Post New Thread Reply   
 
Thread Tools Display Modes
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 02-02-2009 , 13:41   Re: Helmet Hit Sound
Reply With Quote #21

Just undelete my posts or if deleting is a permanent action put a real moderator moderating moderators deletes.
joaquimandrade is offline
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 02-03-2009 , 20:53   Re: Helmet Hit Sound
Reply With Quote #22

Yup... verry basic plugin, but I don't think the rules are encouraging newbies.... Not so satisfied with the rules....
Maybe add some "Simple plugins" cat. on forum for this kind of plugins...
Maybe someone would like to see or use some...

Annyways Karma+ for the author/s because they tried to do something that others may find useful...
Costin83 is offline
Send a message via Yahoo to Costin83
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 02-04-2009 , 12:37   Re: Helmet Hit Sound
Reply With Quote #23

I am not going to read through the responses, HOWEVER, IMHO...

The plugin should be able to stay, provided it works, and provided it has a useful function, and that it has code that is fairly well parsed down. Otherwise, well, obviously by the rules set forth it needs some more work.

A discussion about the rules, however, should be taking place in a PM and not inside of a thread. If there are questions, direct them to an Admin or something along those lines. Generally, for a first plugin such as this I am sure we can see past some very old rules. You do have to remember the fact that those rules were designed at a time where we were getting multiple similar plugins doing the same thing.

Search to make sure that this plugin isnt a duplicate of a similar plugin, make sure its not a basic copy of something already in existance, and approve it.

We on the same page here? Yes? Good.
__________________
Quote:
Originally Posted by Brad View Post
That sounds like a really good idea!
Now replace the word "good" with "dumb".
What was your rationale for proposing such a thing?
Roach is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-05-2009 , 22:47   Re: Helmet Hit Sound
Reply With Quote #24

I disagree with YamiKaitou and agree with stupok/ConnorMcLeod and will approve this plugin. I think his reaction to this situation was unwarranted and overreactive.

This plugin is well done.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Fruktmixer
Junior Member
Join Date: Jun 2008
Old 02-15-2009 , 07:27   Re: Helmet Hit Sound
Reply With Quote #25

This sound are from the first rainbow six game, This plugin is cool ;)
__________________
Fruktmixer is offline
naveed
Member
Join Date: Jul 2008
Old 03-06-2009 , 00:11   Re: Helmet Hit Sound
Reply With Quote #26

This Would Have Been Better If You Could Put More Sounds And Let Us Choose Which One To Use
naveed is offline
IMBA
BANNED
Join Date: Oct 2009
Old 12-21-2009 , 15:22   Re: Helmet Hit Sound
Reply With Quote #27

how to make this plugin with 3 sounds random each of them
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <fakemeta_stocks>
#define OFFSET_ARMORTYPE 112
#define fm_get_user_armor_type(%1) get_pdata_int(%1, OFFSET_ARMORTYPE)

new MAX_PLAYERS;
new const 
SOUND[] = {
    
"misc/headshot1.wav","misc/headshot2.wav","misc/headshot3.wav"
}
public 
plugin_cfg() {
    
MAX_PLAYERS get_maxplayers();
}
public 
plugin_init() {
    
register_plugin("Hx","aa","xad")
    
RegisterHam(Ham_TakeDamage"player""playerTakeDamage");
}
public 
plugin_precache() {
    
precache_sound(SOUND)
}
public 
playerTakeDamage(victiminflictorattackerFloat:fDamagebitDamage)  {
    if( (
<= victim <= MAX_PLAYERS) && (<= attacker <= MAX_PLAYERS) && is_user_connected(victim)) {
        new 
gun,hitZone
        get_user_attacker
(victim,gun,hitZone)        
        if( (
fm_get_user_armor_type(victim) & 2) && (hitZone == HIT_HEAD)) {
            new 
Float:origin[3];
            
pev(victim,pev_origin,origin);
            
EF_EmitAmbientSound(0,origin,SOUND1.0ATTN_NORMPITCH_NORM);
        }
    }


Last edited by IMBA; 12-21-2009 at 17:12.
IMBA is offline
alibimag
New Member
Join Date: Nov 2010
Old 09-08-2011 , 07:39   Re: Helmet Hit Sound
Reply With Quote #28

nice
__________________
alibimag is offline
Send a message via ICQ to alibimag Send a message via Skype™ to alibimag
x7s
New Member
Join Date: Feb 2012
Location: Rousse - Bulgaria
Old 02-24-2018 , 14:06   Re: Helmet Hit Sound
Reply With Quote #29

Hello guys i trying to optimized for 1.8.3 if wrong somethink please tell me where i wrong

PHP Code:
//Tested and working good at Amx Mod X 1.8.3
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <fakemeta_stocks>

#define PLUGIN    "Helmet Hit Sound"
#define AUTHOR    "tmen13"
#define VERSION    "1.0"

#define OFFSET_ARMORTYPE 112
#define fm_get_user_armor_type(%1) get_pdata_int(%1, OFFSET_ARMORTYPE)

#if AMXX_VERSION_NUM < 183 
    #define MAX_PLAYERS    32
#endif

//This is from previos version of Amx Mod X
/*new MAX_PLAYERS;*/

new const SOUND[] = "misc/helmet.wav";

// This is from previos version of Amx Mod X
/*public plugin_cfg()
{
    MAX_PLAYERS = get_maxplayers();
}*/

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_TakeDamage"player""playerTakeDamage");
}
public 
plugin_precache()
{
    
precache_sound(SOUND)
}
public 
playerTakeDamage(victiminflictorattackerFloat:fDamagebitDamage
{
    
/*if( (1 <= victim <= MAX_PLAYERS) && (1 <= attacker <= MAX_PLAYERS) && is_user_connected(victim))*/ // This is from previos version of Amx Mod X
    
if( (<= victim <= MaxClients) && (<= attacker <= MaxClients) && is_user_connected(victim))
    {
        new 
gun,hitZone
        get_user_attacker
(victim,gun,hitZone)
                
        if( (
fm_get_user_armor_type(victim) & 2) && (hitZone == HIT_HEAD))
        {
            new 
Float:origin[3];
            
pev(victim,pev_origin,origin);
            
            
EF_EmitAmbientSound(0,origin,SOUND1.0ATTN_NORMPITCH_NORM);
        }
    }

x7s is offline
Send a message via ICQ to x7s Send a message via Skype™ to x7s
Reply


Thread Tools
Display Modes

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 15:31.


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