EnemyHealthBarMod

版本 v0.1.0·更新於 2025-12-18

Displays customizable health bars above enemies with smooth animations and performance optimizations.

模組介紹 作者原文

Enemy Health Bar Mod

Displays customizable health bars above enemies in Megabonk.

Features

  • Health Bars: Health bars above enemies, optionally with numbers
  • Damage Flash Animation: White flash effect when enemies take damage
  • Death Animation: Red explosion effect when enemies die
  • Distance Fading: Health bars fade based on distance to reduce clutter
  • Performance Optimized: Uses Unity's transform hierarchy for efficient positioning
  • Highly Customizable: Adjust colors, size, position, and behavior

Configuration

All settings can be adjusted via the config file.

General

ShowHealthBars (bool)

Enable/disable health bars

Options: true, false

Default: true

ShowHealthText (bool)

Show HP numbers on bars

Options: true, false

Default: true

Appearance

BarWidth (float)

Width of health bar in pixels

Range: 50 - 400

Default: 200

BarHeight (float)

Height of health bar in pixels

Range: 5 - 50

Default: 20

BarYOffset (float)

Vertical offset above enemy

Range: 0.5 - 5.0

Default: 1.75

UseColorGradient (bool)

Color bars by health percentage

Options: true, false

Default: true

FullHealthColor (string)

Color at full health (hex RRGGBBAA)

Default: 14E64CFF (green)

MidHealthColor (string)

Color at mid health (hex RRGGBBAA)

Default: FFD90CFF (yellow)

LowHealthColor (string)

Color at low health (hex RRGGBBAA)

Default: FF1F1FFF (red)

BackgroundColor (string)

Bar background color (hex RRGGBBAA)

Default: 1A1A1ACC (dark gray)

TextSize (float)

Font size for HP numbers

Range: 12 - 48

Default: 24

EnableDeathAnimation (bool)

Red explosion when enemies die

Options: true, false

Default: true

ShowDamageFlash (bool)

White flash when damaged

Options: true, false

Default: true

DamageFlashLingerMs (float)

Flash duration in milliseconds

Range: 50 - 500

Default: 125

Performance

FadeStartDistance (float)

Distance where fade begins (meters)

Range: 10 - 100

Default: 30

FadeEndDistance (float)

Distance where bars disappear (meters)

Range: 20 - 150

Default: 50

MaxBarsPerFrame (int)

Max bars to create per frame

Range: 1 - 20

Default: 5

UpdateFrequencyFar (int)

Update every N frames for distant bars

Range: 1 - 10

Default: 3

SkipUpdateDistance (float)

Distance beyond which bars stop updating (meters)

Range: 50 - 200

Default: 100

Debug

EnableDebugLogs (bool)

Enable detailed logging

Options: true, false

Default: false

Installation

  • Install BepInEx IL2CPP
  • Extract this mod to BepInEx/plugins

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

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

BepInEx-BepInExPack_IL2CPP

檔案與校驗

檔案名稱
EnemyHealthBarMod-0.1.0.zip
檔案大小
39.3 KiB