erockuli-TurnOffLandmines icon

TurnOffLandmines

Manual landmine disarming with host-synchronized successful disarms, a configurable 1.0–1.5m interaction radius, escalating failure chance, spatial warning beep, and cached low-frequency discovery.

Last updated 3 hours ago
Total downloads 10
Total rating 1 
Categories Hazards Tweaks & Quality Of Life AI Generated
Dependency string erockuli-TurnOffLandmines-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2305

README

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.