RechargeHealthPacks
【Host Only MOD】Restores used health packs at charging stations by consuming charge.
About this mod Machine translation
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サーバーあります!
Participate in the following のリンクから!
このMODは, ホスト専用の, and みみヘルスパックをcharging station can be recharged and consumed and reused にするMODです.
Import the necessary なのはホストのみです.
Judgment of charging station, possible reuse of the battery, generation and use of the battery Exception, synchronization of charge level, processing on the side, and i …
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: