Aueser-Nutcracker_Fire_Warning icon

Nutcracker Fire Warning

Client-side fire timing warnings for Nutcracker enemies.

Last updated 4 days ago
Total downloads 517
Total rating 0 
Categories Mods BepInEx Client-side Tweaks & Quality Of Life AI Generated
Dependency string Aueser-Nutcracker_Fire_Warning-1.0.6
Dependants 1 other package depends on this package

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

Nutcracker Fire Warning

Nutcracker Fire Warning is a client-side BepInEx plugin for Lethal Company that adds readable shotgun timing warnings for Nutcracker enemies.

The plugin does not change enemy behavior, shotgun damage, networking, or game balance. It only displays local visual warnings based on the Nutcracker's current combat state and the game's firing timing.

Features

  • World-space vertical warning bar beside each Nutcracker.
  • Clear countdown while a Nutcracker is aiming.
  • Red-white pulse during the predicted fire window.
  • Recommended Nutcracker model state tint: white while chasing, red during the final fire window.
  • Optional extra fire-window overlay for red-white pulse, clone shell, or screen-space fallback.
  • Optional screen-space fallback rectangle.
  • Yellow pre-aim danger indicator when the local player is in a risky shotgun line.
  • Configurable warning distance, fire-window timing, pulse strength, and scan intervals.
  • English config descriptions by default, with automatic Simplified Chinese descriptions when LC Chinese Project is detected.

Fire Timing

The warning follows the Nutcracker's in-game shotgun timing:

  • 0.5s when the Nutcracker has enemyHP <= 1
  • 1.3s when the held shotgun has one shell loaded
  • 1.75s otherwise

The final fire-window warning activates shortly before the predicted shot. This window is configurable.

Configuration

The config file is created after first launch:

BepInEx/config/aueser.lethalcompany.nutcrackerfirewarning.cfg

Main options:

  • EnableMod: Enables Nutcracker Fire Warning as a whole. When disabled, warning UI, model warnings, and fallback scans stop running.
  • EnableUiFireWindow: Enables the world-space side warning bar, including countdown, fire-window pulse, reload bar, and pre-aim danger bar.
  • EnableModelStateTint: Enables the recommended model state warning. Default: true. The model turns white while chasing a target and red during the final fire window.
  • EnableModelOutlineFireWindow: Enables an extra fire-window-only model overlay. Default: false. Use it only when you also want the old red-white pulse, clone shell, or screen-space fallback.
  • ModelOutlineMode: Selects model warning mode. MeshSilhouette uses model-based warning behavior; ScreenBox uses a screen-space fallback rectangle.
  • ModelPulseMode: Selects SourcePulse, CloneShell, or Both.
  • ModelPulseIntensity: Controls red-white pulse emission intensity.
  • ModelPulseAlpha: Controls pulse color alpha.
  • ModelChaseTintAlpha: Controls white chase-state model tint alpha.
  • ModelChaseTintIntensity: Controls white chase-state model tint emission intensity.
  • ModelFireWindowTintAlpha: Controls red fire-window model tint alpha.
  • ModelFireWindowTintIntensity: Controls red fire-window model tint emission intensity.
  • ModelWarningMaxDistance: Limits model warnings by distance. Set to 0 or lower to disable distance filtering.
  • ModelWarningRequireCameraVisible: Requires the Nutcracker to be inside the local camera view before showing the model warning.
  • ModelOutlineWidth: Controls ScreenBox line width and CloneShell expansion width.
  • MeshOutlineScale: Extra scale multiplier for CloneShell mode.
  • FireWindowSeconds: Seconds before the predicted shot when final warnings activate.
  • PreAimMaxDistance: Maximum distance for the yellow pre-aim danger bar. Set to 0 or lower to disable the pre-aim bar.
  • MonitorActiveScanInterval: Fallback scan interval while Nutcrackers are present. Default: 0.5.
  • MonitorIdleScanInterval: Fallback scan interval while no Nutcrackers are present. Default: 2.0.
  • EnableDebugLogs: Enables diagnostic logging.
  • DumpModelAudit: Logs Nutcracker renderer and mesh information when model warning data is built.

Debug options are intended for troubleshooting and should normally remain disabled during regular play.

Config Language

Config entry names remain stable in English to avoid duplicate sections after upgrades. Descriptions are written in English by default.

When LC Chinese Project is installed, new config files and newly added config entries use Simplified Chinese descriptions. Detection uses the stable plugin GUID cn.codex.v81testchn or the installed V81TestChn.dll path and does not depend on the localization mod version number.

Installation

Install through a mod manager, or place the plugin folder under:

BepInEx/plugins/

Expected manual install layout:

BepInEx/plugins/NutcrackerFireWarning/NutcrackerFireWarning.dll

Compatibility Notes

This plugin is client-side and visual-only. Each player who wants the warning needs to install it locally.

SourcePulse is the recommended model warning mode. Some Unity game meshes are not readable at runtime, so shell-based mesh outlines may be less reliable on unmodified game assets.

License

Licensed under the MIT License.