Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
InfectionBar
Displays Cadaver Growth infection progress as a compatibility-aware HUD element when the host and connected clients run Infection Bar.
| Date uploaded | 3 months ago |
| Version | 1.1.2 |
| Download link | Aueser-InfectionBar-1.1.2.zip |
| Downloads | 3348 |
| Dependency string | Aueser-InfectionBar-1.1.2 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Infection Bar
Infection Bar adds a dedicated HUD display for Cadaver Growth infection progress in Lethal Company.
The mod shows infection progress when the lobby is compatible and keeps the original connection flow intact. It does not block players from joining, does not kick players, and does not change gameplay.
Multiplayer Requirements
Infection Bar uses host-required compatibility mode.
- Install Infection Bar on the host.
- Install Infection Bar on every connected client when the lobby should have the HUD active.
- In lobbies hosted without Infection Bar, installed clients remain connected and the HUD stays hidden automatically.
- If any connected player is missing Infection Bar, the host and installed clients hide the HUD until the lobby is compatible again.
- Players without the mod can still join the lobby.
- Mid-session joins are allowed. The mod waits briefly before deciding whether a newly joined client has Infection Bar installed.
This behavior keeps lobby connectivity stable while avoiding a HUD advantage when the full lobby is not running the mod.
Features
- Displays Cadaver Growth infection progress as a percentage.
- Supports an always-visible mode for checking the HUD at 0%.
- Automatically chooses a compatible HUD presentation.
- Uses a compact current-style bar in compatible HUD environments.
- Uses a vanilla stamina-ring style with the base game HUD.
- Preserves terminal fade behavior and follows global HUD visibility where appropriate.
- Reuses the base HUD intro visibility behavior so the infection display blends into lobby startup.
- Reduces scene-scan overhead when Cadaver Growth infection data is not available.
- Supports automatic Chinese/English label selection, with manual override available.
- Includes diagnostic logging options for troubleshooting.
HUD Style Modes
HudStyleMode controls presentation:
Auto: recommended. Uses compact current-style presentation with compatible HUD environments and vanilla stamina-ring presentation otherwise.CurrentStyle: forces the compact bar presentation.VanillaStaminaRingStyle: forces the vanilla stamina-ring presentation.
Installation
Install through a Thunderstore-compatible mod manager, or manually place the DLL at:
BepInEx/plugins/InfectionBar/InfectionBar.dll
For multiplayer use, install the mod on the host and on every connected client when the lobby should have the HUD active.
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.
EladsHUD Interoperability
EladsHUD support is optional.
- Infection Bar does not require EladsHUD.
- Infection Bar is not packaged with EladsHUD.
- Infection Bar does not include EladsHUD source code, prefabs, images, shaders, materials, fonts, or asset bundles.
- Compatibility is handled by detecting the runtime HUD environment and rendering Infection Bar through this mod's own UI code.
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.
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.