Raised This Month: $32 Target: $400
 8% 

[TF2] Increase Max Health of Player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 03-04-2013 , 10:59   [TF2] Increase Max Health of Player?
Reply With Quote #1

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
__________________
...

Last edited by Oshizu; 03-04-2013 at 11:02.
Oshizu is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-04-2013 , 11:06   Re: [TF2] Increase Max Health of Player?
Reply With Quote #2

TF2Items or edit the .ctx game files in the scripts folder.
ReFlexPoison is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-04-2013 , 11:38   Re: [TF2] Increase Max Health of Player?
Reply With Quote #3

Apply attributes to weapons that increases their health?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 03-04-2013 , 14:15   Re: [TF2] Increase Max Health of Player?
Reply With Quote #4

Does the m_iMaxHealth property not work?
__________________
11530 is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-04-2013 , 15:43   Re: [TF2] Increase Max Health of Player?
Reply With Quote #5

Quote:
Originally Posted by 11530 View Post
Does the m_iMaxHealth property not work?
Nope
ReFlexPoison is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-04-2013 , 16:11   [TF2] Increase Max Health of Player?
Reply With Quote #6

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.
__________________
Dr. McKay is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-04-2013 , 16:55   Re: [TF2] Increase Max Health of Player?
Reply With Quote #7

Quote:
Originally Posted by Dr. McKay View Post
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.
ReFlexPoison is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-04-2013 , 16:57   [TF2] Increase Max Health of Player?
Reply With Quote #8

Quote:
Originally Posted by ReFlexPoison View Post
It is reset the next frame after it is called.
You could repeatedly call it OnGameFrame.
__________________
Dr. McKay is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-04-2013 , 17:58   Re: [TF2] Increase Max Health of Player?
Reply With Quote #9

Quote:
Originally Posted by Dr. McKay View Post
You could repeatedly call it OnGameFrame.
I believe I tried that, causes a glitchy hud.
ReFlexPoison is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-04-2013 , 19:39   Re: [TF2] Increase Max Health of Player?
Reply With Quote #10

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.
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 19:06.


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