I don't know about you, but the first thing I wanted to do when I saw the Eyelander was decapitate things. No, I'm not a ghost, but I do have a penchant for removing heads. So I thought, you know what this game needs? Even more decapitations!
Note:
Most of this plugin was directly... borrowed... from TF2Gore v2 (the gib part), so MAJOR credit goes to Joe 'Pinkfairie' Maley
http://forums.alliedmods.net/showthread.php?p=666087, if not for his work, this plugin would be looking a bit silly.
Description:
This plugin causes decapitations on headshots with any weapon able to headshot. It doesn't make a mess of logging, or your pots and pans, as it only creates a ragdoll.
Convars:
tf2decap_decap_always (default 0): Every kill is a decapitation. Gets a little wacky. Overrides huntsman setting.
tf2decap_decapitations (default 1): Allows the plugin to take over and turn headshots into decapitations.
tf2decap_decap_huntsman (default 1): The huntsman follows normal headshot rules (customkill 1), so the headshots will trigger a decapitation. If you don't like seeing a head rolling away from a neck with an arrow in it, change this to 0. This will decapitate regardless if tf2decap_decap_always is 1.
Development Notes:
This plugin prehooks player_death. Not as bad as some plugins, but if you're worried about that sort of thing, there you have it.
I've also left some room right at the start (DecapTypes, an array of customkill types to allow a decapitation, and a DecapTypeCount that follows it). It looks useless now with one type, but I felt it should be there for easy modifications.
Other notes:
If this isn't approved, I wouldn't mind if someone decides to make it better/fix whatever I did wrong because I kind of thought it was a good idea. I'm pretty sure I probably did something wrong (first submission), so as per the rules I'll be reporting my post.