HTML Code:
public Action Client_TraceAttack (int victim, int &attacker, int &inflictor, float &damage, int &damagetype, int &ammotype, int hitbox, int hitgroup)
{
// headbox
if (hitgroup == 1)
{
damagetype |= (DMG_USE_HITLOCATIONS | TF_CUSTOM_HEADSHOT | DMG_CRIT);
}
return Plugin_Changed;
}
This works for me.
__________________