View Single Post
sapphonie
Junior Member
Join Date: Aug 2020
Location: ohio
Old 10-05-2021 , 17:13   Re: [TF2] Make every weapon headshot
Reply With Quote #5

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.
__________________
she/her

Last edited by sapphonie; 10-05-2021 at 17:14.
sapphonie is offline