View Single Post
Author Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-27-2012 , 15:02   [TF2] Horsemann Healthbar - 1.3.2, Updated 2012-08-16
Reply With Quote #1

Requires:
SDKHooks

Did it ever bug you that Monoculus has a health bar while the Horseless Headless Horsemann doesn't? Especially since get an achievement for killing the HHH with melee weapons?

Well, worry no more!

Limitations:
  • Only the first Horsemann spawned controls the health bar.
    • If multiple Horsemann are present, killing the first one will cause the health bar to show the next one's health.
  • If any of Monoculus are present, the Horsemann (menn?) will not control the health bar. This is to avoid an issue where the two fight over control of the health bar, with it reflecting the health of the last one damaged. This fix will be rolled out to Freak Fortress 2 soon, as well.
  • Doesn't work with Be The Horsemann or any other plugin that changes players into the Horsemann.

There's only one cvar:
horsemann_healthbar_enabled - 0/1 - default 1 (enabled)

As far as I can tell, the healthbar correctly disappears when the boss is killed. Let me know if you see differently.

Edit: Expect this to be more useful if I can get Force Holidays to consistently spawn the Horsemann on cp_manor_event.
Attached Files
File Type: sp Get Plugin or Get Source (horsemann_healthbar.sp - 910 views - 4.7 KB)
File Type: smx horsemann_healthbar.smx (4.5 KB, 1400 views)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-06-2012 at 09:52. Reason: Uploaded bugfix version
Powerlord is offline