This is fantastic
Still a last question: I'm using Ham_TakeDamage to catch a damage and execute some stuff. How I get the hitplace? Is the hitplace already set in the offset?
PHP Code:
new const m_LastHitGroup = 75
public ham_takedamage(iVictim, iInflictor, iAttacker, Float:fDamage, iDmgBits){
//A grenade or c4 explode
if (iInflictor != iAttacker) return HAM_IGNORED
new szClassA[33]
pev(iAttacker, pev_classname, szClassA, 32)
if (equal(szClassA, "player")){
new iWeapID = get_user_weapon(iAttacker)
if (iHitPlace == HIT_HEAD){
....
}
}
return HAM_IGNORED
}