AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Necro Smashin' Horsemann (https://forums.alliedmods.net/showthread.php?t=266177)

SoulSharD 07-12-2015 07:05

[TF2] Necro Smashin' Horsemann
 
1 Attachment(s)
[TF2] Necro Smashin' Horsemann

https://wiki.teamfortress.com/w/imag...ro_Smasher.png

This plugin enables the Necro Smasher Horsemann seen in the 2014 Scream Fortress update.
Note: This is an ENABLER, not a spawner. This way the plugin can be used alongside other boss spawning plugins without interfering with customized settings. Such as: health, size or glow.


The Necro Smashin' Horsemann performs exactly like the original, though with a few extra effects. Both axe and hammer wielding Horsemann's can exist without any problems.
This plugin works by replacing the original Horsemann whenever it spawns. Whether it's replaced or not can be determined by the 'sm_nsh_enable' setting.

To developers: Feel free to integrate this into your plugins. If you don't like the whole 'chance' thing.


CVARS:

  • sm_nsh_version - The universe will implode if you touch this.
  • sm_nsh_enable [def. 1.0] - The chance the Horsemann will spawn with a Necro Smasher. (0.0 - 1.0)

Examples:
  • sm_nsh_enable 1.0 - Will replace the original Horsemann every time.
  • sm_nsh_enable 0.0 - Will completely disable this plugin.
  • sm_nsh_enable 0.5 - Will replace the original Horsemann only 50% of the time.

Known Issues:
  • On sd_doomsday_event, the Necro Smashin' Horsemann will spawn regardless of cvars setting. (This is something Valve hard-coded, I believe) As a precaution, the plugin will not function on this map.
Changelog:
  • 1.0.0: Release
  • 1.0.2: Several fixes and improvements.
Downloads prior to last update: 60



friagram 07-12-2015 13:55

Re: [TF2] Necro Smashin' Horsemann
 
Why don't you hook the hhh spawn event, and then search entities for the hammer and change it, rather than all of this on entity created overhead?

SoulSharD 07-12-2015 14:19

Re: [TF2] Necro Smashin' Horsemann
 
I assume you're talking about pumpkin_lord_summoned?
Which sadly doesn't contain the entity index of the horsemann.

Though I could use OnEntityCreated on the horsemann instead, but there's no way of knowing what entity his weapon is.

Chdata 07-12-2015 15:12

Re: [TF2] Necro Smashin' Horsemann
 
CreateTimer(0.0

this doesn't actually make it happen a frame later the min time is 0.1, use RequestFrame

friagram 07-12-2015 17:23

Re: [TF2] Necro Smashin' Horsemann
 
Quote:

Originally Posted by SoulSharD (Post 2318934)
I assume you're talking about pumpkin_lord_summoned?
Which sadly doesn't contain the entity index of the horsemann.

Though I could use OnEntityCreated on the horsemann instead, but there's no way of knowing what entity his weapon is.


Requestframe on the event, in the callback find the entity by classname,

404UserNotFound 07-13-2015 09:40

Re: [TF2] Necro Smashin' Horsemann
 
Idea: Make some natives for this so the Boss Spawns plugin (originally made by me, continued on by r3dw3r3w0lf) can hook into it and spawn this particular Horsemann.

Benoist3012 07-14-2015 07:40

Re: [TF2] Necro Smashin' Horsemann
 
Awww I wanted to do it. Nice job!

MaloModo 07-14-2015 10:14

Re: [TF2] Necro Smashin' Horsemann
 
Yes thx for this....works fine with automatic boss spawner.

Benoist3012 07-17-2015 16:04

Re: [TF2] Necro Smashin' Horsemann
 
The true Necro Smashin' hhh make pepole fly when he hit the ground with his hammer maybe you can add it.

Pala4 07-25-2015 00:50

Re: [TF2] Necro Smashin' Horsemann
 
Fix it
L 07/25/2015 - 00:32:37: [SM] Native "GetEntPropEnt" reported: Entity -1 (-2051767396) is invalid
L 07/25/2015 - 00:32:37: [SM] Displaying call stack trace for plugin "nshhh.smx":
L 07/25/2015 - 00:32:37: [SM] [0] Line 81, /home/forums/content/files/2/4/0/5/9/2/146498.attach::OnPropSpawn()
L 07/25/2015 - 00:32:37: [SM] Native "GetEntPropEnt" reported: Entity -1 (-2053578003) is invalid
L 07/25/2015 - 00:32:37: [SM] Displaying call stack trace for plugin "nshhh.smx":
L 07/25/2015 - 00:32:37: [SM] [0] Line 81, /home/forums/content/files/2/4/0/5/9/2/146498.attach::OnPropSpawn()
L 07/25/2015 - 00:32:37: [SM] Native "GetEntPropEnt" reported: Entity -1 (-2115530149) is invalid
L 07/25/2015 - 00:32:37: [SM] Displaying call stack trace for plugin "nshhh.smx":
L 07/25/2015 - 00:32:37: [SM] [0] Line 81, /home/forums/content/files/2/4/0/5/9/2/146498.attach::OnPropSpawn()


All times are GMT -4. The time now is 12:55.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.