ShipTurrets

v1.0.6·Updated 2024-08-28

This is the Ship Turrets mod! (V60 Compatible) Adds a front and rear friendly turret to the player ship that quickly neutralises nearby enemies.

About this mod Author’s original text

Lethal Company Ship Turrets (V60 Compatible)

This is the source-code for the Ship Turrets mod for Lethal Company the game. This mode works using Harmony for adding patches/plugins to existing Lethal Company.Net assembly code.

Setup

Follow the guide at the Lethal Company Wiki for instructions on setting this projetc up and building it.

Dependencies

  • TerminalAPI

File Structure

├── NuGet.Config

├── ShipTurrets.csproj

├── Plugin.cs

└── Patches

├── RoundManagerPatch.cs

└── TurretPatch.cs

Bugs

  • "CalculatePolygonPath" can only be called on an active agent that has been placed on a NavMesh.

Future Roadmap

  • Buy turrets in the ship terminal.
  • More ship Upgrades.
  • Balancing with features such as:
  • Turret Ammo
  • Turret cooldown periods.

License

ShipTurrets is distributed under the MIT License.

Acknowledgments

Shout out to GoldenKitten for their work on the FairAI mod and sharing their open-source code on their turret AI for attacking enemies in Lethal Company.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

BepInEx-BepInExPackNotAtomicBomb-TerminalApi

File & checksum

Filename
ShipTurrets-1.0.6.zip
File size
124.3 KiB