AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [TF2] Increase Max Health of Player? (https://forums.alliedmods.net/showthread.php?t=209963)

Oshizu 03-04-2013 10:59

[TF2] Increase Max Health of Player?
 
Hello i'm looking for a working way for increasing client's max health in tf2. I've searched on forums but couldn't really find working way.


Help would be really great
Thanks

ReFlexPoison 03-04-2013 11:06

Re: [TF2] Increase Max Health of Player?
 
TF2Items or edit the .ctx game files in the scripts folder.

Powerlord 03-04-2013 11:38

Re: [TF2] Increase Max Health of Player?
 
Apply attributes to weapons that increases their health?

11530 03-04-2013 14:15

Re: [TF2] Increase Max Health of Player?
 
Does the m_iMaxHealth property not work?

ReFlexPoison 03-04-2013 15:43

Re: [TF2] Increase Max Health of Player?
 
Quote:

Originally Posted by 11530 (Post 1906410)
Does the m_iMaxHealth property not work?

Nope:cry:

Dr. McKay 03-04-2013 16:11

[TF2] Increase Max Health of Player?
 
I don't remember the exact function name, but look into TF2_SetEntityResourceData or something like that. I'm on really slow public wifi or I'd look it up myself.

ReFlexPoison 03-04-2013 16:55

Re: [TF2] Increase Max Health of Player?
 
Quote:

Originally Posted by Dr. McKay (Post 1906517)
I don't remember the exact function name, but look into TF2_SetEntityResourceData or something like that. I'm on really slow public wifi or I'd look it up myself.

It is reset the next frame after it is called.

Dr. McKay 03-04-2013 16:57

[TF2] Increase Max Health of Player?
 
Quote:

Originally Posted by ReFlexPoison (Post 1906552)
It is reset the next frame after it is called.

You could repeatedly call it OnGameFrame.

ReFlexPoison 03-04-2013 17:58

Re: [TF2] Increase Max Health of Player?
 
Quote:

Originally Posted by Dr. McKay (Post 1906554)
You could repeatedly call it OnGameFrame.

I believe I tried that, causes a glitchy hud.

Powerlord 03-04-2013 19:39

Re: [TF2] Increase Max Health of Player?
 
I know FlaminSarge has been doing some work on finding the offsets of methods that allow you to add attributes directly to players and weapons (instead of giving them entirely new weapons with TF2Items); we were talking about it on Steam the other day. Unfortunately, I don't think he's released it yet.

Attributes 26 (max health additive bonus) and 125 (max health additive penalty) are used to adjust a player's max health.


All times are GMT -4. The time now is 15:41.

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