REPO_JP-TradeForRevive icon

TradeForRevive

【Host Only MOD】Trade held battery items or health packs to revive dead players.持っているバッテリー付きアイテムやヘルスパックを引き換えに死亡プレイヤーを蘇生するMOD

By REPO_JP
Last updated 5 hours ago
Total downloads 30
Total rating 2 
Categories Mods Server-side AI Generated
Dependency string REPO_JP-TradeForRevive-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2100

README

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

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
  • The traded item is removed from the world
  • The traded item is removed from the purchased-item state

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

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

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

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

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: false
  • Uses effect-heavy destruction when removing the traded item

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

Installation

  1. Install BepInEx 5 for REPO
  2. Place TradeForRevive.dll in the BepInEx/plugins folder
  3. 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秒間当て続けると、トレードで蘇生できます。

使用可能な引き換えアイテム:

  • バッテリー付きアイテム
  • ヘルスパック

トレード条件:

  • 誰かが手に持っているアイテムのみ使用可能
  • 地面に落ちているだけのアイテムでは発動しない
  • 2秒間連続で触れ続ける必要がある
  • 接触が切れると進捗はリセットされる
  • 使用したアイテムはワールドから消える
  • 使用したアイテムは購入済み状態からも削除される

蘇生時HPルール:

  • バッテリーアイテム
    • 0% = 1HPで蘇生
    • 50% = 最大HPの50%で蘇生
    • 100% = 最大HPの100%で蘇生
  • ヘルスパック
    • スモール = 25HPで蘇生
    • ミディアム = 50HPで蘇生
    • ラージ = 100HPで蘇生

具体例:

  • バッテリー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で蘇生

設定項目

EnableMod

  • 初期値: true
  • MODの有効無効

DetectRadius

  • 初期値: 0.65
  • 各デスヘッド周囲で有効アイテムを検知する半径

TouchHoldSeconds

  • 初期値: 2.0
  • トレードと蘇生が発動するまでに必要な連続接触時間

ScanInterval

  • 初期値: 0.10
  • 周囲の有効アイテムを走査する間隔秒数

HeadCooldownSeconds

  • 初期値: 0.50
  • 1回トレード蘇生した後に同じデスヘッドを再処理できるまでの待機時間

RequirePurchasedItem

  • 初期値: true
  • 購入済みアイテムのみを引き換え対象にする

AllowBatteryItems

  • 初期値: true
  • バッテリー付きアイテムを蘇生トレード対象にする

AllowHealthPacks

  • 初期値: true
  • ヘルスパックを蘇生トレード対象にする

AllowZeroBatteryRevive

  • 初期値: true
  • 電池ゼロのバッテリーアイテムでも1HP蘇生を許可する

ConsumeItem

  • 初期値: true
  • 引き換えたアイテムをワールドと購入済み管理から削除する

DestroyWithEffects

  • 初期値: false
  • 引き換えたアイテム削除時に重めの破壊演出を使う

DebugLog

  • 初期値: false
  • 検知、接触進行、蘇生実行のデバッグログを出力する

補足

  • ホスト権限で動作する前提の設計
  • 蘇生は接触時間を満たした後にのみ完了
  • バッテリーアイテムは現在の電池残量割合で蘇生HPが決まる
  • ヘルスパックは最大HPに依存せず固定HPで蘇生する

導入方法

  1. REPOに BepInEx 5 を導入
  2. TradeForRevive.dllBepInEx/plugins フォルダへ配置
  3. ホストとしてゲームを起動

互換性

このMODはホスト専用のゲームプレイMODです。 トレード蘇生のホスト側ロジックを動かすだけなら参加者の導入は不要です。

※AI生成MOD