Lethal Company
Install

Details

Last Updated
First Uploaded
Downloads
35K
Likes
8
Size
55KB
Dependency string
LokisHorseChild-BetterFallDamage-1.2.0
Dependants

Better Fall Damage

Overhauls how fall damage is calculated while improving quality of life.

Features

  • Smoother fall damage calculations
  • Includes carry-weight in fall damage calculations
  • More challenging defaults
  • Customizable to every skill level
  • Light-weight networking allowing players to receive settings from the host player

Added Settings

DisableServerSideConfig:

Stops you from receiving the settings your host player is using.
Useful if you want to essentially run the game at a higher/lower difficulty than them.

DisableFallDamage:

Prevents you from taking any fall damage.

FallTimeDamage:

How long the player needs to be falling for before fall damage starts racking up.
I wouldn't recommend setting this to 0.

FallTimeInstaKill:

How long the player needs to be falling for before they instantly die on impact.
You probably shouldn't set this to 0 either.

FallTimeDamageExponent:

Changes the rate that fall damage accumulates while falling.
Some useful defaults:

  • 1.0 - Linear build up
  • 1.7 - Natural-feeling build up (Default)
  • 0.5 - Punishing, front-heavy build up

DisableWeightScaling:

Stops weight from affecting your fall damage

WeightScalingFactor:

How much weight it takes to halve FallTimeDamage and FallTimeInstaKill
The lower this number is, the harder your games will be

The Math

The base game currently deals fall damage in tiers based on how long you have been falling:

  • 1s - 30 dmg
  • 1.05s - 50 dmg
  • 1.18s - 80 dmg
  • 1.28s - 100 dmg

Better Fall Damage calculates the damage by smoothly increasing the final damage as you fall.
If you have weight-scaling enabled, this is how I calculate the damage you take when you hit the ground:

WeightScale = (PlayerCarryWeight / WeightScalingFactor) + 1
WSFallTimeDamage = FallTimeDamage / WeightScale
WSFallTimeInstaKill = FallTimeInstaKill / WeightScale
WSTranslatedFallTimeInstaKill = WSFallTimeInstaKill - WSFallTimeDamage
WSDistanceAlongDamageRamp = (CurrentFallTime - WSFallTimeDamage) / (WSTranslatedFallTimeInstaKill)
DamageAmount = (WSDistanceAlongDamageRamp^fallTimeDamageExponent) * 100

If you do not have weight-scaling enabled, this is how I calculate the damage you take when you hit the ground:

TranslatedFallTimeInstaKill = FallTimeInstaKill - FallTimeDamage
DistanceAlongDamageRamp = (CurrentFallTime - FallTimeDamage) / (TranslatedFallTimeInstaKill)
DamageAmount = (DistanceAlongDamageRamp^FallTimeDamageExponent) * 100

If you would like to play around with the numbers to get settings you like, you can mess around with This Desmos Page

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.