REPO_JP-RespawnNoiseControl icon

RespawnNoiseControl

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

By REPO_JP
Last updated 2 weeks ago
Total downloads 1780
Total rating 8 
Categories Mods Monsters Server-side AI Generated
Dependency string REPO_JP-RespawnNoiseControl-4.0.0
Dependants 1 other package depends 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

COMPATIBLE WITH COSMETICS UPDATE V0.4.0.

RespawnNoiseControl

This mod is a host-only mod that adjusts the noise threshold and timer reduction used by enemy respawn acceleration.

Only the host needs this mod.

Features

  • Host-only behavior
  • Configurable enemy respawn acceleration noise threshold
  • Configurable enemy respawn timer reduction seconds
  • Keeps normal enemy investigate behavior unchanged
  • Uses the latest R.E.P.O. v0.4.0 EnemyDirector.SetInvestigate(...) flow
  • Falls back to vanilla behavior if required runtime fields are not found

How it works

The mod patches EnemyDirector.SetInvestigate(Vector3 position, float radius, bool pathfindOnly).

In vanilla behavior, the game sends sound and noise information to EnemyDirector.SetInvestigate(...) as an investigate radius. Already spawned enemies use that radius for normal investigate behavior. Unspawned enemies can have their respawn timer reduced when the radius reaches the vanilla threshold.

This mod keeps the spawned-enemy investigate behavior intact and only changes the respawn acceleration threshold and reduction seconds for unspawned enemies.

Configuration

General

EnableMod

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

RespawnNoiseThreshold

Description: Noise radius threshold required to reduce the enemy respawn timer Default: 10 Minimum: 0 Maximum: 100

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 enemy 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
  • It does not add new enemies
  • It does not change enemy spawn points
  • It does not require non-host players to install the 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)

Main modified behavior:

  • Vanilla threshold check is replaced with RespawnNoiseThreshold
  • Vanilla respawn timer reduction seconds are replaced with RespawnDecreaseSeconds
  • Reflection is used for internal enemy field access in the latest game version
  • If reflection setup fails, the original vanilla method is allowed to run

※Mod created by AI

COSMETICS UPDATE V0.4.0対応済み.

RespawnNoiseControl

REPOが好きな日本人のための日本人のみのREPOのDiscordサーバーあります! 参加は以下のリンクから! https://discord.gg/h5ATY4m5bZ

このMODは、ホスト専用の、敵リスポーン加速が発生する音量しきい値と短縮秒数を調整するMODです。

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

機能

  • ホスト専用動作
  • 敵リスポーン加速用の音量しきい値を設定可能
  • 敵リスポーン短縮秒数を設定可能
  • 出現済み敵の通常 investigate 挙動は変更しない
  • R.E.P.O. v0.4.0 の EnemyDirector.SetInvestigate(...) 処理に対応
  • 必須の実行時フィールドが取得できない場合はバニラ処理へフォールバック

動作概要

このMODは EnemyDirector.SetInvestigate(Vector3 position, float radius, bool pathfindOnly) をパッチします。

バニラでは、音やノイズ情報が investigate radius として EnemyDirector.SetInvestigate(...) に渡されます。 出現済みの敵は、その radius を使って通常の調査行動を行います。 未出現の敵は、radius がバニラのしきい値に到達した場合にリスポーンタイマーが短縮されます。

このMODは、出現済み敵の調査挙動は維持し、未出現敵のリスポーン加速しきい値と短縮秒数のみを変更します。

設定項目

General

EnableMod

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

RespawnNoiseThreshold

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

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 挙動は変更しません
  • 新しい敵を追加するMODではありません
  • 敵のスポーン地点を変更するMODではありません
  • ホスト以外の参加者に導入は不要です

導入方法

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

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

パッチ対象:

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

主な変更処理:

  • バニラのしきい値判定を RespawnNoiseThreshold に置き換え
  • バニラのリスポーン短縮秒数を RespawnDecreaseSeconds に置き換え
  • 最新ゲーム版の internal フィールド参照に Reflection を使用
  • Reflection 取得に失敗した場合は元のバニラメソッドを実行

※AI生成MOD