Lethal Company
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
29
Likes
1
Size
112KB
Dependants

Turn Off Landmines 1.0.0

Maintainer: erockuli
Game: Lethal Company
Loader: BepInEx 5

Approach a live landmine and hold Interact for 0.45 seconds to attempt disarming it. A successful roll requests a host-authoritative disarm; the host validates the requester, active mine and range, applies the state change once, and broadcasts the result to all clients.

Features

  • Manual landmine disarming from any side.
  • Default interaction radius 1.0 metre, configurable from 0.5 to 1.5 metres.
  • Failed attempts display FAILURE, RUN., play a rapid spatial warning beep for 0.7 seconds and then use the vanilla detonation path.
  • Failure chance defaults to 15%; each successful disarm raises the next attempt's chance by 10 percentage points by default, capped at 100%.
  • Successful-disarm results and success-scaling progress are applied at most once per networked mine.
  • Targeted spawn compatibility repair handles explicit MapHazardSpawnType<number> markers only when the active level's vanilla spawn table already specifies a positive landmine spawn curve. It does not add spawn-table entries or instantiate hazards directly.

Configuration

  • General/Enabled: master toggle.
  • Interaction/Radius: default 1.0, valid range 0.5–1.5 metres. Set 1.5 for the longer reach; host setting controls accepted range.
  • Failure/Enabled: enable failed disarm outcomes.
  • Failure/ChancePercent: base failure chance (default 15%).
  • Failure Scaling/Enabled: enable success-based scaling.
  • Failure Scaling/IncreasePercentPerSuccess: percentage-point increase per successful disarm (default 10).

Multiplayer note

Install the same version on host and all clients. Successful state changes are host-synchronized. The random failure roll remains client-side in this build, so failure-roll authority is not fully host authoritative. For consistent prompts, use the same radius config on everyone; the host's configured radius decides whether a successful disarm request is accepted. Existing config values are preserved when upgrading, so manually change Interaction/Radius to 1 if an earlier profile saved 1.5.

Performance

The plugin has no per-frame interaction polling loop. Local proximity/interaction state refreshes every 0.20 seconds, and mine discovery is cached for 1.25 seconds. Spawn compatibility checks are performed on the game's map-object spawn pass rather than through a continuous scene scan.

Dependency

  • BepInEx-BepInExPack-5.4.2305 (declared in manifest.json). Game/Unity assemblies and HarmonyX are supplied by Lethal Company and BepInEx.

Credits and disclosure

Plugin code and packaging are maintained by erockuli. This project was developed with AI assistance.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.