The reason I want this to work is because player_hurt doesn't get hitgroup information, and I'm trying to get headshot hitsounds, not just a headshot sound when someone dies. What's really weird though, is that I had this working under EventScripts at one point, so in light of this, I created a new event player_hurt_x and had ES fire it off to SourceMod (which is really cool), but it wasn't including hitgroup information, and then when I tried my ES script that
was working, normal hitsounds worked but headshot sounds had stopped working. My best guess is that I was running a plugin or script or something that added hitgroup information to the player_hurt event before EventScripts got it. I really wish I could figure that one out.
As far as actual hitgroup restrictions, this script is based off of a hack extension, and despite my best efforts, I haven't been able to get it to run stable. The hitgroups works for a while, and then it quits working after anywhere from a couple minutes to about 20 minutes with varying server loads. I wish the author of this thing would return to life and take a look at it
On the upside, when not running this script, SourceMod appears to be running just fine, no weird crashes or anything.