KF Can't heal if over 100hp?

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

PissJar

FNG / Fresh Meat
Apr 6, 2013
21
1
0
Hello, i'm currently testing something with a mutator but it allows you to have over 100hp. you can get up to 200
The problem is: I can't heal myself if i have over 100health
Any way to fix this? Feel free to help me ^^
 

farrapito

FNG / Fresh Meat
Jan 14, 2013
40
0
0
[Spain]
Hey , i tried something like this too some months ago and yup , you Can but the Syringe as it is only will heal 100 Hp , you need create 1 Extension with a new Code.

Hope this helps :)
 

Skell

Active member
Mar 21, 2013
1,245
2
38
On the Internet.
He's probably going to ask for specific code.

I already pointed how this is the function in KFPawn:
Code:
GiveHealth(int HealAmount, int HealMax)
and this is the code in the syringe's alt fire:
Code:
GiveHealth(HealSum, 100)
 

poosh

Grizzled Veteran
Jan 6, 2011
3,403
327
83
There are several places in KFMod code, where HealthMax is hard-coded to 100.
 

PissJar

FNG / Fresh Meat
Apr 6, 2013
21
1
0
Thanks for the quick responses guys, but keep in mind i'm a newb and i'm going to put this on my RPG once it's working :^)