Raised This Month: $32 Target: $400
 8% 

Helmet Hit Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
bomnacama
Senior Member
Join Date: Dec 2008
Location: Portugal
Old 01-30-2009 , 14:53   Helmet Hit Sound
Reply With Quote #1

Helmet Hit Sound

Description:

This is my first plugin, its very simple because im still learning.
This plugin adds an diferent sound to the helmet hit.
Just put the sound in sound/misc.
Credits to joaquimandrade for the help

Please report if something is wrong/buggy.

Quote:
Originally Posted by devicenull
Some examples of plugins that will not be approved:
Any plugin that lets you play one sound in response to one event.
Thats what my plugin does, but it can be put in other way. Just think of a plugin that custumizes an existing hit sount

Requires:

hamsandwich
fakemeta

Change-Log:

* 1.0
- First release
Attached Files
File Type: sma Get Plugin or Get Source (helmet_hit_sound.sma - 6145 views - 1.1 KB)
File Type: zip helmet_hit_sound.zip (8.3 KB, 5540 views)
__________________



Please FEED MY HAMSTERS by giving me +karma

Last edited by bomnacama; 02-02-2009 at 13:24.
bomnacama is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-30-2009 , 15:01   Re: Helmet Hit Sound
Reply With Quote #2

Quote:
Originally Posted by bomnacama View Post
Requires:

amxmodx
amxmisc
hamsandwich
fakemeta
Only FM and Ham are modules, so you can just remove the others.
SnoW is offline
Send a message via MSN to SnoW
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-30-2009 , 15:51   Re: Helmet Hit Sound
Reply With Quote #3

Quote:
Originally Posted by devicenull View Post
Some examples of plugins that will not be approved:
Any plugin that lets you play one sound in response to one event.
http://forums.alliedmods.net/newrepl...reply&p=189810
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
bomnacama
Senior Member
Join Date: Dec 2008
Location: Portugal
Old 01-30-2009 , 15:56   Re: Helmet Hit Sound
Reply With Quote #4

ive missed that.every one understands why we cannot post slowhacking, offensive plugins etc.but I cant understant why we cant post a plugin that does that
__________________



Please FEED MY HAMSTERS by giving me +karma
bomnacama is offline
Old 01-30-2009, 16:01
joaquimandrade
This message has been deleted by YamiKaitou. Reason: Not Needed/Arguing with staff
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-30-2009 , 16:14   Re: Helmet Hit Sound
Reply With Quote #5

It's not really a response to an event, + this is a good idea (i haven't listened the sound yet but if it's a helmet sound this is cool).


You don't need to check if the victim is valid, the fact that you register the ham forward with classname "player" is suffisent.
Also, this is not a hudge optimisation, but you can save a var by doing :
get_user_attacker(victim, hitzone, hitzone)

Or you can even try :

get_user_attacker(victim, _, hitzone)
I don't know how the compiler will react as i've never seen native such as :
native get_user_attacker(index,...);
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 01-30-2009 , 16:25   Re: Helmet Hit Sound
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
It's not really a response to an event, + this is a good idea (i haven't listened the sound yet but if it's a helmet sound this is cool).


You don't need to check if the victim is valid, the fact that you register the ham forward with classname "player" is suffisent.
Also, this is not a hudge optimisation, but you can save a var by doing :
get_user_attacker(victim, hitzone, hitzone)

Or you can even try :

get_user_attacker(victim, _, hitzone)
I don't know how the compiler will react as i've never seen native such as :
native get_user_attacker(index,...);
Yes you're right about the classname "player". It is sufficient.
Anyway this is a response to an event. The event is called "being hit in the head when with helmet".
joaquimandrade is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-30-2009 , 16:51   Re: Helmet Hit Sound
Reply With Quote #7

I would consider that a music or a funny sound is a sound in response to an event.
You plugin is more as a nice feature added to the game.

But call that as you want
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 01-30-2009 , 16:58   Re: Helmet Hit Sound
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
I would consider that a music or a funny sound is a sound in response to an event.
You plugin is more as a nice feature added to the game.

But call that as you want
This plugin is not mine. Is from bomnacama. I also think that is a nice feature but anyway i think that we can agree that it qualifies as a response to an event. Anyway, if the rule was meant to forbid plugins like this, it is stupid.

PS: Connor, to do this: get_user_attacker(victim, hitzone, hitzone), you must be sure that it is assigned the value to the last parameter after being assigned to the second parameter but, anyway, the code is uglier.

Last edited by joaquimandrade; 01-30-2009 at 17:06.
joaquimandrade is offline
Old 01-30-2009, 17:09
mahooo60
This message has been deleted by YamiKaitou. Reason: Not Needed/Arguing with staff
Old 01-30-2009, 17:16
bomnacama
This message has been deleted by YamiKaitou. Reason: Not Needed/Arguing with staff
Old 01-30-2009, 17:17
joaquimandrade
This message has been deleted by YamiKaitou. Reason: Not Needed/Arguing with staff
Old 01-30-2009, 17:18
bomnacama
This message has been deleted by bomnacama. Reason: dumb post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-30-2009 , 17:22   Re: Helmet Hit Sound
Reply With Quote #9

Quote:
Originally Posted by joaquimandrade View Post
you must be sure that it is assigned the value to the last parameter after being assigned to the second parameter
I'm affraid it's not the case
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 01-30-2009, 18:31
mahooo60
This message has been deleted by YamiKaitou. Reason: Not Needed/Arguing with staff
Old 01-30-2009, 18:47
joaquimandrade
This message has been deleted by YamiKaitou. Reason: Not Needed/Arguing with staff
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-30-2009 , 18:49   Re: Helmet Hit Sound
Reply With Quote #10

Are you planning on adding more features to this plugin? If not, then I will unapprove it per the rules
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Old 01-30-2009, 18:53
joaquimandrade
This message has been deleted by YamiKaitou. Reason: Not Needed/Arguing with staff
Old 01-30-2009, 18:54
Exolent[jNr]
This message has been deleted by YamiKaitou. Reason: Not Needed/Arguing with staff
Old 01-30-2009, 18:58
joaquimandrade
This message has been deleted by YamiKaitou. Reason: Not Needed/Arguing with staff
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:27.


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