SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

Fall Damage Options

RBy Rangelost

Adds options to customize fall damage.

Description

<p>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.</p> <div style="border-style: outset; padding: 8px;"><strong>Note:</strong> The author is on indefinite break. If you would like to continue this mod, feel free to use the included source code.</div> <p>Upon running the mod, a <code><strong>falldamageoptions</strong></code><strong><code>.json</code></strong> config file will be created or updated in the game's ModConfig directory. The available options are:</p> <ul> <li><strong><code>enabled</code></strong>: <code>true</code> to enable player fall damage, <code>false</code> to disable player fall damage;</li> <li><strong><code>max_damage</code></strong>: maximum damage caused by a single fall<sup>&dagger;</sup>. Set to <code>0</code> or less to disable this option;</li> <li><strong><code>min_health</code></strong>: minimum health down to which fall damage can bring a player. This makes falling non-lethal. Set to <code>0</code> or less to disable this option;</li> <li><strong><code>speed_based</code></strong>: <code>true</code> to make fall damage speed-based instead of distance-based (<code>a(x - b)&sup2;</code>), <code>false</code> to use the base game algorithm;</li> <li><strong><code>sb_threshold</code></strong>: if <code>speed_based</code> is <code>true</code>, speed threshold (<code>b</code>) at which players begin to take fall damage;</li> <li><strong><code>sb_coefficient</code></strong>: if <code>speed_based</code> is <code>true</code>, coefficient (<code>a</code>) with which fall damage is multiplied;</li> <li><strong><code>client_authoritative</code></strong>: <code>true</code> to make fall damage client-authoritative, otherwise <code>false</code>. 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.</li> </ul> <p>&dagger; 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.</p> <p><strong>Note:</strong> 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.</p>

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.