Yanyan_mod-PitSave icon

PitSave

Host-side only: valuables that fall into pits bounce back up instead of vanishing, and stay indestructible for a few seconds after being saved or grabbed. Install on the host and the whole lobby benefits - other players need nothing.

Last updated 9 hours ago
Total downloads 52
Total rating 0 
Categories Valuables Quality Of Life Server-side AI Generated Mods Misc
Dependency string Yanyan_mod-PitSave-1.1.0
Dependants 0 other packages depend on this package

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

PitSave

值钱物掉进坑里会被弹回来,不再消失。只需房主安装,其他玩家什么都不用装。 Valuables that fall into pits bounce back up instead of vanishing. Host-side only — other players install nothing.


中文

功能

  • 掉坑自动弹回:值钱物掉进坑、跌破判定高度,立刻被弹起来推回安全位置,不管它是怎么掉下去的。
  • 弹回原位:朝它最后一次的正常位置弹上去,落点抬高一点避免插进地板,落地前短暂无敌。
  • 弹不出来就续推:一次弹不到安全点,就按间隔再给一次水平加向上的速度,直到它出来为止。
  • 防坑口无限弹:同一件东西短时间内连掉两次,说明原位就在坑边,直接送卡车安全点,不再来回弹。
  • 手持也护着:东西被抓住期间持续保护,松手后还有几秒。搬贵重物手抖磕一下不再直接翻车。
  • 原生特效:掉坑那一刻亮绿色烟雾/电弧,落地或被拿起就熄灭。
  • 屏幕提示:救回时右下角淡出一行提示,可关。
  • 双语界面:配置菜单中文 / English 实时切换,不用重启游戏。
  • 含怪物掉落物:怪物掉的贵重物一样处理。

配置

BepInEx/config/com.yanyan.pitsave.cfg,装了 REPOConfig 也能在游戏内 MOD 菜单改。

界面语言是第一项,改完立即生效。

键 默认 范围 说明
启用掉落救回 true — 总开关
判定掉坑高度 -25 -80 ~ -10 低于这个高度就捞
安全位置下限 -2 -20 ~ 10 只有高于这个高度才记快照
安全位置上限 60 10 ~ 150 高于这个高度不记,防空中位置被当安全点
救回抬高 1.5 0 ~ 8 米,避开插进地板
同物品冷却 2 0 ~ 10 秒,同一件东西两次救回之间的间隔
掉坑判定落差 4 1 ~ 20 米,比快照低这么多又还在往下掉才算掉坑
弹回水平速度 40 2 ~ 60 米/秒,朝安全点的水平速度,填多少就是多少
坑内续推间隔秒 0.35 0.1 ~ 2 秒,出不来就按这个间隔再推
抬升力度倍率 2 0.3 ~ 3 倍,向上速度的倍率,1 差不多刚好
掉坑时闪原生特效 true — 掉坑时亮绿色烟雾/电弧
含怪物掉落物 true — 怪物掉的贵重物也算
救回时屏幕提示 true — 右下角淡出提示
扫描间隔秒 0.15 0.05 ~ 1 别低于 0.05
调试日志 false — 排查用

注意

  • 只处理值钱物,普通道具、手雷、桶不管。
  • 保护期间物品暂时不可破坏,保护窗口结束自动还原。
  • 东西正被人抱着掉坑时会连人带物一起捞走,人留在坑里,属预期。
  • 手持保护对房主自己抓取必生效;其他玩家抓取能否触发,取决于抓取状态有没有同步到房主端。

English

Features

  • Automatic bounce-back: valuables that fall into a pit and drop below the threshold get kicked back up to safety, no matter how they fell.
  • Back to its spot: bounced up toward the last known good position, landing slightly lifted so it cannot clip into the floor, briefly invulnerable.
  • Keeps pushing until it is out: if one bounce is not enough, it gets another horizontal plus upward kick at a fixed interval until it clears the pit.
  • No pit-mouth loop: a second fall in a short window means the spot sits on the edge, so the item goes to the truck safe spot instead of bouncing forever.
  • Protected while held: protection keeps refreshing while grabbed, plus a few seconds after release. Fumbling a valuable into a wall is no longer instant loss.
  • Native effect: green smoke / arc the moment it falls, gone on landing or pickup.
  • Screen toast: a fading one-liner in the corner, can be turned off.
  • Bilingual UI: the config menu switches between 中文 and English live, no restart.
  • Enemy valuables included: dropped valuables from monsters are handled the same way.

Config

BepInEx/config/com.yanyan.pitsave.cfg, or the in-game MOD menu if REPOConfig is installed.

Interface language is the first entry and applies immediately.

Key Default Range Meaning
Enable rescue true — Master switch
Pit Y threshold -25 -80 ~ -10 Below this height the item is rescued
Safe min Y -2 -20 ~ 10 Snapshots only above this height
Safe max Y 60 10 ~ 150 Nothing above this is recorded
Rescue lift 1.5 0 ~ 8 Meters above the safe spot
Same-item cooldown 2 0 ~ 10 Seconds between two saves of one item
Fall depth 4 1 ~ 20 Meters below the snapshot while still falling
Horizontal bounce speed 40 2 ~ 60 m/s toward the safe spot, used as-is
Re-push interval 0.35 0.1 ~ 2 Seconds between pushes while stuck
Rise multiplier 2 0.3 ~ 3 Scales the upward speed; 1 is about right
Native pit effect true — Green smoke / arc while falling
Include enemy valuables true — Count drops from monsters too
Screen toast true — Fading one-liner in the corner
Scan interval 0.15 0.05 ~ 1 Seconds; do not go below 0.05
Debug log false — Verbose console output

Notes

  • Only valuables. Plain props, grenades and barrels are untouched.
  • Protected items are temporarily unbreakable; the original state is restored when the window ends.
  • If someone is carrying an item when it falls, the item is saved and the player stays in the pit — expected.
  • Held protection always works for the host's own grab; for other players it depends on whether their grab state reaches the host.