Description:
This is a sudden death melee only plugin for TF2.
It's based on an idea in Beetlesmod where everyone is turned into a heavy weapons guy and combat is with melee weapons only (fists).
However, (following an excellent suggestion from ferret) it also allows admins to specify which class to use for melee rounds so it's not limited to heavy guy only.
Additionally, admins can choose to have a random class be used per suddendeath round.
There is also a "boombastic" mode which gives demomen stickybombs to blow each other into chunks with...
Usage:
To enable the plugin you need to extract the attached zip archive inside your addons/sourcemod/ directory.
Of course you will not get stalemate rounds unless you set the server cvar
mp_stalemate_enable 1
To disable the mod set the cvar
sm_suddendeath_melee 0
To set the class to use for melee sudden death set the cvar
sm_suddendeath_melee_class to one of:
"scout", "sniper", "soldier", "demoman", "medic", "heavyweapons", "pyro" or "boombastic"
Additionally you can set
sm_suddendeath_melee_class to
"random" to enable a random class to be used each time.
Credits:
BeetleFart of Beetlesmod fame for the original idea.
None of these cool plugins would be possible without the tireless efforts of the Sourcemod team.
This plugin is based on code from SM_CHICKEN by TechNow, MaxClass from Nican123 as well as many ideas from the Soucrcemod scripting community which I've studied to get ideas and understand concepts.
Credit to ferret for suggesting the idea of configuring what classes to use rather than just hardcoded "Heavy Weapons Guy".
[-TSG-]HarleyDave for the Boombastic idea.
Finally, huge Kudos to the clan members of The Schizophrenic Gimps (TSG) and all the regs on the jarHedz TSG servers for their help and patience in testing.
Disclaimer:
This release has been tested but not extensively. It's appeared to behave as expected on two servers I've tested it on, but not all possible test scenarios have been addressed, so I make no warranty as to it's efficacy or that it won't blow your server into heaving chunks. Use at your own risk!
That being said, I'd appreciate feedback as to the performance and any bugs you find
(also, any of the old-hands who might look at the code, feel free to give me some pointers if I'm doing some things in a braindead fashion - It's been a long time since I wrote any plugins...)
If you do have a problem, then please give me as much information as you can. "It doesn't work" is less than useless to me as feedback. If you don't give me more than that, I won't be able to help you.
Servers running this mod:
http://www.game-monitor.com/search.p...dendeath_melee
Finally, if you prefer to "try before you buy" you're free to come join my test servers (T-S-G clan's servers, hosted by jarHedz) on fozzy.jarhedz.com:27018 or animal.jarhedz.com:27015
License:
GNU Public License V2.0 (included in the zip)
Changelog
* 1.0 - Initial Release
* 1.0.1 - Removed timers to fix error with some heavies not registering hits.
* 1.0.2 - Added a cvar to select which class to use for melee, or "random" to use a random class for each sudden death (or "none" to not change class but just use melee weapons).
* 1.0.3 - Strip all weapons at ResetClass to make sure that when people respawn in next round there aren't stragglers.
* 1.0.4 - Check for MaxClass plugin and disable for the duration of the sudden death round.
* 1.0.5 - Spy just doesn't work. Therefore disabled Spy as an option. But on the plus side, there's a new "boombastic" mode where demo-men use stickybombs to demolish each other - Lots of explosions, hilarity and even some "shennanigans" ensue!
* 1.1.0 - New methodology for handling sudden death melee. Code reorganisation for easier maintenance in the future.
* 1.1.1 - Caught nasty little bug where if tf_stalematechangeclasstime was 0 people weren't changing class.
* 1.1.2 - Fix to catch spectators joining team and getting any class they like.