View Single Post
Flynn
Senior Member
Join Date: Sep 2009
Old 09-12-2009 , 20:24   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #9

Well, I have system I use for a different mod entirely to incap player's HP due to super-regeneration of health.

It basically modifies the HP on every game frame (there is no obvious incap for health the mod I am working with) to lower it.

In the case of TF2, only minor tweaks are required - an array to store all the client's maximum possible HP, another for their current HP (modifying it via the hurt_event manually getting the damage), and setting their HP to match the 'current HP' stored in an array in OnGameFrame (killing them when they fall below 1HP).

Absolutely nightmarish way of doing it, but it's pretty much guaranteed to work.

Or, if someone knows how; disable the degeneration element of the HP.
Flynn is offline
Send a message via MSN to Flynn Send a message via Skype™ to Flynn