ShowEnemyHealth Fixed
Fixed Edition of Rozza's ShowEnemyHealth for R.E.P.O.; shows numeric enemy health and damage text.
模組介紹 作者原文
Show Enemy Health - Fixed Edition
Fixed Edition of Rozza's original R.E.P.O. mod ShowEnemyHealth.
Original author/mod: Rozza / ShowEnemyHealth. This package keeps the original purpose of the mod: showing digital enemy health text and damage numbers. It is not a graphical health bar mod.
What it does
- Shows enemy health as a numeric text label above enemies.
- Shows damage text when enemies take damage.
- Supports REPOConfig-generated in-game configuration and manual BepInEx configuration.
Fixed Edition changes
This Fixed Edition focuses on reliability and compatibility with the current R.E.P.O. behavior:
- Creates persistent health text on EnemyHealth.Awake / EnemyHealth.OnSpawn, so health can appear before the enemy is damaged.
- Handles multiplayer clients by locally subtracting positive HurtRPC damage from healthCurrent.
- Does not restore the old negative HurtRPC custom sync or old transpiler, avoiding double damage / double subtraction issues.
- Uses Camera.main for occlusion checks, ignores the enemy's own colliders, and avoids self-occlusion false positives.
- Keeps damaged enemies' health text visible through occluders within 10m, then restores normal occlusion once the player moves farther away until the enemy is damaged again.
- Cleans up UI on enemy death, death impulse, health reaching zero, client-side HurtRPC reaching zero, despawn, and EnemyBang.ExplodeRPC.
- Starts delayed UI creation from the plugin coroutine runner instead of inactive enemy/controller objects, preventing inactive GameObject coroutine errors.
- Fixes package naming/version metadata packaging.
Installation
mod manager
Install the package with a -compatible mod manager. The package places the plugin DLL under:
BepInEx/plugins/REPO_ShowEnemyHealth.dll
Manual
- Install BepInEx Pack for R.E.P.O.
- Copy REPO_ShowEnemyHealth.dll into your game's BepInEx/plugins/ directory.
- Launch the game once to generate the config file.
Configuration
All current options are defined by the mod's ConfigManager and can be changed in either of these ways:
- In-game through REPOConfig if installed.
- Manually in BepInEx/config/REPO_ShowEnemyHealth.cfg after launching the game once with the mod installed.
Available colors for all color settings:
black, blue, cyan, green, grey, magenta, orange, red, white, yellow
Health
| Setting | Type / Range | Default | Description |
| --- | --- | --- | --- |
| ShowEnemyHealth | bool | true | Enables or disables numeric enemy health text. |
| HealthFontSize | float, 10-50 | 15 | Size of the enemy health text. |
| HealthFontColor | listed colors | grey | Color of the enemy health text. |
Damage
| Setting | Type / Range | Default | Description |
| --- | --- | --- | --- |
| ShowEnemyDamage | bool | true | Enables or disables damage number text. |
| DamageFontSize | float, 10-50 | 25 | Size of the damage text. |
| DamageFontHighlightColor | listed colors | red | Highlight color used in damage text. |
| DamageFontColor | listed colors | orange | Primary damage text color. |
Example config
[Health]
ShowEnemyHealth = true
HealthFontSize = 15
HealthFontColor = grey
[Damage]
ShowEnemyDamage = true
DamageFontSize = 25
DamageFontHighlightColor = red
DamageFontColor = orange
Links
- Original mod:
- Original source:
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: