Hey there, ET hackers (in the good sense)!
I’m new to modding and am trying to figure out how to distinguish headshots from body shots so I can play a sound for it. I found on another site how to do it for body hits and from there it was easy to do team hits. I figured it might be “headshot” since I found that elsewhere in the code but this doesn’t work:
if (headshot) {
blah1;
} else {
blah2;
}
I’m doing this in cg_playerstate.c which is how I found it done by someone else. I know it can be done from the server too but the client seems easier. And WhaleClient does it this way I imagine. I read on another site that he was going to open his source but he never did I don’t think. Too bad.
Hey thanks for any hints! 