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

GuidedCompany

Auto NavMesh pulse trail to facility entrance triggered by RMB scan. Works as long as you have not entered the facility yet.

Date uploaded a month ago
Version 1.0.0
Download link Kham-GuidedCompany-1.0.0.zip
Downloads 23
Dependency string Kham-GuidedCompany-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

GuidedCompany

By Khameli0n

An ultra-optimized, immersive pathfinding mod for Lethal Company that shoots an orange navigational pulse trail along the ground to the facility entrance when using the scanner.


⚡ Features

  • Integrated RMB Scan: Triggered naturally by pressing the Right Mouse Button scan. Whenever you ping your scanner outside, an orange energy trail pulses along the ground towards the facility entrance.
  • One-Time Facility Discovery:
    • Works outside as often as needed before entering the facility.
    • The moment you step inside the facility (isInsideFactory), the facility entrance is marked found.
    • Inside the Complex: The trail will NOT show, nor will it show the exit.
    • After Exiting: Once you exit the facility back outside, the trail will NOT show again.
    • Route Reload: Guidance automatically resets when you land on a new moon or start a new day.
  • NavMesh-Based Precision: Paths are computed using Unity's baked NavMesh on each moon, guiding you naturally around hills, ravines, and obstacles.
  • Sonar Pulse Visual: A high-visibility orange trail (#FF6A00) that radiates forward from your feet and smoothly dissolves over ~2.5 seconds (matching the scanner duration).
  • Ultra-Optimized Performance: Zero CPU overhead when idle (lineRenderer.enabled = false), zero garbage collection heap allocations, and instant early-out once the facility has been entered.

🎮 How to Use

  1. Land on any moon (Experimentation, Assurance, Vow, March, Rend, Dine, Titan, Offense, Adamance, Embrion, Artifice, or modded moons).
  2. Step out of the ship and press RMB (Right Mouse Button) to scan.
  3. Follow the pulsating orange trail leading to the main entrance!
  4. Once you enter the facility, guidance is completed for that expedition.

⚙️ Configuration

A configuration file is generated at BepInEx/config/com.khameli0n.guidedcompany.cfg after the first launch.

Setting Default Description
TrailColorHex #FF6A00 Hex color code for the pulse trail (high-visibility hazardous orange).
PulseDuration 2.5 Duration of the pulse animation in seconds.
PulseSpeed 45.0 Speed at which the pulse wave travels along the path (m/s).
TrailWidth 0.24 Width of the line in meters.
HeightOffset 0.25 Height above terrain to prevent clipping.
TargetMode MainEntrance Target selection: MainEntrance or NearestEntrance.

📦 Compatibility

  • Fully client-side (safe to use in multiplayer; only affects your local scanner).
  • Compatible with all vanilla moons and modded custom moons with NavMesh.
  • Requires BepInEx 5.