Left 4 Dead 2

Left 4 Dead 2

307 ratings
Health Restore after Ledge Hang
   
Award
Favorite
Favorited
Unfavorite
Survivors: Survivors
Game Content: Scripts, Miscellaneous
File Size
Posted
Updated
143.608 KB
21 Aug, 2024 @ 9:39am
25 Sep, 2024 @ 2:39pm
3 Change Notes ( view )

Subscribe to download
Health Restore after Ledge Hang

In 1 collection by Withgreen1
Realistic Global Difficulty Enhancements
8 items
Description
-- English --

I think I'm known for making hardcore and difficulty scripts, mechanics and mutations, along with some furry mods here and there hehe
But this time, I came to fix some good-old Left 4 Dead 2 bug, if you can call it like that.

I'm talking about LEDGES, but probably you already saw it on the title... Those beautifil things who sometimes save our lives when we are about to hit the ground from a deadly height, leading to a embarrasing defeat by the ground itself. But being hanging from a ledge isn't always good, right?


Let me explain:

I've seen some people who didn't even noticed that something wrong happen when you hang from a ledge for too long. In that case, I'll tell you real quick what is it.

When you hang from a ledge, you are tecnically incapacitated, BUT, at the same time you are still "not incapacitated". This can be seen by the simple fact you don't get revived with temporally health or lose any revive counts, instead you get revived with normal health. But... does the game gives you all your health back? Basically no.
You see, the health you get from hanging it's actually a secondary health which it's attached to your real health. Meaning that every little change done to your health while hanging from a ledge will be save into your normal health, scaling it down by the same percentage.
So, for example, let's say you hanged from a ledge having 80 health, the game will create a secondary health for when you are on the ledge. But let's say your teammates took so long or you received a ton of damage while on the ledge too, leaving you with 150 health.
150 equals to 50% out of 300, which means... when you get rescued from ledge, the game will scale down those 80 health you had by 50% too, leaving you with just 40.
This makes sense if you receive damage, or you just think your arms get tired and take physical damage.
But sometimes, can be awkward just being on a ledge for too long without getting hit and losing health anyways because of that.

So here's my approach to fix this, but it has a cost... a realistic one xD


How does this work?

When being saved from a ledge, now your health will go back to 300 (100%) to avoid weird health scaling.
This can be outsmarted by receiving damage while being saved, so I've made a system to avoid that. The savior will get staggered if the person hanging receive damage.
I know this could be inconvenient in narrow bridges and in dangerous heights but I think it fits the realistic fact that you are on a vulnerable stance while reviving an ally from a dangerous situation.
And lastly, if your teammate stops helping you up, your health will drop back to where it where before being helped.

But I want you to tell me if this is okay with ya. Should I make another version of this script without this system? Tell me in the comments :)


Compatibility:
➤ Works on/with:
ˑ ➥ Singleplayer or Solo.
ˑ ➥ Multiplayer but only on your own hosted local servers.
➤ Won't/May not work if:
ˑ ➥ You don't let your game finish loading your workshop add-ons.
ˑ ➥ You have other scripts which modifies health in weird matters while ledge hanging (Test yourself).
ˑ ➥ There are 2 survivors with the same model hanging from ledges at the same time.
ˑ ➥ You have another script with the same file names.



Credits:
➤ Withgreen1
ˑ ➥ Idea and concept.
ˑ ➥ Script creation and development.
ˑ ➥ Implementation.
Popular Discussions View All (1)
0
16 Oct, 2024 @ 8:48pm
trytry
Zadiswa
62 Comments
Withgreen1  [author] 30 Jun @ 12:24am 
@Kuru Gaming
That is a common issue my friends often experience themselves, it has to do with some survivor models or combined scripts.
Alya-san 30 Jun @ 12:22am 
For some reason when a L4D1 survivor gets down (not hanging, getting downed/incapped by infected or friendly fire) and they revive him, my game sometimes crashes with this for no reason, even in vanilla L4D2.
Withgreen1  [author] 30 May @ 12:48am 
@Чебупель Макарон
I think the same, that's why I said it on the description. It's just a thing with how the game scales the health on a weird way.
Рома Фактс 29 May @ 9:20pm 
i dont think its a bug, vanilla thing was about being more careful and not slip over, but preety good mod tho:steamthumbsup:
Withgreen1  [author] 17 Apr @ 7:31pm 
@Jebediah
I might do it some day :3
I consider that the second link it's actually you idea cuz even if your health does not drop to critical values in the first try, you are going to be on critical state whatever you do if you go down again hehe
Withgreen1  [author] 17 Apr @ 7:19pm 
@Machoboy197
Exactly :3
And yes, you do regain health when you come out of the water hehe
Machoboy197 17 Apr @ 3:57pm 
This is like SM64 where you regain your health after you come out of the water.
Jebediah 5 Apr @ 10:17pm 
Have a good day/night!
Jebediah 5 Apr @ 10:17pm 
Omg that second link is pretty much exactly what I was looking for. Thanks so much! Since its comparable to the idea i had, would you consider altering your existing mod to match my ideas in the future? I have no idea how hard it is to mod a game this old so never mind me lol. Not trynna tell you what to do, just curious if you would consider it
Jebediah 5 Apr @ 10:12pm 
Oh hell yah! thank you so much!