RechargeHealthPacks
【Host Only MOD】Restores used health packs at charging stations by consuming charge.使用済みヘルスパックを充電所で充電を消費して再利用可能にします。
模組介紹 作者原文
COSMETICS UPDATE V0.4.0 COMPATIBLE.
RechargeHealthPacks
This mod is a host-only mod that lets used health packs be restored at charging stations by consuming station charge.
Only the host needs to install this mod.
Clients can join without installing it, because the host handles the charging station check, restored health pack spawn, used health pack cleanup, and charge synchronization.
Features
- Restores used health packs placed inside a charging station area.
- Consumes charging station charge based on health pack size.
- Supports separate charge costs for small, medium, and large health packs.
- Spawns a fresh health pack using the original item prefab.
- Can delete the used health pack after restoration.
- Can protect used health packs from being destroyed while they are inside the truck or cart area.
- Does not run in shop levels or while the run is restarting.
How it works
Place a used health pack inside the charging station area.
If the host has enough charging station charge, the mod consumes the configured amount of charge and spawns a fresh health pack at the same position.
The size is determined from the health pack heal amount.
A heal amount of 25 or less uses the small health pack cost.
A heal amount of 50 or less uses the medium health pack cost.
A heal amount of 100 or less uses the large health pack cost.
Technical details
The mod patches ChargingStation.Update and periodically scans the station charge area for ItemHealthPack objects.
It checks the internal used state of ItemHealthPack, calculates the required charge cost, spawns a restored health pack from ItemAttributes.item.prefab, then updates the charging station charge state.
In multiplayer, the restored item is spawned through PhotonNetwork.InstantiateRoomObject.
The charging station segment state is synchronized through the vanilla ChargingStationSegmentChangedRPC flow.
The mod also patches PhysGrabObjectImpactDetector break and destroy flows to prevent used health packs from being destroyed while they are inside the truck or cart area, when that protection setting is enabled.
Configuration
General
| Setting | Description | Default | Minimum | Maximum |
|---|---|---:|---:|---:|
| ModEnabled | Enables this mod. | true | false | true |
| CheckInterval | Interval in seconds for checking used health packs in the charging station area. | 0.5 | 0.1 | 5 |
| DestroyUsedPackAfterRecharge | Destroys the used health pack after spawning a restored one. | true | false | true |
| ProtectUsedPackInTruck | Protects used health packs from being destroyed while they are inside the truck or cart area. | true | false | true |
Charge Cost
| Setting | Description | Default | Minimum | Maximum |
|---|---|---:|---:|---:|
| SmallHealthPackChargeCost | Charge consumed to restore a used small health pack. | 2 | 0 | 100 |
| MediumHealthPackChargeCost | Charge consumed to restore a used medium health pack. | 5 | 0 | 100 |
| LargeHealthPackChargeCost | Charge consumed to restore a used large health pack. | 8 | 0 | 100 |
Debug
| Setting | Description | Default | Minimum | Maximum |
|---|---|---:|---:|---:|
| DebugLog | Enables detailed debug logs. | false | false | true |
Notes
- This mod targets normal level gameplay and does not process recharge logic in shop levels.
- This mod restores ItemHealthPack only.
It does not change ItemReviveItem or other revive items.
- If DestroyUsedPackAfterRecharge is disabled, the original used pack is not deleted, but the same original pack is not processed repeatedly during the same session.
※Mod created by AI
COSMETICS UPDATE V0.4.0対応済み.
RechargeHealthPacks
REPOが好きな日本人のための日本人のみのREPOのDiscordサーバーあります!
參加は以下のリンクから!
このMODは、ホスト専用の、使用済みヘルスパックを充電所で充電を消費して再利用可能にするMODです。
導入が必要なのはホストのみです。
充電所の判定、再利用可能なヘルスパックの生成、使用済みヘルスパックの削除、充電量の同期はホスト側で処理されるため、參加者側の導入は不要です。
機能
- 充電所エリア內に置かれた使用済みヘルスパックを再利用可能化
- ヘルスパックのサイズに応じて充電所の充電量を消費
- 小、中、大ヘルスパックごとに消費充電量を個別設定可能
- 元アイテムのPrefabを使用して新品ヘルスパックを生成
- 再利用後に使用済みヘルスパックを削除可能
- 使用済みヘ
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: