ValuableInvulnHighlighter
Highlights nearby indestructible (invuln) valuables in pure red and optional red emission glow.無敵時間中の貴重品を赤発光させるMOD
模組介紹 作者原文
ValuableInvulnHighlighter
Highlights nearby indestructible (invuln) valuables in pure red, with optional red emission glow.
Features
- Detects valuables within a configurable radius around the local player
- While the valuable is indestructible (invuln), forces its render color to pure red
- Optional red emission glow (shader must support _EmissionColor)
- Visual-only behavior (no gameplay changes)
How it works
- Scans colliders around the local player at a configurable interval
- Finds PhysGrabObjectImpactDetector in parents
- Targets objects flagged as isValuable
- Applies highlight only while isIndestructible is true
- Uses MaterialPropertyBlock to avoid modifying shared materials
- If glow is enabled, instantiates renderer materials once to enable emission keyword safely, then restores on unhighlight
Configuration
Config file location:
- BepInEx/config/REPOJP.ValuableInvulnHighlighter.cfg
Options:
- General.EnableMod
- Enable or disable the mod
- General.Radius
- Scan radius around the local player (default 15)
- General.ScanIntervalSeconds
- Scan interval in seconds (default 0.10)
- Glow.EnableGlow
- Enable emission glow (default true)
- Glow.GlowIntensity
- Emission intensity multiplier (default 0.35)
Installation
- Install BepInEx 5.4.x for R.E.P.O.
- Place ValuableInvulnHighlighter.dll into:
- BepInEx/plugins/
- Launch the game once to generate the config file
- Edit config as needed
Notes
- This is a client-side visual mod
- Emission glow requires the material shader to support _EmissionColor
- When glow is enabled, the mod may create instanced materials for affected renderers to ensure emission is visible, and will restore them when no longer highlighted
ValuableInvulnHighlighter
近距離の無敵時間中の貴重品を赤色表示させる
機能
- ローカルプレイヤー周囲の指定半徑內の貴重品を検知
- 貴重品が無敵狀態(破壊不能)の間だけ見た目を純赤に変更
- 任意で赤い発光を付與(シェーダーが _EmissionColor に対応している必要あり)
- 見た目のみの変更(ゲームプレイには影響しない)
動作概要
- 指定間隔でローカルプレイヤー周囲のコライダーを走査
- 親方向に PhysGrabObjectImpactDetector を探索
- isValuable が true のものだけ対象化
- isIndestructible が true の間だけハイライト適用
- sharedMaterial を変更せず MaterialPropertyBlock で色を上書き
- 発光有効時は emission を確実に見せるためにレンダラーのマテリアルを一度だけインスタンス化し、解除時に復元
設定
Configファイル出力先:
- BepInEx/config/REPOJP.ValuableInvulnHighlighter.cfg
設定項目:
- General.EnableMod
- MODの有効/無効
- General.Radius
- 走査半徑(既定15)
- General.ScanIntervalSeconds
- 走査間隔秒(既定0.10)
- Glow.EnableGlow
- 発光の有効/無効(既定true)
- Glow.GlowIntensity
- 発光強度倍率(既定0.35)
導入方法
- R.E.P.O.向け BepInEx 5.4.x を導入
- ValuableInvulnHighlighter.dll を以下へ配置
- BepInEx/plugins/
- ゲーム起動でConfig生成
- 必要に応じてConfigを編集
注意
- クライアント側の見た目変更MOD
- 発光は _EmissionColor 対応シェーダーが前提
- 発光有効時は対象レンダラーの emission を確実に反映するためにマテリアルをインスタンス化する場合があり、解除時に復元します
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
前置依賴
下面這些內容需要先安裝,否則該模組不會生效:
BepInEx-BepInExPack