Player Status Bars

版本 v0.2.1·更新於 2026-06-10

Client-side world-space health and infection status bars for other players.

模組介紹 作者原文

Player Status Bars

Player Status Bars is a BepInEx mod for Lethal Company. It displays compact world-space status bars above other players, showing health and Cadaver Growth infection state with a low-overhead runtime model.

The mod can run from a single client using locally readable game state. When the host and clients install the same version, it also uses compact status synchronization to improve infection display consistency for observers.

Features

  • Displays health and infection bars above other players.
  • Excludes the local player.
  • Uses a world-space UI that follows players and faces the active camera.
  • Supports gameplay, spectator, and freecam visibility references.
  • Hides bars by distance and, by default, while the ship is still in orbit.
  • Tracks connected player slots across late joins, deaths, revives, and round transitions.
  • Reads Cadaver Growth infection values directly from CadaverGrowthAI.playerInfections.
  • Synchronizes client-local Cadaver Growth infection state through compact same-version status messages when multiple players have the mod installed.
  • Shows infection progress from 1% to 99% with one-percent display stepping.
  • Displays numeric health, smooth one-point health movement, and red low-health state.
  • Predicts vanilla low-health recovery toward 20 HP when remote health values are stale.
  • Includes a compatibility option for 20 HP critical-state synchronization.
  • Uses direct game types, sliced player refresh, cached infection lookup, pooled bars, dirty UI updates, and cached labels to keep runtime overhead low.

Requirements

  • BepInExPack
  • Cadaver Growth is optional. Health display remains available when Cadaver Growth is not installed.

Installation

Install through a -compatible mod manager, or place the package contents into the game profile so that the DLL is located at:

BepInEx/plugins/PlayerStatusBars/PlayerStatusBars.dll

Configuration

Settings are available through the generated BepInEx configuration file:

BepInEx/config/playerstatusbars.cfg

Configurable options include:

  • Enable or disable the mod.
  • Maximum display distance.
  • Hide status bars while the ship is in orbit.
  • Head offset, UI scale, and per-bar Y offsets.
  • Health and infection text visibility.
  • Health, infection, and background color presets.
  • Infection bar display mode.
  • Critical health sync mode:
  • VanillaPrediction keeps the default vanilla-focused fallback for stale 20 HP critical-state synchronization.
  • TrustRawHealthAt20 trusts the reported 20 HP value for modded active-bleed or custom-injury behavior.
  • Debug logging for status bar creation, filtering, visibility, and camera diagnostics.

Client-side Behavior

When only one player installs the mod, display accuracy is limited to the game state that client can read. When the host and clients install the same version, the mod can exchange compact status messages to improve infection display consistency for observers.

Health display combines synced raw health, synced critical or bleeding state, damage timestamp changes, and conservative vanilla recovery prediction. Infection display depends on Cadaver Growth's playerInfections data and same-version synchronization when available.

License

Player Status Bars is released under the GNU General Public License v3.0. See LICENSE for the full license text.

Third-party Notices

Player Status Bars does not bundle, redistribute, or require MoreCompany or LTC Lobby Control.

  • MoreCompany is an independent MIT-licensed project. Its player-slot expansion behavior was reviewed for compatibility hardening; this project does not include MoreCompany code.
  • LTC Lobby Control is an independent MIT-licensed project. Its late-join behavior was reviewed for compatibility hardening; this project does not include LTC Lobby Control code.

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

BepInEx-BepInExPack

檔案與校驗

檔案名稱
Player_Status_Bars-0.2.1.zip
檔案大小
160.5 KiB