Raised This Month: $ Target: $400
 0% 

headshot sound when doing headshot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-30-2010 , 16:00   Re: headshot sound when doing headshot
Reply With Quote #1

Include:
PHP Code:
#include <hamsandwich> 
Register:
PHP Code:
RegisterHam(Ham_TraceAttack"player""TraceAttack"); 
Public
PHP Code:
public TraceAttack(victimattackerFloat:damageFloat:dir[3], resultdmgbits)
{
            if(
get_tr2(resultTR_iHitgroup) = HIT_HEAD)
            {
                if(
get_user_health(victim) <= damage)
                {
                    
////emit_sound
                    ////hud_message
                
{
            }

Untested.
Gadzislaw007 is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 07-30-2010 , 16:04   Re: headshot sound when doing headshot
Reply With Quote #2

Why you don't hook Ham_Killed Gadzislaw007 ?
__________________
You can do anything you set your mind to, man.

Devil259 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 00:08.


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