Mao_Die_HQ-ReviveCountdown icon

ReviveCountdown

Host-only countdown revive: set how long a death lasts (1-300 s, default 60); each player has an independent timer and revives in place. All levels, shop and truck lobby; arena excluded. 仅主机:自定义倒计时复活(1-300 秒,默认 60),每人独立计时、原地复活;覆盖所有关卡、服务站与发车前,竞技场除外。

Last updated 34 minutes ago
Total downloads 3
Total rating 0 
Categories Server-side AI Generated Quality Of Life
Dependency string Mao_Die_HQ-ReviveCountdown-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

ReviveCountdown 复活倒计时

仅主机安装 / HOST ONLY — 客户端不需要安装。房主安装后,房间内所有玩家的复活计时都由房主这份模组通过游戏自带的网络 RPC 完成。 Host-only. Clients don't need this mod. The host's copy runs the revive timers for everyone in the room through the game's own network RPC.

复活时间由你决定。 每名玩家死亡后独立倒计时 1–300 秒(默认 60),到点在原地复活。 You decide how long a death lasts. Every dead player gets an independent 1–300 second timer (default 60) and revives in place when it ends.

亮点 / Highlights

  • 自定义倒计时复活:把原版「把死亡头颅运到提交点/卡车」改成「等 N 秒就回来」,N 完全由房主设定,随时可改、实时生效。

  • 每人独立计时:先死的先回来;30 秒后才死的会晚 30 秒回来,互不影响。

  • 原地复活:在死亡头颅所在处复活,不需要搬运头颅,也不需要队友操作。

  • 全流程覆盖:所有普通关卡、服务站(商店)、发车前的卡车大厅;竞技场除外。

  • 团灭也能等:默认全员阵亡不会立即判负换关,大家等各自的倒计时;该行为可单独关闭。

  • 仅主机生效:房主一份即可让全房间享受,客户端不用装。

  • 中英实时切换:配置页语言改完立即生效,无需重启。

  • 复活后沿用原版复活自带的 1 点血;本模组不额外回血。

  • Configurable countdown revive: the vanilla "carry the death head to an extraction point or the truck" becomes "wait N seconds and come back". N is set by the host, can be changed at any time and applies immediately.

  • Independent per-player timers: the first to die comes back first; someone who dies 30 seconds later revives 30 seconds later. No shared clock.

  • Revive in place: players come back at their death head, with no carrying and no teammate action required.

  • Everywhere in the run: all normal levels, the service station (shop) and the truck lobby before departure; the arena is excluded.

  • Team wipes still wait: by default all players dying at once does not end the level; everyone waits for their own timer. This can be switched off.

  • Host-only: one install by the host covers the whole room; clients need nothing.

  • Live Chinese/English switching: change the language in the config and the page relabels immediately, no restart.

  • Revived players keep the vanilla revive health (1 HP); this mod adds no extra healing.

玩法示例 / Suggested settings

风格 Style 倒计时 Countdown
轻松 Casual 5–15 秒 / seconds
默认 Default 60 秒 / seconds
硬核 Hardcore 180–300 秒 / seconds

配置 / Config

配置文件:BepInEx/config/com.yanyan.repo.revivecountdown.cfg(支持在 REPOConfig 游戏内修改)。 Config file: BepInEx/config/com.yanyan.repo.revivecountdown.cfg (editable in-game through REPOConfig).

配置项 Setting 默认 Default 中文 English
Language / 语言 Auto Auto 跟随游戏语言;选择 English 或 简体中文 立即切换配置页文字,无需重启 Auto follows the game language; pick English or 简体中文 to relabel the config page immediately, no restart
启用模组 Enable mod 开 / on 总开关;只有房主这份设置对全房间生效 Master switch; only the host's copy applies to the room
复活倒计时(秒) Revive delay (seconds) 60 死亡后等待多少秒复活,范围 1–300 Seconds to wait before reviving, range 1–300
团灭时暂停换关 Pause team-wipe ending 开 / on 全员阵亡时不立即判负换关,等各自倒计时;关闭则保持原版 All players dead no longer ends the level, so countdowns can finish; turn off for vanilla behaviour

配置项的名称在中文/英文之间实时切换,配置文件里的旧值不会丢失。客户端就算装了模组也不会驱动计时——只有主机执行逻辑。

The config names switch between Chinese and English live and saved values are kept. A client's copy never drives the timers — only the host acts.

生效范围 / Where it applies

场景 Scene 倒计时复活 Countdown revive
普通关卡 Normal levels 是 / yes
服务站 Service Station(商店 shop) 是 / yes
卡车大厅 Truck Lobby(发车前 before departure) 是 / yes
竞技场 Disposal Arena 否 / no
教程 / 菜单 Tutorial / menus 否 / no

工作原理 / How it works

房主每帧检查 GameDirector.PlayerList,发现玩家 deadSet 后为该玩家单独记录死亡时间;倒计时到点、且死亡头颅已经就位(不是隐藏位置)时调用 PlayerAvatar.Revive()。该函数通过 Photon 的 ReviveRPC 广播给所有客户端,所以没装模组的玩家也能正常复活。

为避免把玩家送到地图外,死亡头颅仍在隐藏位置 (0, 3000, 0) 时不会复活,会等它落到死亡点再复活。模组启用期间会暂缓原版「全员死亡」的判负换关,保证团灭后仍能等到倒计时;该行为由「团灭时暂停换关」开关控制,关闭后完全恢复原版换关逻辑。

The host checks GameDirector.PlayerList every frame, starts one timer per dead player (deadSet), and calls PlayerAvatar.Revive() when that player's timer is up and the death head is in place. Revive() broadcasts ReviveRPC to every client, so players without the mod revive normally too.

A head still parked at the hidden disabled position (0, 3000, 0) is never used for a revive; the mod waits until it rests at the death spot. While active, the vanilla "all players dead" level-fail transition is held back so a team wipe can still wait for the timers; the "Pause team-wipe ending" switch turns this off and restores the vanilla transition completely.

兼容性 / Compatibility

  • 与 ReviveZones 等复活模组可以同时使用:两者最终都调用游戏自带的 PlayerAvatar.Revive(),不会重复复活同一个人。
  • 与 HostToolkit / RepoCheat 等房主工具互不干扰;本模组只读取游戏状态并调用原版复活接口,没有自定义 UI、快捷键或输入拦截。
  • Compatible with ReviveZones and similar mods: both end up calling the game's own PlayerAvatar.Revive(); one player is never revived twice.
  • Does not interfere with HostToolkit / RepoCheat. No custom UI, hotkeys or input handling — it only reads game state and calls the vanilla revive.