BetterFallDamage
Makes fall damage make more sense, as well as highly customizable.
| Last updated | 2 days ago |
| Total downloads | 28088 |
| Total rating | 8 |
| Categories | Mods BepInEx Client-side Server-side Tweaks & Quality Of Life |
| Dependency string | LokisHorseChild-BetterFallDamage-1.2.0 |
| Dependants | 36 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2304AinaVT-LethalConfig
Provides an in-game config menu for players to edit their configs, and an API for other mods to use and customize their entries.
Preferred version: 1.4.6README
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