Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
TradeForRevive
【Host Only MOD】Trade held battery items or health packs to revive dead players.持っているバッテリー付きアイテムやヘルスパックを引き換えに死亡プレイヤーを蘇生するMOD
By REPO_JP
| Last updated | 2 months ago |
| Total downloads | 2180 |
| Total rating | 5 |
| Categories | Mods Server-side AI Generated |
| Dependency string | REPO_JP-TradeForRevive-1.1.0 |
| Dependants | 0 other packages depend on this package |
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.2100README
TradeForRevive
This mod is lets players revive dead teammates by trading a held battery-powered item or health pack to a death head.
Overview
When a player is dead and their death head is on the map, another player can hold a valid item against that death head for 2 seconds to perform a revive trade.
Valid trade items:
- Battery-powered items
- Health packs
- Used health packs, if enabled in the config
Trade rules:
- Only items currently being held by a player can be used
- Simply dropped items will not activate the revive
- The item must stay in contact for 2 seconds
- If contact is broken, progress resets
- One item can only revive one dead player
- If one item touches multiple death heads at the same time, only one revive can be completed
- The traded item is removed from the world
- The traded item is removed from the purchased-item state when applicable
- Used health packs are vanished directly instead of using the normal break effect path
Revive HP rules:
- Battery item:
- 0% battery = revive with 1 HP
- 50% battery = revive with 50% of max HP
- 100% battery = revive with 100% of max HP
- Health pack:
- Small = revive with 25 HP
- Medium = revive with 50 HP
- Large = revive with 100 HP
- Used health pack:
- Revive with 1 HP
Examples:
- Battery 0%:
- 1/100 HP
- 1/200 HP
- Battery 50%:
- 50/100 HP
- 100/200 HP
- Battery 100%:
- 100/100 HP
- 200/200 HP
- Small health pack:
- 25/100 HP
- 25/200 HP
- Medium health pack:
- 50/100 HP
- 50/200 HP
- Large health pack:
- 100/100 HP
- 100/200 HP
- Used health pack:
- 1/100 HP
- 1/200 HP
Config
EnableMod
- Default: true
- Enables or disables the mod
DetectRadius
- Default: 0.65
- Detection radius around each death head for valid trade items
TouchHoldSeconds
- Default: 2.0
- Required continuous contact time before the trade and revive are executed
ScanInterval
- Default: 0.10
- Interval in seconds for scanning nearby valid items
HeadCooldownSeconds
- Default: 0.50
- Cooldown after one revive trade before the same death head can be processed again
RequirePurchasedItem
- Default: true
- Only allows purchased items to be used as trade items
- Used health packs can still be allowed separately with AllowUsedHealthPacks
AllowBatteryItems
- Default: true
- Allows battery-powered items to be used for revive trades
AllowHealthPacks
- Default: true
- Allows health packs to be used for revive trades
AllowUsedHealthPacks
- Default: true
- Allows used health packs to revive with 1 HP
AllowZeroBatteryRevive
- Default: true
- Allows battery items with zero battery to still revive with 1 HP
ConsumeItem
- Default: true
- Removes the traded item from the world and purchased-item tracking
DestroyWithEffects
- Default: true
- Uses effect-heavy destruction when removing normal traded items
- Used health packs are vanished directly even when this is enabled
DebugLog
- Default: false
- Outputs debug logs for detection, hold progress, and revive execution
Notes
- Designed for host-side authority
- Revive is only completed after the full hold duration
- Battery items revive based on current battery percentage
- Health packs revive with fixed HP values that do not scale with max HP
- Used health packs revive with 1 HP
- One traded item is locked to one revive to prevent multiple simultaneous revives from a single item
Installation
- Install BepInEx 5 for REPO
- Place
TradeForRevive.dllin theBepInEx/pluginsfolder - Start the game as the host
Compatibility
This mod is intended as a host-only gameplay mod. Clients do not need to install it for the host-side revive trade logic to run.
※Mod created by AI
TradeForRevive
このMODは、持っているバッテリー付きアイテムやヘルスパックをデスヘッドに引き換えて死亡プレイヤーを蘇生するMODです。
REPOが好きな日本人のための日本人のみのREPOのDiscordサーバーあります! 参加は以下のリンクから! https://discord.gg/h5ATY4m5bZ
概要
プレイヤーが死亡してデスヘッドが出ているとき、別のプレイヤーが有効なアイテムをそのデスヘッドに2秒間当て続けると、トレードで蘇生できます。
使用可能な引き換えアイテム:
- バッテリー付きアイテム
- ヘルスパック
- Configで許可されている場合の使用済みヘルスパック
トレード条件:
- 誰かが手に持っているアイテムのみ使用可能
- 地面に落ちているだけのアイテムでは発動しない
- 2秒間連続で触れ続ける必要がある
- 接触が切れると進捗はリセットされる
- 1つのアイテムで蘇生できるのは1人だけ
- 1つのアイテムが複数のデスヘッドに同時に触れても、完了する蘇生は1人だけ
- 使用したアイテムはワールドから消える
- 使用したアイテムは該当する場合、購入済み状態からも削除される
- 使用済みヘルスパックは通常の破壊演出経路ではなく、直接無にする処理で削除される
蘇生時HPルール:
- バッテリーアイテム
- 0% = 1HPで蘇生
- 50% = 最大HPの50%で蘇生
- 100% = 最大HPの100%で蘇生
- ヘルスパック
- スモール = 25HPで蘇生
- ミディアム = 50HPで蘇生
- ラージ = 100HPで蘇生
- 使用済みヘルスパック
- 1HPで蘇生
具体例:
- バッテリー0%
- 1/100HPで蘇生
- 1/200HPで蘇生
- バッテリー50%
- 50/100HPで蘇生
- 100/200HPで蘇生
- バッテリー100%
- 100/100HPで蘇生
- 200/200HPで蘇生
- ヘルスパックスモール
- 25/100HPで蘇生
- 25/200HPで蘇生
- ヘルスパックミディアム
- 50/100HPで蘇生
- 50/200HPで蘇生
- ヘルスパックラージ
- 100/100HPで蘇生
- 100/200HPで蘇生
- 使用済みヘルスパック
- 1/100HPで蘇生
- 1/200HPで蘇生
設定項目
EnableMod
- 初期値: true
- MODの有効無効
DetectRadius
- 初期値: 0.65
- 各デスヘッド周囲で有効アイテムを検知する半径
TouchHoldSeconds
- 初期値: 2.0
- トレードと蘇生が発動するまでに必要な連続接触時間
ScanInterval
- 初期値: 0.10
- 周囲の有効アイテムを走査する間隔秒数
HeadCooldownSeconds
- 初期値: 0.50
- 1回トレード蘇生した後に同じデスヘッドを再処理できるまでの待機時間
RequirePurchasedItem
- 初期値: true
- 購入済みアイテムのみを引き換え対象にする
- 使用済みヘルスパックは AllowUsedHealthPacks で別途許可可能
AllowBatteryItems
- 初期値: true
- バッテリー付きアイテムを蘇生トレード対象にする
AllowHealthPacks
- 初期値: true
- ヘルスパックを蘇生トレード対象にする
AllowUsedHealthPacks
- 初期値: true
- 使用済みヘルスパックで1HP蘇生できるようにする
AllowZeroBatteryRevive
- 初期値: true
- 電池ゼロのバッテリーアイテムでも1HP蘇生を許可する
ConsumeItem
- 初期値: true
- 引き換えたアイテムをワールドと購入済み管理から削除する
DestroyWithEffects
- 初期値: true
- 通常の引き換えアイテム削除時に破壊演出を使う
- 使用済みヘルスパックはこの設定がオンでも直接無にする処理で削除される
DebugLog
- 初期値: false
- 検知、接触進行、蘇生実行のデバッグログを出力する
補足
- ホスト権限で動作する前提の設計
- 蘇生は接触時間を満たした後にのみ完了
- バッテリーアイテムは現在の電池残量割合で蘇生HPが決まる
- ヘルスパックは最大HPに依存せず固定HPで蘇生する
- 使用済みヘルスパックは1HP蘇生になる
- 同時接触時も1つの引き換えアイテムで複数人を蘇生しないようにロックされる
導入方法
- REPOに BepInEx 5 を導入
TradeForRevive.dllをBepInEx/pluginsフォルダへ配置- ホストとしてゲームを起動
互換性
このMODはホスト専用のゲームプレイMODです。 トレード蘇生のホスト側ロジックを動かすだけなら参加者の導入は不要です。
※AI生成MOD