View Single Post
Tylerst
Veteran Member
Join Date: Oct 2010
Old 06-18-2011 , 06:23   Re: [TF2] Health w/o Decay
Reply With Quote #17

Quote:
Originally Posted by 1695 View Post
Hi, sorry for the bumping but wouldn't that work ? :

You set the amount of life you wanna add (ex : new HPBoost = 50;) then OnGameFrame() you use SetEntityHealth to set client's health to "currentHealth + HPBoost" as long as "currentHealth > 1", then you stop adding the HPBoost...

Should do it no ? How CPU intensive is OnGameFrame ?
That would add 50 to the client's health every frame, essentially giving them infinite health, barring 1-shot kills.

As I said in one of my earlier posts though, you could use SDKHooks OnTakeDamage with that to lower it, however all that would be rather cpu intensive.

TF2Items is much easier, much less cpu intensive, and already has per player and/or adminflag based filters built in.
Not to mention it actually changes the base health(SetEntityHealth just boosts it above normal, like the medigun)

Last edited by Tylerst; 06-18-2011 at 06:34. Reason: typos
Tylerst is offline