AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ham_Killed HeadShot (https://forums.alliedmods.net/showthread.php?t=241397)

Jhob94 06-02-2014 20:50

Ham_Killed HeadShot
 
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?

Backstabnoob 06-02-2014 21:08

Re: Ham_Killed HeadShot
 
headshot: https://forums.alliedmods.net/showpo...20&postcount=8
grenade kill: https://forums.alliedmods.net/showpo...66&postcount=3

NiHiLaNTh 06-03-2014 01:18

Re: Ham_Killed HeadShot
 
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

Jhob94 06-03-2014 14:17

Re: Ham_Killed HeadShot
 
Quote:

Originally Posted by NiHiLaNTh (Post 2146072)
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?

hornet 06-04-2014 04:49

Re: Ham_Killed HeadShot
 
Quote:

Originally Posted by Jhob94 (Post 2146324)
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" ...

Jhob94 06-04-2014 05:11

Re: Ham_Killed HeadShot
 
What's exactly idattcker returns?

Backstabnoob 06-04-2014 07:35

Re: Ham_Killed HeadShot
 
What it says, ID of the attacker.


All times are GMT -4. The time now is 09:41.

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