Lethal Company
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
8 hours ago
Downloads
12
Size
23KB
Dependency string
Solon-Terminal_that_can_kill-1.0.9
Terminal that can kill

TERMINAL THAT CAN KILL

Lethal Company BepInEx Version License

Language / Язык: English · Русский

TERMINAL THAT CAN KILL

Author: Solo00n

The ship and facility doors slam shut on anyone in the doorway, and the terminal stops disabling traps — it detonates mines and drives turrets berserk instead.

WHAT IT DOES

  • Deadly ship door — the hangar door crushes any player or monster standing in the opening when it closes (on the surface only).
  • Deadly facility doors — the big terminal-code security doors crush whoever is in the opening when they slam shut.
  • Remote mine detonation — entering a mine code blows it up instead of disabling it; a critical error chain-detonates nearby mines.
  • Turret rampage — entering a turret code sends it berserk (spins and fires at everyone); a critical error extends the rampage.
  • Turret head flip — after leaving berserk a turret smoothly turns its head 180° and rests facing the opposite way.
  • Barber-style death — door kills reuse the Barber (Clay Surgeon) death: the body is launched up and ragdolls.
  • Fully configurable — every mechanic can be tuned or turned off.

HOW IT WORKS

  • The kill zone is a thin oriented slab sitting in the doorway plane, not a proximity sphere — only someone standing in the opening is caught.
  • Ship door: detected via doorPower < 1 plus the ShipDoorClose animator state; the doorway is at a fixed world position (the ship never moves).
  • Facility doors: detected on the SetDoorOpen open→closed transition and processed frame by frame.
  • Traps use the vanilla synced RPCs (ExplodeMineServerRpc, EnterBerserkModeServerRpc) — no custom network objects.

MULTIPLAYER (HOST-AUTHORITATIVE)

Both the host and all clients must install the mod. It changes shared game rules, not one player's private state.

Players: each client only kills its own local player; KillPlayer syncs that death to everyone, so exactly one authoritative kill happens.
Monsters: only the host iterates and kills enemies (the host owns enemy AI), which syncs to clients.
Traps: mine and turret effects fire through the game's own server RPCs, so all clients see the same result.

REQUIREMENTS

  • BepInEx 5.4.21+ (BepInEx-BepInExPack-5.4.2100)
  • Lethal Company V81

INSTALLATION

  • Mod manager (r2modman / Thunderstore Mod Manager): search for the mod and click Install.
  • Manual: install the BepInEx pack, then drop Solon.TerminalThatCanKill.dll into BepInEx/plugins/.

CONFIGURATION

File: BepInEx/config/Solon.TerminalThatCanKill.cfg (created on first launch).

KeyDefaultDescription
EnabledtrueMaster switch for the deadly-doors mechanic.
KillPlayerstrueKill players caught in a closing doorway.
KillMonstersfalseKill ship-capable monsters caught in a closing doorway.
AffectedDoorsBothShipDoor / TerminalDoors / Both.
SafeZoneSeconds5Grace period after landing during which doors do not kill.
DamageModeInstantKillInstantKill or DamageOverTime.
EnableRemoteControltrueDetonate/rampage traps instead of disabling them.
MineErrorChance0.15Chance a mine command misfires into a chain blast.
TurretErrorChance0.15Chance a turret command misfires into a sustained rampage.
TurretFlipOnBerserkExittrueTurret head turns 180° after leaving berserk.
Advanced tuning (zone size DoorwayThickness/Width/Height, close timings, PlayerDeathAnimationId, chain radius, rampage duration) lives in the Doors.Advanced and RemoteControl.Advanced sections of the config.

COMPATIBILITY

  • Works on vanilla and modded moons (LethalLevelLoader) — doors are found dynamically, no hard-coded scenes.
  • No custom network objects; relies on vanilla RPCs — low conflict risk with other terminal mods.
  • If another mod also patches the terminal code function, set EnableRemoteControl = false to avoid overlap.

BUILD

dotnet build LethalDoors.csproj -c Release

Output: bin/Release/Solon.TerminalThatCanKill.dll. Game assemblies are referenced via the LethalCompany.GameLibs.Steam NuGet package as compile-only (PrivateAssets="all") — no game files are distributed.

CREDITS

  • Solo00n — author.
  • Built on BepInEx and HarmonyX.
  • Inspiration: Lethal Doors by saint_kendrick (ship-door approach) and RemoteMineDetonation by jacksonb-cs (terminal detonation idea).
  • Licensed under MIT.

TERMINAL THAT CAN KILL

Автор: Solo00n

Двери корабля и комплекса захлопываются насмерть на том, кто стоит в проёме, а терминал больше не отключает ловушки — вместо этого он детонирует мины и сводит турели с ума.

ЧТО ДЕЛАЕТ МОД

  • Смертельная дверь корабля — рампа раздавливает игрока или монстра в проёме при закрытии (только на поверхности).
  • Смертельные двери комплекса — большие двери с кодом раздавливают того, кто стоит в проёме при захлопывании.
  • Удалённая детонация мин — ввод кода мины взрывает её вместо отключения; при критической ошибке детонируют соседние мины.
  • Бешенство турели — ввод кода турели вводит её в берсерк (крутится и стреляет по всем); ошибка продлевает раж.
  • Разворот головы турели — после берсерка турель плавно поворачивает голову на 180° и остаётся смотреть в другую сторону.
  • Смерть как у Barber — смерть от двери повторяет смерть от Barber (Clay Surgeon): тело подбрасывает вверх.
  • Полная настройка — любую механику можно подстроить или выключить.

КАК ЭТО РАБОТАЕТ

  • Зона поражения — тонкая ориентированная «плита» в плоскости проёма, а не сфера: убивает только того, кто стоит в проёме.
  • Дверь корабля: определяется по doorPower < 1 плюс состоянию аниматора ShipDoorClose; проём в фиксированной точке мира (корабль не двигается).
  • Двери комплекса: ловятся на переходе SetDoorOpen открыта→закрыта и обрабатываются покадрово.
  • Ловушки используют ванильные синхронизированные RPC (ExplodeMineServerRpc, EnterBerserkModeServerRpc) — без своих сетевых объектов.

МУЛЬТИПЛЕЕР (HOST-AUTHORITATIVE)

Мод должен стоять и у хоста, и у всех клиентов. Он меняет общие правила игры, а не приватное состояние одного игрока.

Игроки: каждый клиент убивает только своего локального игрока; KillPlayer синхронизирует смерть на всех — ровно одно авторитетное убийство.
Монстры: перебирает и убивает врагов только хост (владеет ИИ), что синхронизируется клиентам.
Ловушки: эффекты мин и турелей идут через серверные RPC самой игры, поэтому итог одинаков у всех.

ЗАВИСИМОСТИ

  • BepInEx 5.4.21+ (BepInEx-BepInExPack-5.4.2100)
  • Lethal Company V81

УСТАНОВКА

  • Через менеджер (r2modman / Thunderstore Mod Manager): найти мод и нажать Install.
  • Вручную: установить BepInEx-пак, затем положить Solon.TerminalThatCanKill.dll в BepInEx/plugins/.

НАСТРОЙКА

Файл: BepInEx/config/Solon.TerminalThatCanKill.cfg (создаётся при первом запуске).

КлючПо умолчаниюОписание
EnabledtrueГлавный выключатель механики смертельных дверей.
KillPlayerstrueУбивать игроков в закрывающемся проёме.
KillMonstersfalseУбивать монстров (способных войти в корабль) в проёме.
AffectedDoorsBothShipDoor / TerminalDoors / Both.
SafeZoneSeconds5Безопасный период после посадки, пока двери не убивают.
DamageModeInstantKillInstantKill или DamageOverTime.
EnableRemoteControltrueДетонация/раж ловушек вместо отключения.
MineErrorChance0.15Шанс сбоя команды мины (цепной взрыв).
TurretErrorChance0.15Шанс сбоя команды турели (продлённый раж).
TurretFlipOnBerserkExittrueРазворот головы турели на 180° после берсерка.
Тонкая настройка (размеры зоны DoorwayThickness/Width/Height, тайминги закрытия, PlayerDeathAnimationId, радиус цепи, длительность ража) — в разделах Doors.Advanced и RemoteControl.Advanced конфига.

СОВМЕСТИМОСТЬ

  • Работает на ванильных и модовых лунах (LethalLevelLoader) — двери находятся динамически, без хардкода сцен.
  • Не создаёт своих сетевых объектов, опирается на ванильные RPC — низкий риск конфликтов.
  • Если другой мод тоже патчит функцию кода терминала — поставьте EnableRemoteControl = false.

СБОРКА

dotnet build LethalDoors.csproj -c Release

Результат: bin/Release/Solon.TerminalThatCanKill.dll. Сборки игры подключены через NuGet-пакет LethalCompany.GameLibs.Steam только для компиляции (PrivateAssets="all") — файлы игры не распространяются.

БЛАГОДАРНОСТИ

  • Solo00n — автор.
  • Построено на BepInEx и HarmonyX.
  • Идеи: Lethal Doors от saint_kendrick (подход к двери корабля) и RemoteMineDetonation от jacksonb-cs (детонация из терминала).
  • Лицензия MIT.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.