XH DamageShow EnemyHealthBar

版本 v1.0.3·更新於 2026-01-10

Enemy Health Bar and Damage Value Display by Xiaohai

模組介紹 作者原文

XH_DamageShow&EnemyHealthBar v1.0.3

XiaoHai_REPO_DamageShow&EnemyHealthBar / 小海 R.E.P.O 傷害顯示 & 怪物血條 MOD

Instructions / 安裝說明

  • Place contents in BepInEx/plugins. / 將文件放入 BepInEx/plugins 目錄。
  • No extra steps required. / 無需額外操作,安裝即用。
  • Config supported since v1.0.3. / v1.0.3 起支持配置項。

Changelog / 更新日誌

v1.0.0

  • Release. / 首次發佈。

v1.0.1

  • Fixed host/client desync where clients sometimes didn’t show UI. / 修復主客機不同步(舊版本有時客機不顯示)。

v1.0.3

  • Fixed host/client desync for health bar & damage display (HurtRPC patch signature aligned).

/ 徹底修復主機/客戶端血條與傷害顯示不同步問題(HurtRPC 補丁參數對齊)。

  • Fixed health bar not following enemies during drag/knockdown displacement (follow target prioritizes Rigidbody/center and auto-rebinds at runtime).

/ 修復敵人被拖拽/摔倒等位移時血條不跟隨的問題(跟隨目標優先使用剛體/中心點,並在運行中自動重綁定)。

  • Improved positioning logic: auto-calculates head height using Collider/Renderer (Mesh) Bounds for better results on both large and small enemies.

/ 優化血條顯示與定位邏輯:基於敵人碰撞體/渲染器(Mesh/Renderer)Bounds 自動計算頭頂高度,大小怪都更合理。

  • Fixed bars sinking into models when enemies topple/rotate: positions are computed in world-up space instead of local axes.

/ 修復敵人翻倒/旋轉導致血條鑽進模型的問題:使用世界座標“向上”定位血條,而不是受局部座標軸影響。

  • Added config “ExtraHeightOffset / 增高偏移” (default 1.25): always added after the auto height calculation.

/ 新增配置項“ExtraHeightOffset / 增高偏移(默認 1.25)”:在自動高度計算後始終額外增加該高度。

  • Performance & memory optimizations: shared white Sprite (less allocations), throttled visibility updates to reduce per-frame cost.

/ 優化性能與內存:血條使用共享白色 Sprite,減少貼圖/對象分配;可見性更新節流,降低每幀開銷。

  • Stability improvements: safer initialization and null checks to prevent edge-case errors.

/ 提升穩定性:增加初始化與空引用保護,避免個別情況下報錯。

  • Less log spam: verbose logs are disabled by default (enable VerboseLogging if needed).

/ 降噪:高頻日誌默認關閉(需要時可開啓 VerboseLogging)。

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack

檔案與校驗

檔案名稱
XH_DamageShow_EnemyHealthBar-1.0.3.zip
檔案大小
103.6 KiB
SHA-256
6a79317b88e23309ed64857a8b3370628ef30eb4a162efbdfcd1abf7c458a71d
入庫時間
2026-10-06 19:15