EndlessEnemy
【Host Only MOD】Instantly respawns the next enemy whenever all alive enemies have been eliminated.生きている敵が全滅した時に、次にリスポーンする敵を即座にリスポーンさせます。
模組介紹 作者原文
COMPATIBLE WITH R.E.P.O. V0.4.4.
EndlessEnemy
This mod is a host-only mod that prevents long periods without enemies by shortening the respawn timers of despawned enemies when all currently active enemies have been defeated.
Overview
Normally, R.E.P.O. can occasionally enter periods where no enemies are present because every spawned enemy has been killed while the remaining enemies are still waiting for their respawn timers to expire.
This mod monitors the number of currently active enemies at configurable intervals.
When the number of alive enemies reaches zero, the mod searches for the despawned enemies with the shortest remaining respawn timers and reduces those timers to a configurable value.
This allows enemy encounters to continue more consistently and reduces downtime between fights.
The number of enemies affected and the shortened respawn time can both be configured.
Behavior
- Host-only mod
- Clients do not need to install this mod
- Checks whether alive enemies remain only at configurable intervals
- Uses a lightweight design to minimize unnecessary processing
- Does not allocate candidate lists while alive enemies are still present
- Only builds the candidate list after confirming that no alive enemies remain
- Selects enemies with the shortest remaining respawn timers
- Shortens only the configured number of enemy respawn timers
- Waits for a configurable cooldown period after activation before checking again
- Supports optional debug logging
Enemy check behavior
The mod performs enemy checks using the following flow.
- Wait until the configured check interval has elapsed.
- Verify that the mod is enabled.
- Verify that the local player is the host or is playing in singleplayer.
- Verify that a level has been generated.
- Verify that extraction completion rules allow processing.
- Scan all enemies to determine whether any alive enemies currently exist.
- If at least one alive enemy exists, stop immediately without allocating additional lists.
- If no alive enemies exist, build a list containing valid respawn candidates.
- Select the configured number of enemies with the shortest respawn timers.
- Shorten those timers to the configured value.
- Wait until the configured cooldown duration has elapsed before checking again.
Multiplayer
This is a host-only mod.
Enemy spawning and respawn timing are controlled by the host.
Because of that, clients do not need to install this mod.
If the host installs the mod, all players in the lobby will experience the modified behavior.
Configuration
General.Enabled
Enables this mod.
- Default: true
- Minimum: false
- Maximum: true
General.CheckIntervalSeconds
Interval used when checking whether any alive enemies remain.
- Default: 5
- Minimum: 0.5
- Maximum: 60
General.AfterTriggerCooldownSeconds
Delay before enemy checks resume after respawn timers have been shortened.
- Default: 20
- Minimum: 0
- Maximum: 300
General.RespawnCount
Number of enemy respawn timers that will be shortened.
Enemies with the shortest remaining respawn timers are selected first.
- Default: 1
- Minimum: 1
- Maximum: 20
General.RespawnTimerSeconds
Respawn timer value applied to selected enemies.
- Default: 5
- Minimum: 1
- Maximum: 60
General.IgnoreAfterExtractionCompleted
Prevents the mod from shortening respawn timers after all extraction points have been completed.
- Default: false
- Minimum: false
- Maximum: true
Debug.DebugLogEnabled
Outputs information about affected enemies to the BepInEx log.
The enemy name and timer changes will be displayed whenever the mod shortens a respawn timer.
- Default: false
- Minimum: false
- Maximum: true
Notes for developers
The mod patches EnemyDirector.Update() using a Harmony Postfix.
Enemy checks are intentionally interval-based instead of frame-based.
Under normal gameplay conditions, the mod only performs a lightweight alive-enemy scan.
Candidate list allocation only occurs after the mod confirms that there are no alive
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: