Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
Fatigue System (Vscript)
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Game Modes: Single Player, Co-op
File Size
Posted
Updated
172.458 KB
May 15 @ 7:27pm
May 16 @ 6:22pm
4 Change Notes ( view )

Subscribe to download
Fatigue System (Vscript)

In 1 collection by kurochama
Useful "Side-Dish" Mods (Especially for Bots)
41 items
Description
"What if you can get tired & trip yourself when you're tired, or even faint when you're too tired?"


This mod was made simply just because I saw some comments about Bill's tripping himself due to old age. As it looked fun, so I decided to make it :D .


So, this mod applies "Fatigue System" on each survivor based on each character. Each character has different "Fatigue Point" that will be decreased when doing certain actions continuously without taking a rest, like jumping, shoving, shooting, & moving. & when the "Fatigue Point" hits 0, something bad will happen. The "Fatigue Point" can be restored gradually by standing still without doing anything. This will be explained later on the mechanisms below.


List of features available on "fatigue system.txt" cfg file:
  1. Fatigue User: On which type of survivor the fatigue system is applied (bots/ players/ all).

  2. Fatigue Mode: Which fatigue mode is activated (jammed/ disabled attack/ stumble/ self damage).

  3. Fatigue Lv Survivorname: I wrote this way as each feature represents each survivor. This controls the max "Fatigue Point" a survivor can have.


Mechanisms of "Fatigue System":
  • Each survivor has their own "Fatigue Point". The max point can be changed via cfg file.

  • "Fatigue Point" will be decreased by 2 every 0.5 second anytime survivors do some actions continuously without rest.

  • "Fatigue Point" will be restored by 1 every 0.2 second when survivors stand still without doing anything.

  • When crouching, "Fatigue Point" is restored by 1 per 0.05 second instead of per 0.2 second (4x faster).

  • Here are some tables about the details of action, weapons & "Fatigue Point" reduction:
    Survivor
    Default Fatigue Point
    Nick
    120
    Coach
    60
    Ellis
    150
    Rochelle
    100
    Bill
    40
    Louis
    100
    Francis
    120
    Zoey
    150

    Weapons
    Fatigue Point Reduction
    M60
    3 points per shot
    Shotguns
    2 points per shot
    Chainsaw
    1 point per chainsaw tick
    Others
    1 point per shot

    Actions
    Fatigue Point Reduction
    Jump
    8 points per jump
    Shove
    5 points per 0.5 second
    Movements
    (Forward, Backward, Left, Right)
    2 points per 0.5 second

    Chat Commands
    Effects
    check fatigue
    All survivors will tell their "Fatigue Points"

  • The comparisons between each mode on "Fatigue Mode" when "Fatigue Point" hits 0 or minus:
    Fatigue Mode
    Effects
    Fatigue Mode = 0
    - Can't attack
    - Can attack again by shoving when "Fatigue Point" is above 0
    Fatigue Mode = 1
    Stumbles when trying to take actions
    Fatigue Mode = 2
    Moves slower when trying to take actions
    Fatigue Mode = 3
    Takes 1 damage per 0.5 second when trying to take action

  • When "Fatigue Mode" is set to 1, the stumbled survivor will make some annoyed reactions via voicelines.

  • Fatigue is restored to max when using pills or adrenaline.

  • Special for Louis: If he uses pills, he'll restore the fatigue with the doubled "Fatigue Point" (example: if the max point is 100, he gets 200), & adrenaline speed boost bonus for 2 minutes :D .


Q: "Can I make certain survivors have unlimited fatigue?"
A: "Try to set the 'Fatigue Lv' to 9999999 or higher. I don't limit the max value so you can freely set the value as you like."
Q: "What if I set it to 0?"
A: "Basically that character will become a very old & fragile man/ woman that even one shot or movement can make him/ her stop attacking, stumble or lose health. You can try that if you hate certain survivor characters hehehe..."


So with this mod, you can make Bill trip when he's too tired to walk :D .


NOTES:
  • The "Fatigue Point" can become minus if you keep trying to move or attack. So it's better to get some rest by standing still or crouching if the side effect of the fatigue starts to appear. Crouching will be the best way, as the fatigue restoration will be 4x faster than standing still.
  • Mode 2 of "Fatigue Mode", "Movement Slowdown" may cause modifications if "Weapon Weight Script" mod is used, as this mode uses netprops to modify friction to decrease survivor's movement speed when fatigue point reaches 0 or minus.

19 Comments
kurochama  [author] 5 minutes ago 
@Kouga , you can check this for the reinforced door mod: https://steamcommunity.com/sharedfiles/filedetails/?id=3483579011
kurochama  [author] 2 hours ago 
@Kouga , setting the door to be unbreakable should be possible, while for changing the health for the door, although it's also possible, I'm still not sure if the door will still break in 3 hits by special infected or not. As zombies usually can't open a door, probably locking the door is not really necessary, unless if it's a special door that opens when pushed/ touched. I'm not sure if I will also apply lock feature on the door or not, but if this mod is made later, probably I'll also change the door color temporarily to differentiate between breakable & unbreakable door to make it easier to notice.
Kouga 10 hours ago 
@kurochama yeah, i do mean that. what about giving the locked door custom configurable health? this is honestly an idea lifted from this plugin i saw on alliedmods [forums.alliedmods.net] but i really just want it as a workshop addon. i have issues getting plugins to work consistently.
AL: the useless man 11 hours ago 
Thank you so, so much kurochama! I really hope this isn't a bother for you.
kurochama  [author] 12 hours ago 
@AL: the useless man , I'll try to take a look at some voicelines. I think it should be possible to add breathing sounds when fatigue point is below 10 or even hits 0.

@Kouga , did you mean locking a normal door? Normal doors are usually breakable when zombies hit them, so locking them probably won't be useful as they'll break after several hits by zombies.
Kouga 16 hours ago 
@kurochama gotcha, no worries. how about the "lock doors" one as a standalone mod then? 🧐
AL: the useless man 17 hours ago 
so I saw that in old quack con footage for left 4 dead that the survivors would Breathe and Sigh after running around. I think the breathing sounds are still in the game files somewhere. It would be cool if it's not to bothersome to add that feature somehow to this mod or a seperate one. this isn't a request it's just a stupid idea i thought of.
kurochama  [author] 23 hours ago 
@Kouga , if it's to build some barricades/ blockades like that in "Let's Build" custom campaigns, probably I can't, for now, as I'm still not familiar with the mechanisms to trigger loading bar when trying to build something. I can spawn objects instantly, but that's probably not what people would want to see about building barricades as they probably expect loading bar to create instead of instantly spawning the barricades.
Kouga May 17 @ 1:19am 
great job @kurochama! 👏 do you think you can make a "lock doors" and "barricade doors and windows and walls" mod? for the first one i was thinking you could walk up to a door and press WALK + USE and there would be a chat notification saying the door is locked/unlocked. for the second you could port over the barricade mechanic from Holdout Mutation, just without all of the extra cost system in said mutation.

Actually I wonder if both features could work together as one mod, what do you think? 🤔
kurochama  [author] May 16 @ 7:39pm 
@Unsants , you're welcome. It's thanks to your idea too, as actually the idea about reducing movement speed never came to my mind until you mentioned it :steamhappy: :steamthumbsup: