Left 4 Dead 2

Left 4 Dead 2

First aid kits heal to 100 HP
30 Comments
Stand Alone 3 Jun @ 3:29am 
oh thanks!
Geebanger0  [author] 2 Jun @ 3:46pm 
Medkits heal you for 80% of your hp. By default, your max health is set to 100. When you try to heal, the game calculates how much health to give you by working out 80% of “100 - your current health”. If you already have 97 health, it tries to get 80% of 3, which gets rounded down to 2, putting you at 99 health. You can’t reach 100, because 80% of 1 is 0.8, which gets rounded to 0.

This script just tells the game that Medkits are allowed to heal you to 101 HP. So at 97hp, the game thinks you’re missing 4 health, and heals you for 80% of 4, which is 3 after rounding, giving you 100hp.
Stand Alone 1 Jun @ 11:42pm 
does this make them heal you to 100 hp or does it fix that annoying issue of when you heal at like 97 hp it only goes all the way to 99?
T-drift 28 Nov, 2024 @ 10:03am 
can you mabe fix it some times ? btw when someone heals it crashed my game
Geebanger0  [author] 1 Aug, 2024 @ 7:23pm 
Ok here’s what you could try

Unsubscribe from the mod

Delete it from your addons folder

Resubscribe, and dont sub to any new mods

See if that works
Geebanger0  [author] 1 Aug, 2024 @ 7:22pm 
It wouldn’t be listed as a conflict since it’s not replacing any files, just adding a new one. The only way it wouldn’t work is if another mod changed the same cvar, but if this is the one you subscribed to more recently then it should override it
Ajiliffe 1 Aug, 2024 @ 10:23am 
it only has 1 line of code how could it not work... and it doesnt conflict with anything (as the game says it, its not red, so no conflicts)
Ajiliffe 1 Aug, 2024 @ 10:21am 
nope doesnt work either with or without cheats i remember it worked in survival but only once for whatever reason
Geebanger0  [author] 31 Jul, 2024 @ 5:25am 
try that, see if it works
Ajiliffe 31 Jul, 2024 @ 5:09am 
no
Geebanger0  [author] 31 Jul, 2024 @ 4:48am 
have you got sv_cheats on
Ajiliffe 31 Jul, 2024 @ 3:24am 
i dont understand what is it could possibly be conflicting with that makes it not work, i dont have any weapon scripts...
Joellis 20 Jul, 2024 @ 5:23pm 
YES! Thank you for making this possible. :steamthumbsup:
Specters Scream 16 Jul, 2024 @ 4:36pm 
epik mod
Geebanger0  [author] 14 Jul, 2024 @ 12:26pm 
Thanks
14 Jul, 2024 @ 11:32am 
Your scripts are good
Geebanger0  [author] 13 Jul, 2024 @ 10:00pm 
much obliged
Kaiser Adradum 13 Jul, 2024 @ 9:19pm 
you make the best scripts bro
UnamedWitch 13 Jul, 2024 @ 9:07pm 
wow
Pwnage Peanut 13 Jul, 2024 @ 8:56pm 
Hmm

I think you need sv_cheats 1 for it to work
Skully Graves 13 Jul, 2024 @ 8:55pm 
PErfect.
Kupi 13 Jul, 2024 @ 8:52pm 
After more than 10+ years, finally, my brain will be pleased.
Shedletsky 13 Jul, 2024 @ 8:46pm 
yippee
blue master 13 Jul, 2024 @ 8:44pm 
HEHEHEHEEE
Mr. Reias 13 Jul, 2024 @ 8:44pm 
Powerful Pyro, I guess its for "Balance" and all that crap... yet, It's for single player modes so what if ye want the first crap kit to heal up to 100, like, it's never gonna work online or versus.
Geebanger0  [author] 13 Jul, 2024 @ 8:42pm 
@PowerfulPyro the first aid kit is set by default to heal you for 80% of your missing health, to a maximum of 100. If you're on 99 health, you're only missing 1, and 80% of 1 is less than 1 so you can't be healed (thats whats happening as far as im aware).
THE PENGUIN 13 Jul, 2024 @ 8:06pm 
n ice
Pwnage Peanut 13 Jul, 2024 @ 8:04pm 
Mind = Blown
PowerfulPyro 13 Jul, 2024 @ 8:03pm 
good mod
PowerfulPyro 13 Jul, 2024 @ 8:03pm 
wonder why the first aid kit doesn't do this in the first place