This is something that belongs in the engine itself and not done with scripts, I can only hope the SKSE can do something about this, until then I want to talk about the feasiblity of this with using Papyrus alone.
I want to start small so I want to mainly talk about projectiles like arrows and ice spikes. Melee combat not apply.
I notice in the body part data that the game supports things like 'nodes' on bodies, and the human body has nodes for the head, shoulder, torso, leg, etc. So my first question is to ask if there is any possible way of getting the xyz coordinates of these body part nodes. If so, then this would be trvial, we can just take get the difference of the projectile and node, and we can say the arrow hit the head if the head node's position vector and the projectile's position vector are less than a certain number. I can't find any info on getting body part node positions in game however.
Now, my initial take on this is to look at the OnHit function the CK provides. It takes in the projectile i.e the arrow or ice shard. This seems to give me some hope in that I can l assume I can get the xyz coordinates of the projectile since it is a in game object. Now, the hackey solution here is as follows:
We have the xyz of the projectile, and we can get the xyz of the Actor who was hit by the projectile, the question now is where is the Actor's head xyz relative to the xyz of the Actor? I assume the xyz reported by the getPosition function or whatever is not the head itself, or this would also be easy. So I assume it is somewhere near the midsection of the Actor's mesh, like the torso, so the head is, if the actor is standing, [x,y,(z+offSet)] relative to the Actor, if standing. The moral of the story here is the head can be "estimated" by knowing the pose of the Actor [standing, crouching, bleeding out,], and doing simple math on the xyz in order to get a "hitbox" for the head to allow instant kill head shots.
These are my intial ideas, and I have not scripted much in previous titles, so if anyone can point me in the right direction or offer some cool new ideas on tackling this I would be very happy! Thanks!
If you couldn't tell, my goal is to make a mod that allow head shots from ice spikes to be lethal.

