View Single Post
Author Message
NuclearWatermelon
Junior Member
Join Date: Jun 2010
Old 11-16-2010 , 19:29   [TF2] Melee Duels
Reply With Quote #1

Based off the original Melee Dare plugin here, the goal of this plugin is to allow two players to have a melee duel with each other without being killed by an enemy teammate by way of making them invulnerable from all but their dueling partner.

As in the melee dare plugin, the conditions for which constitute a melee duel are that both players have their melee weapons out, are looking at each other, and are not spies. During the course of a melee duel, if either party changes away from their melee weapon, the duel is automatically ended for both and the immunity effects are removed.

Version Log:
  • v1.2.2: Fixed a bug with OnTakeDamage giving something other than a client for attacker
  • v1.2.1: Fixed a bug in servers with a large amount of people.
  • v1.2: Added textures above duelers' heads to indicate who to hit. Added Csay text when a duel starts/ends.
  • v1.1: Added colors.inc to make the messages a bit more noticeable.
  • v1.0: Initial release.


Todo list (help of any sort is greatly appreciated):
  • Hook damage done to buildings to protect them from dueling persons (possible game-breaker, play testing needed)
  • Disable medics from healing/ubering those in a duel


Requirements:
  • SDKHooks
  • colors.inc
Attached Files
File Type: zip meleeduel_materials.zip (35.5 KB, 527 views)
File Type: sp Get Plugin or Get Source (meleeduel.sp - 485 views - 14.3 KB)
File Type: smx meleeduel.smx (12.7 KB, 613 views)

Last edited by NuclearWatermelon; 11-18-2010 at 21:20.
NuclearWatermelon is offline