BetterCorpses
Corpse economy: player corpses get a random price (-50 to 50) and can be sold to money NPCs, bet on the casino table, or fed to the slot machine for skins; plus a configurable forced respawn wait and corpse-eating revives (with eat sound & VFX).
By YuWan
| Date uploaded | 2 days ago |
| Version | 1.2.4 |
| Download link | YuWan-BetterCorpses-1.2.4.zip |
| Downloads | 507 |
| Dependency string | YuWan-BetterCorpses-1.2.4 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305README
Better Corpses — 更好的尸体
English
Overview
Better Corpses turns player corpses into an economy. When someone dies, their corpse rolls a random price (−50 to 50 by default; the range is configurable). Whoever picks up a corpse gets to use it:
- Sell to money NPCs — drop the corpse at the feet of a money-collecting NPC and it is eaten and paid out by its price (a negative price means you pay).
- Casino table — drop the corpse on the roulette table and bet on a color: black/red pays ×2, green ×35 (vanilla payout rules).
- Slot machine — feed the corpse to the slot machine for a chance to unlock a skin (the feeder unlocks it).
It also adds a forced respawn wait: after death, both revive paths (give-up respawn and being slapped back to life) stay locked for a configurable duration (default 5 seconds), with an on-screen countdown. The give-up hold duration is also configurable (default 1 second = vanilla).
- Server-authoritative: prices, sales, bets and rolls are resolved on the server; all clients see the same result.
- Every feature has its own toggle; with the master switch off, everything behaves exactly like vanilla.
- Pickup rules stay vanilla: whoever grabs a corpse owns its economy actions, and the money goes to them.
Installation
- Install BepInEx 5 (BepInExPack for How to Fish) into the game directory.
- Extract the zip and merge the
BepInExfolder into the game folder (e.g.F:\steam\steamapps\common\How to Fish\How to Fish\). - Launch the game through Steam. The mod loads automatically; check
BepInEx\LogOutput.logforBetterCorpses.
Plugin location: BepInEx\plugins\BetterCorpses\BetterCorpses.dll
Configuration
The config file BepInEx\config\top.yw.bettercorpses.cfg is generated on first launch. Edit it while the game is closed (or in-game via Mod Menu if installed).
| Section | Key | Default | Description |
|---|---|---|---|
| General | Master |
true |
Master switch (off = fully vanilla) |
| General | RespawnTime |
true |
Forced respawn wait + give-up hold duration |
| General | CorpseDrop |
true |
Corpse economy master (price + sell/gamble/lottery) |
| General | Sell |
true |
Corpses can be sold to money NPCs |
| General | Gamble |
true |
Corpses can be placed on the casino table |
| General | Lottery |
true |
Corpses can be fed to the slot machine |
| Respawn | ForcedWaitSeconds |
5 |
Forced wait after death, during which both revive paths are locked (0–600) |
| Respawn | GiveUpHoldSeconds |
1 |
Hold-left-click give-up duration (0–60; 1 = vanilla) |
| Economy | PriceMin |
-50 |
Random corpse price minimum (negative = you pay when selling) |
| Economy | PriceMax |
50 |
Random corpse price maximum |
Compatibility & notes
- Works in singleplayer (host) and multiplayer; the host's settings apply.
- Selling a corpse with a negative price reduces the shared money pool (vanilla
SellItembehavior, not clamped). - Boss-fight give-up restrictions are untouched; the forced wait stacks on top of vanilla rules.
- Requires BepInEx 5.4 (BepInExPack for How to Fish). No other dependencies.
中文
模组简介
更好的尸体(Better Corpses) 让玩家尸体变成一门经济:有人死亡时,尸体随机生成一个价格(默认 −50~50,范围可配置)。谁捡起尸体,谁就能处置它:
- 卖给收钱 NPC —— 把尸体丢到收钱 NPC 脚边,NPC 会吃下并按照尸体价格结算(负价格 = 你倒贴钱)。
- 上赌桌 —— 把尸体丢进赌桌,猜颜色:黑/红猜对 ×2、绿色 ×35(原版赔率规则)。
- 喂老虎机 —— 把尸体投进老虎机,有机会抽到皮肤(由投喂者解锁)。
另外新增复活强制等待:死亡后,放弃重生和被拍活两条路都会被锁定一段时间(默认 5 秒,可配置),屏幕上有倒计时;放弃重生的长按时长也可配置(默认 1 秒 = 原版)。
- 服务器权威:价格、卖出、下注、抽奖都在服务器结算,各客户端看到的结果一致。
- 每个功能都有独立开关;关闭总开关后与原版完全一致。
- 拾取规则保持原版:谁捡到尸体谁就有权经济操作,钱归操作者。
安装方法
- 先将 BepInEx 5(How to Fish 的 BepInExPack)安装到游戏目录。
- 解压本 zip,将
BepInEx文件夹合并进游戏目录(如F:\steam\steamapps\common\How to Fish\How to Fish\)。 - 通过 Steam 启动游戏。模组自动加载,可在
BepInEx\LogOutput.log中查看BetterCorpses。
插件位置:BepInEx\plugins\BetterCorpses\BetterCorpses.dll
配置说明
首次启动生成配置文件 BepInEx\config\top.yw.bettercorpses.cfg,关闭游戏后编辑(安装 Mod Menu 可在游戏内修改)。
| 分区 | 键 | 默认 | 说明 |
|---|---|---|---|
| General | Master |
true |
总开关(关闭 = 完全原版) |
| General | RespawnTime |
true |
复活时间:强制等待 + 放弃长按时长 |
| General | CorpseDrop |
true |
尸体经济总闸(价格 + 卖出/赌博/抽奖) |
| General | Sell |
true |
尸体可卖给收钱 NPC |
| General | Gamble |
true |
尸体可上赌桌 |
| General | Lottery |
true |
尸体可喂老虎机抽皮肤 |
| Respawn | ForcedWaitSeconds |
5 |
死亡后强制等待秒数(期间放弃/拍活都锁定),范围 0-600 |
| Respawn | GiveUpHoldSeconds |
1 |
按住左键放弃重生的时长(秒),范围 0-60,默认 1=原版 |
| Economy | PriceMin |
-50 |
尸体随机价格下限(负数 = 卖出倒贴钱) |
| Economy | PriceMax |
50 |
尸体随机价格上限 |
兼容性与说明
- 单人(Host)与联机均可用;以房主的设置为准。
- 负价格尸体卖出会减少全服共享的钱池(原版
SellItem行为,不做钳制)。 - Boss 战原版禁止放弃的规则保持不动;强制等待与原版规则叠加。
- 依赖 BepInEx 5.4(How to Fish 的 BepInExPack),无其他依赖。
CHANGELOG
Changelog — BetterCorpses
v1.2.4
- 修复:死亡时刻改挂到玩家身上的 CannibalFx SyncVar(尸体上的组件 SyncVar 被证实不同步,客户端一直读到 -1,导致拍尸 gate 误判、倒计时不显示);尸体通道保留兜底;死亡记录加调试日志。
- Fix: the death moment is now synced via the player-anchored CannibalFx SyncVar (corpse-anchored SyncVars were confirmed not to sync — clients always saw -1, breaking the slap gate and the countdown); the corpse channel remains as fallback; added debug logging.
v1.2.3
- 调整:拍尸人的"队友复活倒计时 Xs"提示移到屏幕中央上方(原在下方居中易被忽略/遮挡);死者本人倒计时保持原位。
- 新增排障日志:手持尸体但未判定为等待时,每具尸体记录一次原因(
_deathTime是否同步)。 - Tweak: the reviver's "Teammate respawn in Xs" hint now shows at the top-center of the screen (was bottom-center and easy to miss); the dead player's own countdown stays put.
- New: one-shot diagnostic log when a held corpse is not flagged as waiting (shows whether
_deathTimesynced).
v1.2.2
- 修复:拍尸强制等待 gate 的跨机器时间基准错误 —— 改用 FishNet 网络同步时间(
TimeManager.TicksToTime),消除客户端入房延迟导致的分钟级偏差;修复"第一次拍活卡住、再按才生效"。 - 修复:
CorpseEconomy的_deathTime/_price写入带暂存兜底,Spawn 网络初始化未完成时不再静默丢失。 - 新增:拍尸人手持等待期尸体时显示"队友复活倒计时 Xs"提示。
- Fix: the slap-revive forced-wait gate used per-machine
Time.timeacross the network (bias = join delay, up to minutes) — now uses FishNet network-synced time, fixing "first revive stuck, second press works". - Fix:
_deathTime/_pricewrites are stashed and flushed once network init completes instead of silently dropping. - New: revivers now see a "Teammate respawn in Xs" countdown while holding a corpse still in the forced wait.
v1.2.1
- 调整:吃尸体后复活者的回血量从 50 改为 12(与被复活者减半后的血量一致)。
- Tweak: the reviver's heal from eating the corpse changed from 50 to 12 (matching the revived teammate's halved HP).
v1.2.0
- 修复:拍活吃尸体的结算只在原版复活真正执行时才生效(Postfix 镜像原方法内部条件),修复"正常复活无法执行、吃尸体却执行"的卡死/重复拍活误结算问题。
- 新增:吃尸体音画表现 —— Swallow 吞咽音效(以吃者为准)+ 吃者位置 Smoke 粒子,通过网络广播给所有玩家(新组件 CannibalFx 挂玩家 Prefab)。
- Fix: corpse-eating settlement now only applies when the vanilla revive actually executed (Postfix mirrors the original method's condition), fixing the stuck "normal revive fails but the eat runs" / double-revive mis-settlement.
- New: eat sound & VFX — Swallow sound (at the eater) + Smoke puff, broadcast to all players via a new networked component (CannibalFx) on the player prefab.
v1.1.0
- 新增拍活吃尸体:复活队友时有概率(默认 50%,可配)吃掉队友尸体,复活者回复 50% 血,被复活者照常复活但血量减半(原版 25 血的一半);拍活动作不变,仅在最终判定处结算;新增开关与概率配置。
- New: corpse-eating revives — reviving a teammate has a chance (default 50%, configurable) to eat the corpse: the reviver heals 50% HP and the revived teammate still comes back with half HP (half of the vanilla 25); the slap action itself is unchanged, only the final determination is modified; new toggle and chance config.
v1.0.0
- 初版发布:尸体随机价格(默认 -50~50)可卖给收钱 NPC / 上赌桌 / 喂老虎机抽皮肤;新增可配置的复活强制等待(默认 5 秒,期间放弃与拍活均锁定)。
- Initial release: player corpses get a random price (default -50~50) and can be sold to money NPCs, bet on the casino table, or fed to the slot machine for skins; adds a configurable forced respawn wait (default 5s, both revive paths locked during it).