[TF2] halloween_skeleton_killed Event Not Firing?
1 Attachment(s)
I am trying to make a PVE gamemode and I wanted to use skeletons (tf_zombie) as the enemies. One necessary step, is rewarding players for killing the skeletons but the only event I found that had any relation was halloween_skeleton_killed. When I tired to use it, I noticed it never fired. I had spawned in the skeleton using ent_create and thought that might have something to do with it. So I went to the map plr_hightower_event to see if the skeletons spawned on that map would cause the event to fire; and it did not. So, I tried searching for other events and found npc_hurt but that did not affect skeletons only the halloween bosses. I wanted to make sure the event was getting hooked, so I used HookEventEx to check, and it is. I've attached the code below and if anyone knows anything about why this is happening, please shed some light. Thanks.
|
Re: [TF2] halloween_skeleton_killed Event Not Firing?
I couldn't get it to fire either using the code below. I was on koth_lakeside_event, spawned all bosses and skeletons using bossspawns.
Hook Events not working: "halloween_skeleton_killed" and "halloween_boss_killed" Hook Event working: "escaped_loot_island" PHP Code:
|
Re: [TF2] halloween_skeleton_killed Event Not Firing?
I think I had this issue also back in like 2014. Event didn't fire so I had to use SDKHooks OnTakeDamage and just do some quick math of the damage the skeleton was taking and it's current HP to determine who the killer was. OnEntityDestroyed() might also give you something also but not as much as just hooking the damage of the skeleton entities after they spawn.
|
Re: [TF2] halloween_skeleton_killed Event Not Firing?
Quote:
|
All times are GMT -4. The time now is 07:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.