TF2DECAP: Heads will roll! (Decapitation plugin)
1 Attachment(s)
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. |
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Code:
public Plugin:myinfo = |
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Well alright, I've changed that, but how did you want me to put his name in there?
|
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
Also, this is just a pet-peeve and maybe you're still learning, but usually this is also considered a little silly: Take note I am just nit-picking here. So don't take offense. Code:
//Loop: :) |
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Useless comments stripped, thank you.
|
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Pretty cool, are you able to make every weapon headshot work, or does Valve only record headshots with the Rifle/Huntsman/Ambassador?
|
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
If I'm completely wrong about prehooking player_hurt and whatnot, please tell me, I'll do that. |
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Since you reported and asked the questions I will respond.
You did everything just fine. I will be leaving this plugin in New Plugins for a bit to have others test it and report on it. |
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
|
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
I can confirm that this works great.
|
All times are GMT -4. The time now is 10:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.