Left 4 Dead 2

Left 4 Dead 2

98 ratings
Customizable Blood System
   
Award
Favorite
Favorited
Unfavorite
Survivors: Survivors
Game Content: Scripts, Miscellaneous
Items: Medkit, Other
File Size
Posted
233.983 KB
5 Nov, 2024 @ 9:35am
1 Change Note ( view )

Subscribe to download
Customizable Blood System

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

Debug: ON
This will be active while the finishing touches are being done and also to help find potential bugs until then.
(Also, sorry not sorry for long description :3)

Yeet!
Toss another realistic mechanic to the Workshop

Alright so, this is why I was away from publishing new addons for a while... and also cuz I got a little burnt out from modding, so I needed a break hehe.
But as always, here I'm back with another interesting mechanic :3


Well, to start, the title it's pretty self-explanatory but I'll go into details as I always do.


Mod concept:
My thoughts for this mod were to add a new mechanic where survivors could loss blood, weaken if they blood levels are too low, and bleed out from untreated wounds without necessary being incapacitated. Cuz you know, you can be beaten multiple times and be so close to death, bleed for hours being incapacitated, get destroyed by a horde, a Charger or even a Hunter which has some VERY dangerous claws which can torn you apart in no time.
But the fact that you can easily forget about what just happened and continue with your journey by just using a first aid kit, it's a little unrealistic xD
But, first aid kits have no magic so your body will just give up from too many injuries over time if you keep pushing it's limit.

So, here I bring this script which it's job is to handle and manage all survivor blood levels and injuries throughout the entire campaign using several files and Cvars/Console commands to acomplish this.

At this point the mod description may seem like a little realistically overkill in terms of gameplay-balance, but it's not, don't worry. It is less noticeable in-game hehe
As long as you don't get incapacitated and beaten up constantly (?


Mod function:
This mod uses survivor_incap_health and survivor_incap_decay_rate Cvars/Console commands as a base. So keep that in mind if it doesn't work well on your game.

How are these variables used in the script?
Well, the script takes survivor_incap_health Cvar value (Which is 300 by default) and uses it as the starter and maximum blood amount a survivor could have. Then it uses survivor_incap_decay_rate Cvar value (Which in this case it's 3 by default) as the amount of blood a survivor loss per second by bleeding on the ground.
In other words, the script will behave accordingly with whatever value you are using on these 2 variables.

How is gameplay affected?
Survivors start a campaign as always, but this time having 2 new health related indicators, blood and wounds.
The Blood indicator (which was described above) it's strongly related with the Incapacitation state, this is because it's the easiest way of lossing blood and also because it affects the maximum health you get when you get incapacitated.
And the Wound indicator, which has no maximum and raises whenever you receive damage (As long as your true health is very low). It also raises by getting damaged while being incapacitated.

Now, let's go in deep with these indicators a bit and how they affect you.

Blood:
As you read above, survivors loss blood as they bleed while incapacitated, but also by dying. You can also loss blood by untreated wounds. If you have been incapacitated at least once and you haven't healed, you'll loss blood with some actions until wounds stop bleeding by themselves.
The way you regain blood is by healing, there is a small chance to restore a random amount of blood when you heal or someone heals you.
Blood affects your maximum health when you get incapacitated, so the more you get incapacitated the less you'll last. Having no blood will cause you to die right away if you get incapacitated.

Wounds:
Wounds affect your blood and health in general. As it says above too, survivors receive wounds by taking damage while in low health or being incapacitated. They also receive wounds by getting incapacitated by any means.
Wounds are also healed by a random amount (Twice than blood) with first aid kits, but instead of being a small percentage, they always heal wounds.
Untreated wounds make you loss blood the more actions you do. Being quiet while teammates protects you could be a way of losing less blood but still.
Having no blood but wounds will start to take your health slowly until wounds stop bleeding or you die.



Customization:
Since this is my first script which uses ems to be able to customize it, here I leave all the settings and what they do:
You can find the mod files and setting by going to your game files --> left4dead2/ems

On Incap - Blood loss (Default: Off): This setting lets you edit the amount of blood you loss when you get incapacitated no matter the way.
Be aware that this setting lowers your blood after your health is applied. So this don't affect your incap health right away, only on future incapacitations.

On Incap - Add wounds (Default: 20): This setting lets you edit the amount of wounds received when you get incapacitated.

On Death - Blood loss (Default: 25): This sets the amount of blood a survivor loss upon death.

On Death - Add wounds (Default: 10): Same as last setting, but sets the amount of wounds received by dying.

On Bleed - Forgiveness (Default: Off): This setting affects the amount of blood a survivor loss while being incapacitated, so the number used here will make the bleeding less by the amount specified.
Example: If survivor_incap_decay_rate is 3, and you set this setting to 1, you'll loss 2 blood per second instead of 3.
This value can't be higher than survivor_incap_decay_rate, otherwise it will set itself to the same value to avoid problems but this will cause blood not being lost by incap bleedings.


This works better if you set the max incapacitation count above 2.
I also consider this the big brother of my Realistic Status On Low Health Revive script I uploaded a while ago now. So these two where meant to work perfectly together and you can also combine them with HexToMax's Customizable HP Regen Script.
Should not collide or cause any problems with any other health related scripts due to its adaptive behaviour. But this doesn't mean it's perfect, so if you find a problem or any incompatibility tell me in the comments and I'll keep that in mind.



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 survivor Cvars used by the script set to 0 or weird values.
ˑ ➥ You have another script with the same file names.



Credits:
➤ Withgreen1
ˑ ➥ Idea and concept.
ˑ ➥ Script creation and development.
ˑ ➥ Implementation.
15 Comments
Withgreen1  [author] 16 Jan @ 5:14am 
@RoyTheBoy Thanks for that confirmation :3
RoyTheBoy 15 Jan @ 11:48pm 
i have left 4 bots 2 and the bots do heal themself so idk why you are having that issue
Withgreen1  [author] 28 Nov, 2024 @ 1:35pm 
This script does not contain any modifier for the bots so it's a bit odd to hear you are having issues with that. Tell me if anything got fixed, otherwise I could help you fix it if you want :3
Withgreen1  [author] 28 Nov, 2024 @ 1:32pm 
@TheNamelessKing Thanks for the awesome words hehe :3
I always try to put effort in my mods and give proper credits if based on other people's work :)
I could use some opinion on the video since I'm not so sure if it's a proper media to explain the mod.

And about the bots, if you are using left 4 bots there is a configuration line in the settings.txt inside ems/left4bots which you can change to make bots prevent their healing more often or not.
Now, if you played any of my mutations, they usually cointain custom behaviours for left 4 bots so they fit better into one mutation or another. This sadly is done by overriding local ems files.
You could try and delete the left4bots folder inside ems so the script can generate a new one or made a backup into another folder and override the ems for the bots yourself whenever you want to use some specific behaviours for bots.
TheNamelessKing 28 Nov, 2024 @ 11:44am 
Legendary mod dude, all your mods are awesome! However, I found an issue with the Survivor mod that affects the Left 4 Dead bots called (lib) left 4 bots. They don't seem to heal when this mod is added. I don't think this issue is fixable since both mods are quite complex sadly, ill use this mod when playing with a full group tho
Withgreen1  [author] 11 Nov, 2024 @ 10:10am 
@๖ۣۣۜ𝒮𝓂𝒾𝓁𝑒 I'm glad you like it.
Although, I'm not really sure if it's the best cuz for some reason it's the first mod I upload which has a surprisingly high negative rate, so yeah xDD
๖ۣۣۜ𝒮𝓂𝒾𝓁𝑒 10 Nov, 2024 @ 7:02pm 
the best :charm:
Withgreen1  [author] 8 Nov, 2024 @ 10:15am 
@TuMaravilla Yeeh' eheh :3
Glad to see you around once more ^^
TuMaravilla 7 Nov, 2024 @ 11:29am 
NICE
Withgreen1  [author] 6 Nov, 2024 @ 3:52pm 
@Dellio Hehe, thanks for the good words :3