REPO_JP-RespawnNoiseControl icon

RespawnNoiseControl

【Host Only MOD】Adjusts the noise threshold and respawn reduction time for enemy respawn acceleration.敵リスポーン加速が発生する音量しきい値と短縮秒数を調整

By REPO_JP
Last updated a day ago
Total downloads 122
Total rating 2 
Categories Mods Server-side
Dependency string REPO_JP-RespawnNoiseControl-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

RespawnNoiseControl

RespawnNoiseControl is a host-only mod for R.E.P.O. that changes the investigate radius threshold used to accelerate enemy respawn timers.

In vanilla, enemy respawn acceleration is triggered when a sound with an investigate radius of 15 or more is reported to EnemyDirector.SetInvestigate(...), and each affected unspawned enemy has its despawn timer reduced by 5 seconds.

This mod lets the host change:

  • the noise threshold that triggers respawn acceleration
  • the number of seconds reduced from the respawn timer

Only the host needs this mod.

Features

  • Host-only behavior
  • Configurable respawn acceleration noise threshold
  • Configurable respawn reduction seconds
  • Keeps normal enemy investigate behavior unchanged
  • Designed to stay close to vanilla except for the threshold and reduction amount

How it works

The mod patches EnemyDirector.SetInvestigate(...).

Vanilla behavior:

  • If an enemy is already spawned, the normal investigate behavior is processed
  • If an enemy is not spawned yet and the investigate radius is 15 or higher, DisableDecrease(5f) is applied

This mod changes the threshold check and the reduction seconds through config.

Configuration

General

EnableMod

Description: Enable or disable this mod Default: true Minimum: false Maximum: true

RespawnNoiseThreshold

Description: Noise threshold required to reduce the enemy respawn timer Default: 10 Minimum: 1 Maximum: 20

RespawnDecreaseSeconds

Description: How many seconds to reduce the enemy respawn timer when the threshold is met Default: 5 Minimum: 0 Maximum: 60

Noise reference

The game uses the investigate radius passed to EnemyDirector.SetInvestigate(...) as the effective noise value.

Reference values:

  • Player landing: 10
  • Shotgun shot: 20
  • Revolver shot: 18
  • Pistol shot: 15
  • Small explosion: 18
  • Medium explosion: 22
  • Large explosion: 25
  • Grenade explosion: 25
  • Rocket explosion: 25
  • Heavy physical object impact: 15
  • Medium physical object impact: 12
  • Light physical object impact: 8
  • Door slam: 12
  • Door break: 18
  • Trap trigger (Crown Box): 20
  • Trap trigger (Monkey Box): 18
  • Glass break: 15
  • Large object fall: 18
  • Small object fall: 10
  • Heavy enemy attack: 15
  • Enemy jump landing: 10
  • Vanilla respawn acceleration threshold: 15

With the default setting of this mod, normal player landing can also trigger respawn acceleration.

Notes

  • This mod only changes the respawn acceleration threshold and reduction amount for unspawned enemies
  • It does not change the normal investigate behavior for already spawned enemies
  • Only the host needs to install this mod

Installation

  1. Install BepInEx for R.E.P.O.
  2. Put RespawnNoiseControl.dll into the plugins folder
  3. Start the game once to generate the config file
  4. Edit the config as needed

Source behavior summary

Patched method:

  • EnemyDirector.SetInvestigate(Vector3 position, float radius, bool pathfindOnly = false)

Vanilla respawn reduction:

  • enemyParent.DisableDecrease(5f)

This mod changes:

  • radius >= 15f
  • 5f

to configurable values.

RespawnNoiseControl

RespawnNoiseControl は、R.E.P.O. 向けのホスト専用MODです。 敵リスポーン加速に使われる investigate radius のしきい値を変更できます。

バニラでは、EnemyDirector.SetInvestigate(...) に渡された investigate radius が 15 以上のとき、未出現の敵に対して 5 秒のリスポーン短縮が発生します。

このMODでは、ホストが以下を変更できます。

  • リスポーン加速が発生する音量しきい値
  • リスポーン時間を何秒短縮するか

導入はホストのみで動作します。

機能

  • ホスト専用動作
  • リスポーン加速用の音量しきい値を設定可能
  • リスポーン短縮秒数を設定可能
  • 出現済み敵の通常 investigate 挙動は変更しない
  • しきい値と短縮秒数以外は極力バニラ準拠

動作概要

このMODは EnemyDirector.SetInvestigate(...) をパッチします。

バニラでは以下のように動作します。

  • すでに出現している敵には通常の investigate 処理を行う
  • まだ出現していない敵には、investigate radius が 15 以上のとき DisableDecrease(5f) を適用する

このMODは、そのしきい値と短縮秒数だけを Config 化します。

設定項目

General

EnableMod

設定項目: EnableMod 設定内容説明: このMODの有効無効 初期値: true 設定可能最小値: false 設定可能最大値: true

RespawnNoiseThreshold

設定項目: RespawnNoiseThreshold 設定内容説明: 敵のリスポーン時間短縮が発生する音量しきい値 初期値: 10 設定可能最小値: 1 設定可能最大値: 20

RespawnDecreaseSeconds

設定項目: RespawnDecreaseSeconds 設定内容説明: しきい値到達時に敵のリスポーン時間を何秒短縮するか 初期値: 5 設定可能最小値: 0 設定可能最大値: 60

音量参考値

このゲームでは EnemyDirector.SetInvestigate(...) に渡される investigate radius が、実質的な音量値として使われています。

参考値:

  • プレイヤー着地: 10
  • ショットガン発砲: 20
  • リボルバー発砲: 18
  • ピストル発砲: 15
  • 爆発(小): 18
  • 爆発(中): 22
  • 爆発(大): 25
  • グレネード爆発: 25
  • ロケット爆発: 25
  • 物理オブジェクト強衝突: 15
  • 物理オブジェクト中衝突: 12
  • 物理オブジェクト軽衝突: 8
  • ドア強打: 12
  • ドア破壊: 18
  • トラップ発動(クラウンボックス): 20
  • トラップ発動(モンキーボックス): 18
  • ガラス破壊: 15
  • 大型オブジェクト落下: 18
  • 小型オブジェクト落下: 10
  • 敵強攻撃: 15
  • 敵ジャンプ着地: 10
  • バニラのリスポーン加速しきい値: 15

このMODの初期設定では、通常のプレイヤー着地でもリスポーン加速条件に到達します。

注意点

  • このMODが変更するのは、未出現敵に対するリスポーン加速条件と短縮秒数のみです
  • 出現済み敵の investigate 挙動は変更しません
  • 導入はホストのみで動作します

導入方法

  1. R.E.P.O. 用の BepInEx を導入します
  2. RespawnNoiseControl.dll を plugins フォルダへ配置します
  3. 一度ゲームを起動して Config ファイルを生成します
  4. 必要に応じて Config を編集します

ソースコード上の処理要約

パッチ対象:

  • EnemyDirector.SetInvestigate(Vector3 position, float radius, bool pathfindOnly = false)

バニラのリスポーン短縮:

  • enemyParent.DisableDecrease(5f)

このMODでは、以下を Config 化しています。

  • radius >= 15f
  • 5f