Back to NxLabs

NxLabs / Vintage Story

Fall Damage Options

RBy Rangelost

Adds options to customize fall damage.

Description

This is a simple mod with the objective of adding options to mitigate unfair deaths caused by the buggy mess that is fall damage. This mod only affects players.

Note: The author is on indefinite break. If you would like to continue this mod, feel free to use the included source code.

Upon running the mod, a falldamageoptions.json config file will be created or updated in the game's ModConfig directory. The available options are:

  • enabled: true to enable player fall damage, false to disable player fall damage;
  • max_damage: maximum damage caused by a single fall†. Set to 0 or less to disable this option;
  • min_health: minimum health down to which fall damage can bring a player. This makes falling non-lethal. Set to 0 or less to disable this option;
  • speed_based: true to make fall damage speed-based instead of distance-based (a(x - b)²), false to use the base game algorithm;
  • sb_threshold: if speed_based is true, speed threshold (b) at which players begin to take fall damage;
  • sb_coefficient: if speed_based is true, coefficient (a) with which fall damage is multiplied;
  • client_authoritative: true to make fall damage client-authoritative, otherwise false. Only enable this if you trust the clients not to cheat. Be aware that enabling this bypasses the bug where touching a wall prevents fall damage.

† Because of the base game's client-server discrepancy and poor synchronization, it is possible to take the damage from a single fall multiple times. This is a game issue, not a mod issue.

Note: This mod does not fix any of the base game's bugs related to fall damage. It is merely an attempt at lessening the severity of the problem until such time as it is properly addressed.

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.