Left 4 Dead 2

Left 4 Dead 2

95 ratings
First aid kits heal to 100 HP
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Game Modes: Single Player, Co-op
Items: Medkit
File Size
Posted
2.344 KB
13 Jul, 2024 @ 5:59pm
1 Change Note ( view )

Subscribe to download
First aid kits heal to 100 HP

Description
Lets you heal to 100 HP with first aid kits instead of 99
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