Getting a hitgroup

Right, I’m making a weapon for detectives. Something like a knife, but I want it to do 75 damage upon hitting any part of the body but the head. I would prefer for it to do over 100 damage upon hitting the head. Do I just use the playerhurt hook and detect the hitgroup?

ScalePlayerDamage and ScaleNPCDamage have a hitgroup argument. If your weapon doesn’t pass through those ( which some don’t ), you can use EntityTakeDamage or other hook and do a trace. trace will return a .HitGroup as one of the elements.