You are viewing a potentially older version of this package. View all versions.
CptDristyler-ScaledFallDamageV81-1.0.6 icon

ScaledFallDamageV81

Unofficial rebuild. Scales fall damage with carried weight. v81 multiplayer config-sync NullReferenceException fixed by Cpt.Dristyler. Original by windblownleaves.

Date uploaded a month ago
Version 1.0.6
Download link CptDristyler-ScaledFallDamageV81-1.0.6.zip
Downloads 2442
Dependency string CptDristyler-ScaledFallDamageV81-1.0.6

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

ScaledFallDamage (v81 rebuild)

⚠️ Unofficial rebuild for Lethal Company v81, maintained by Cpt.Dristyler. Not affiliated with or endorsed by the original author. Install this instead of the original, not alongside it.

Fall damage scales with the weight you are carrying — heavier loadouts take damage from shorter falls. The damage check runs only on landing (not in Update), so it stays lightweight. Push Force / Range / Cost / threshold are configurable.

This rebuild (1.0.6) — by Cpt.Dristyler

  • Fixed the multiplayer config-sync crash on v81. The synced Config held BepInEx ConfigEntry<T> fields, which are not [Serializable]; BinaryFormatter threw a SerializationException, SerializeToBytes returned null, and the host's OnRequestSync then hit a NullReferenceException on every client join (config never synced + error spam). The ConfigEntry fields are now [NonSerialized]; plain value mirrors are synced instead, and gameplay reads those mirrors. Host config now syncs to all clients automatically.
  • Recompiled from a decompiled source against current LethalCompany.GameLibs.Steam (game v81). The plugin GUID windblownleaves.scaledfalldamage is unchanged — existing config files stay compatible.

Credits

  • Original mod: windblownleaves
  • v81 rebuild & multiplayer fix: Cpt.Dristyler

Dependencies

  • BepInEx 5.4.2100

CHANGELOG

Changelog

Entries below are for this unofficial v81 rebuild by Cpt.Dristyler. Original mod by windblownleaves — the upstream release history is not duplicated here.

1.0.6 — v81 rebuild by Cpt.Dristyler

  • Fixed the multiplayer config-sync crash on Lethal Company v81. The synced Config class held BepInEx ConfigEntry<T> fields, which are not [Serializable]. BinaryFormatter in SyncedInstance.SerializeToBytes threw a SerializationException, the method returned null, and the host's OnRequestSync then hit a NullReferenceException on array.Length every time a client requested the config — config never synced and the log spammed errors on each client join. The ConfigEntry fields are now [NonSerialized]; plain serializable value mirrors are synced instead, and gameplay patches read those mirrors (correct on both host and clients).
  • Recompiled from a decompiled source against current LethalCompany.GameLibs.Steam (game v81). GUID windblownleaves.scaledfalldamage unchanged — configs stay compatible.