Re: [Snippet] TF2 Damage
Well, LDuke indirectly gave me the idea of hooking OnAnimationBegun on the resupply locker's model. This unfortunately doesn't send who touched the locker, so I'm forced to loop through all the clients and save their health. Not perfect, but it works. The new code is in the first post. I'm still interested though if anyone knows of a better way to do the lockers. LDuke is also looking for a way, and he needs to know who touched the locker.
|
Re: [Snippet] TF2 Damage
This wasn't working if the player was a medic (regen) or they were healed by a dispenser so I updated it.
PHP Code:
|
Re: [Snippet] TF2 Damage
Ouch, OnGameFrame :( That kind of defeats the whole purpose of hooking those events and outputs, you could just save their health every frame and be done. It would just be way more expensive.
|
Re: [Snippet] TF2 Damage
It would probably be faster to just get everyone's health in OnGameFrame than what I do now :|
|
Re: [Snippet] TF2 Damage
I do appreciate you trying to fix it though, just like I forgot about healthpacks and the lockers in the first version, I didn't think about the medic and dispenser either :/
|
Re: [Snippet] TF2 Damage
5 Attachment(s)
With the help of Fyren, I made a plugin that allows other plugins to get damage dealt by an attack.
|
Re: [Snippet] TF2 Damage
nvm, been said before... stupid me 0.o
|
| All times are GMT -4. The time now is 18:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.