Raised This Month: $ Target: $400
 0% 

Set Player's max HP on spawn (TF2)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragonshadow
BANNED
Join Date: Jun 2008
Old 09-14-2009 , 21:27   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #1

Brain, it hurts
Dragonshadow is offline
Stinkyfax
BANNED
Join Date: Aug 2007
Old 09-15-2009 , 09:24   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #2

Guys, don't fight.
I tried modifying m_iMaxHealth in map props and in netprops -> CTFPlayerResource -> m_iMaxHealth
neither of them seemed to work.
The last method has weired effect:
Like for 1 frame each 5 seconds I see my max HP being modified but then it instantly goes to normal...
Stinkyfax is offline
Flynn
Senior Member
Join Date: Sep 2009
Old 09-15-2009 , 10:06   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #3

Quote:
Originally Posted by Stinkyfax View Post
Like for 1 frame each 5 seconds I see my max HP being modified but then it instantly goes to normal...
That sounds like it implies TF2 has a maximum for how high you can heal a class up to, a threshold for where the HP starts to degenerate, and (keypoint) the 'current' HP.

Surely there must be a way we can find the other two variables...
Flynn is offline
Send a message via MSN to Flynn Send a message via Skype™ to Flynn
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-15-2009 , 10:49   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #4

Quote:
Originally Posted by Flynn View Post
a maximum for how high you can heal a class up to
Possibly 2147483647.

Quote:
Originally Posted by Flynn View Post
a threshold for where the HP starts to degenerate
Default class max health +1?

Quote:
Originally Posted by Flynn View Post
and (keypoint) the 'current' HP.
m_iHealth
bl4nk is offline
Flynn
Senior Member
Join Date: Sep 2009
Old 09-15-2009 , 13:30   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #5

Quote:
Originally Posted by bl4nk View Post
Default class max health +1?
But where is that default? If you can modify that, you can stop the degeneration.

Or maybe, like, a continuous 'healing' on the target player that doesn't give them health; just stops the degeneration?

Perhaps something like that. An always firing heal event on the given target that adds no health. Theoretically that could stop it, as if they had an invisible medic following them with a useless medigun.
Flynn is offline
Send a message via MSN to Flynn Send a message via Skype™ to Flynn
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 09-15-2009 , 14:44   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #6

You could play around with these couple cvars:

tf_boost_drain_time
tf_max_health_boost
pheadxdll is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-16-2009 , 09:16   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #7

Quote:
Originally Posted by Flynn View Post
But where is that default?
ctx files.

Quote:
Originally Posted by Stinkyfax View Post
Are you sure they are cvars? Couldn't find such.
Yes. Use sm_cvar to set them.
bl4nk is offline
Stinkyfax
BANNED
Join Date: Aug 2007
Old 09-15-2009 , 11:48   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #8

bl4nk You've got the point
I can freely set the hp to 500 and it will degenerate.
As I said, all my methods complitely failed, does smbody know any new ideas?
By the way All the plugins I found which manipulate max health are not working as well. I guess it is new TF2 update since I honestly disrespect the way TF2 support modifications. I feel like they don't care about others who try to make their game more popular.
Stinkyfax is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 09-15-2009 , 12:37   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #9

Theres a plugin around that keeps health from degenerating. It just uses repeating timers and keeps setting it back. Not sure how resource friendly it was but, it did work.
retsam is offline
Stinkyfax
BANNED
Join Date: Aug 2007
Old 09-16-2009 , 06:15   Re: Set Player's max HP on spawn (TF2)
Reply With Quote #10

Page 5 coudlnt' be loaded as long as I haven't created second post at page 5
Stinkyfax is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:25.


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