You are viewing a potentially older version of this package. View all versions.
Aueser-InfectionBar-1.0.0 icon

InfectionBar

Displays Cadaver Growth infection progress as a standalone HUD element with vanilla HUD styling and optional EladsHUD interoperability.

Date uploaded 3 months ago
Version 1.0.0
Download link Aueser-InfectionBar-1.0.0.zip
Downloads 29
Dependency string Aueser-InfectionBar-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

Infection Bar

Infection Bar adds a dedicated HUD display for Cadaver Growth infection progress in Lethal Company.

The mod is intended to work as a standalone BepInEx plugin. It can also adjust its presentation when EladsHUD or a compatible fork or variant is detected, without bundling or depending on those projects.

Features

  • Displays Cadaver Growth infection progress as a percentage.
  • Supports an always-visible mode for monitoring infection state at 0%.
  • Provides automatic HUD style selection.
  • Uses a compact current-style bar when a compatible HUD environment is detected.
  • Uses a vanilla stamina-ring style when running with the base game HUD.
  • Fades during terminal use and follows global HUD visibility behavior.
  • Supports automatic Chinese/English label selection, with manual override available.
  • Includes debug logging and debug-only live layout refresh options for troubleshooting.

HUD Style Modes

HudStyleMode controls presentation:

  • Auto: recommended. Uses compact current-style presentation with EladsHUD-compatible environments and vanilla stamina-ring presentation otherwise.
  • CurrentStyle: forces the compact bar presentation.
  • VanillaStaminaRingStyle: forces the vanilla stamina-ring presentation.

EladsHUD Interoperability

EladsHUD is supported only as an optional runtime interoperability target.

  • Infection Bar does not require EladsHUD.
  • Infection Bar does not include EladsHUD source code or assets.
  • Infection Bar does not include third-party prefabs, images, shaders, materials, fonts, or AssetBundles.
  • Infection Bar is not an EladsHUD module and is not packaged with EladsHUD.
  • Compatibility is handled through BepInEx plugin detection and this mod's own rendering logic.

EladsHUD is mentioned only to describe interoperability behavior. This mod is not affiliated with, endorsed by, maintained by, or packaged with EladsHUD or its forks.

Configuration

The configuration file is generated after first launch:

BepInEx/config/InfectionBar.cfg

Common options:

  • InfectionBarEnabled: enables or disables the infection display.
  • InfectionBarAlwaysVisible: keeps the display visible even at 0%.
  • HudStyleMode: selects automatic, compact, or vanilla HUD style.
  • LabelLanguageMode: selects automatic, English, or Chinese labels.
  • TerminalFadeAlpha: controls terminal fade alpha.
  • VanillaRingScale, VanillaRingOffsetX, VanillaRingOffsetY: tune vanilla HUD mode placement.
  • VanillaWarningTextOffsetEnabled, VanillaWarningTextOffsetX, VanillaWarningTextOffsetY: move original warning text in vanilla HUD mode to reduce overlap.
  • DebugLogging: enables diagnostic logging.
  • DebugVanillaHudLiveLayoutRefresh: debug-only high-frequency layout refresh for visual validation.

Installation

Install through a Thunderstore-compatible mod manager, or manually place the DLL at:

BepInEx/plugins/InfectionBar/InfectionBar.dll

Notes

  • This is an unofficial community mod.
  • Lethal Company and its assets belong to their respective owners.
  • This package does not redistribute game assets or third-party HUD mod assets.

CHANGELOG

Changelog

1.1.2

Performance

  • Reduced frame-time cost while the HUD is enabled, especially in sessions where Cadaver Growth infection data is not currently available.
  • Reduced repeated HUD style checks in large modpacks.
  • Reduced unnecessary per-frame UI updates for unchanged infection text and original HUD visibility state.

HUD Behavior

  • Improved terminal fade handling in vanilla HUD mode.
  • Matched the base HUD intro visibility behavior more closely in both compact and vanilla HUD styles.
  • Kept existing HUD styles, configuration options, and multiplayer compatibility behavior unchanged.

1.1.1

Packaging

  • Removed the debug symbol file from the Thunderstore package to keep the release artifact minimal.

Documentation

  • Clarified multiplayer installation guidance: when a lobby should have the HUD active, install Infection Bar on the host and on every connected client.

1.1.0

Multiplayer Compatibility

  • Infection Bar now requires the host to have the mod installed before the HUD becomes active.
  • Clients also need Infection Bar installed for the HUD to show.
  • When the host is not running Infection Bar, installed clients keep the connection and hide the HUD.
  • When any connected client is missing Infection Bar, the host and installed clients hide the HUD for that lobby state.
  • Newly joined clients receive a short grace period before compatibility is evaluated.

Stability

  • The mod does not block players from joining.
  • The mod does not kick players.
  • The mod does not change lobby connectivity, movement, or gameplay.
  • Infection data is no longer read while the HUD is disabled by compatibility mode.

Documentation

  • Updated the README to explain host-required compatibility mode.
  • Clarified EladsHUD interoperability and installation expectations.

1.0.0

  • Initial Thunderstore package.
  • Added a Cadaver Growth infection HUD display.
  • Added automatic HUD style selection.
  • Added compact current-style presentation for compatible HUD environments.
  • Added vanilla stamina-ring presentation for base game HUD use.
  • Added configurable always-visible behavior.
  • Added terminal fade and global HUD visibility handling.
  • Added automatic Chinese/English label selection.
  • Added curved vanilla HUD text layout for infection and carried weight labels.
  • Added vanilla warning text offset controls to reduce overlap with the infection ring.
  • Added debug logging and debug-only live layout refresh options for troubleshooting.