Health Restore after Ledge Hang

If you liked this item, please rate it up on Steam Workshop page.

Author: Withgreen1

Last revision: 25 Sep, 2024 at 22:39 UTC

File size: 143.61 KB

On Steam Workshop

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.