Raised This Month: $ Target: $400
 0% 

Ham_Killed HeadShot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-02-2014 , 20:50   Ham_Killed HeadShot
Reply With Quote #1

Well i always used deathmsg, never tried ham_killed before.
I have been looking into it but i have 2 questions.
First, how to know when player died by HeadShot if i use ham_killed?
Second, does "idattacker" detects HE kills too?
__________________
Jhob94 is online now
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-02-2014 , 21:08   Re: Ham_Killed HeadShot
Reply With Quote #2

headshot: https://forums.alliedmods.net/showpo...20&postcount=8
grenade kill: https://forums.alliedmods.net/showpo...66&postcount=3
Backstabnoob is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 06-03-2014 , 01:18   Re: Ham_Killed HeadShot
Reply With Quote #3

Code:
const lastHitgroup = 75

if (get_pdata_int(victim, lastHitgroup) == HIT_HEAD)
{
..hs
}
and idattacker detects all kinds of kills.
P.S. there is also an offset m_bHeadShotKill.

Spoiler
__________________


Last edited by NiHiLaNTh; 06-03-2014 at 01:19.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-03-2014 , 14:17   Re: Ham_Killed HeadShot
Reply With Quote #4

Quote:
Originally Posted by NiHiLaNTh View Post
and idattacker detects all kinds of kills.
So i can just detect the HE like any other gun and i dont need what backstab posted?
__________________
Jhob94 is online now
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-04-2014 , 04:49   Re: Ham_Killed HeadShot
Reply With Quote #5

Quote:
Originally Posted by Jhob94 View Post
So i can just detect the HE like any other gun and i dont need what backstab posted?
Well it depends on now you detect "any other gun" ...
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-04-2014 , 05:11   Re: Ham_Killed HeadShot
Reply With Quote #6

What's exactly idattcker returns?
__________________
Jhob94 is online now
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-04-2014 , 07:35   Re: Ham_Killed HeadShot
Reply With Quote #7

What it says, ID of the attacker.
Backstabnoob 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 09:41.


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