ScaledFallDamage
Scales fall damage with carried weight. Lightweight and customisable.
模組介紹 作者原文
ScaledFallDamage
Don't you just HATE watching that one friend who plays much better than you make it back to the ship at 11:30 PM carrying 4 gold bars? I bet they feel all high and mighty, too. Look at that smug face. Fret not, for with this mod, you can watch them accidentally turn themselves into crewmate goo from a 2 meter drop, laughing maniacally as their ragdoll body flaps around the map lifelessly, letting YOU deliver the loot they were carrying. That'll teach 'em.
Compiled for v69.
Features
- Fall damage will now scale with carried weight.
- Fall damage will start earlier, also scaled with carried weight.
- Lightweight.
- Configurable.
Configuration
The mod can be configured by editing windblownleaves.scaledfalldamage.cfg in the /BepInEx/config/ folder.
[FallDamage]
- ModifySafeFallingHeight - Whether or not more weight should also make fall damage start at smaller distances. If false, damage is still increased, but safe falls will remain safe. (Default: true)
- TuningParameter - A constant multiplier in the formula. This is NOT a direct damage multiplier, but higher values correspond to higher (and earlier) fall damage. (Default: 0.4)
Implementation
Unlike some other implementations, this mod does not hook into Update() - code is only run once each time a player lands. This is a lot more performant.
The formula used is:
weightFactor = 1.0f + tuningParameter (carryWeight - 1),
where weightFactor is then multiplied with the internally used fallValue. In simplified terms, the game then checks this value and applies the following damage values:
fallValue > 48.5: 100 damage (death)\
fallValue > 45: 80 damage\
fallValue > 40: 50 damage\
fallValue > 38: 30 damage
\* carryWeight is a little counterintuitive in that it takes a value of 1 at 0 lbs, a value of 2 at 100 lbs and so on.
Issues
- Configuration files do not automatically sync at this time. For a consistent experience, please make sure everyone is using the same config settings. I will address this in a coming update.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: