Zaliteam-Simultaneous_Terminal_Usage icon

Simultaneous Terminal Usage

Use the ship terminal at the same time as other players. Lets multiple crewmates access the vanilla terminal simultaneously without kicking each other off.

Last updated 17 minutes ago
Total downloads 1
Total rating 0 
Categories Mods BepInEx Server-side Tweaks & Quality Of Life AI Generated
Dependency string Zaliteam-Simultaneous_Terminal_Usage-1.0.0
Dependants 0 other packages depend on this package

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

SimultaneousTerminalUsage — Shared Simultaneous Ship Terminal

Use the ship terminal at the same time as your crewmates.
No more waiting in line or accidentally kicking your friend off the computer when checking the store, moons, radar, or bestiary.


What It Does

In vanilla Lethal Company, only one player can sit at the ship's terminal at a time—the prompt disappears while someone is using it, and forcing an entry kicks the current user off.

MultiTerminal removes that single-user lock so multiple players can open and use the vanilla terminal simultaneously:

  • Independent screens: Each player gets their own local terminal screen, input field, and command history—typing or navigating pages won't overwrite anyone else's view.
  • Synced ship state: Credits, dropship orders, moon routing, ship upgrades, and signal translator messages still sync through the host as normal.
  • Smart terminal state: The terminal light stays on and the terminal stays locked against moving (Build Mode) until the last player exits (or disconnects/dies).
  • Mod-friendly: Does not replace the terminal UI or touch command parsing, so custom terminal UIs and command mods (such as darmuhsTerminalStuff, OpenLib, TerminalApi, etc.) continue to work normally.

Requirements & Installation

  • Requires: BepInEx 5 (BepInExPack)
  • Multiplayer: Host + all players who want to share the terminal simultaneously need this mod installed.
    • Why? Vanilla clients automatically kick themselves off the terminal when another player triggers UpdateUsedByPlayerClientRpc, and a vanilla host broadcasts KickOffTerminalClientRpc() if a second player enters while placeableObject.inUse is true.

Manual Install

  1. Install BepInEx 5 for Lethal Company.
  2. Copy MultiTerminal.dll into Lethal Company/BepInEx/plugins/.

Configuration

A config file is generated at BepInEx/config/MultiTerminal.cfg after launching the game once:

Setting Default Description
General.Enabled true Allow multiple players to access the ship terminal at the same time.

Technical Details (For Developers)

MultiTerminal uses Harmony patches in MultiTerminal.TerminalPatches across three layers of Lethal Company's terminal interaction pipeline:

  1. Local Hover & Interact Bypass (PlayerControllerB & InteractTrigger)

    • Patches PlayerControllerB.SetHoverTipAndCurrentInteractTrigger, PlayerControllerB.InteractTriggerUseConditionsMet, and InteractTrigger.Interact.
    • When the terminal's InteractTrigger has isPlayingSpecialAnimation == true and the local player is not already in inTerminalMenu, prefixes temporarily clear isPlayingSpecialAnimation so the hover prompt ([E]) and interaction succeed, then finalizers restore it.
  2. Client Animation Lock Preservation (InteractTrigger ClientRpcs)

    • Patches InteractTrigger.UpdateUsedByPlayerClientRpc and InteractTrigger.StopUsingClientRpc.
    • Vanilla UpdateUsedByPlayerClientRpc calls StopSpecialAnimation() if lockedPlayer == localPlayerController.transform, and StopUsingClientRpc clears isPlayingSpecialAnimation and lockedPlayer when any player leaves.
    • While localPlayer.inTerminalMenu is true, prefix/finalizer hooks preserve the local player's lockedPlayer, playerScriptInSpecialAnimation, playerUsingId, and isPlayingSpecialAnimation = true so other players entering or leaving do not interrupt or soft-lock the local user's exit flow.
  3. Server-Side Active User Tracking (Terminal & InteractTrigger ServerRpcs)

    • Patches InteractTrigger.UpdateUsedByPlayerServerRpc, InteractTrigger.StopUsingServerRpc, Terminal.SetTerminalInUseServerRpc, and StartOfRound.OnPlayerDC.
    • Tracks active terminal users in a server-side HashSet<int> (filtering for NetworkBehaviour.__rpc_exec_stage == 1 so RPC send calls on the host are not double-counted) and prunes dead or uncontrolled players (!isPlayerControlled || isPlayerDead).
    • Replaces the vanilla Terminal.SetTerminalInUseServerRpc behavior that calls KickOffTerminalClientRpc() whenever placeableObject.inUse is already true. Instead, SetTerminalInUseClientRpc(true) keeps the terminal active for all users, and SetTerminalInUseClientRpc(false) is only sent once the last active user exits or disconnects.
  4. Custom Terminal UI & Command Compatibility (darmuhsTerminalStuff, OpenLib, etc.)

    • Uses Priority.First / Priority.Last on shared hooks and avoids patching BeginUsingTerminal, QuitTerminal, ParsePlayerSentence, OnSubmit, or LoadNewNode, preserving custom terminal UIs, commands, keybinds, and AlwaysOnDisplay / placeableObject.inUse screen behavior.
    • When darmuhsTerminalStuff is detected (TerminalStuff.Networking.NetHandler), optionally patches SyncNodesRpc so incoming networked node syncs still mirror to non-terminal spectators without overwriting the screen of another player who is actively using the terminal.

Credits

  • Simultaneous terminal interact-bypass logic extracted and adapted from CrackedTerminal (TerminalHook.cs), expanded with full vanilla RPC & lock-state handling so it works directly with the vanilla ship terminal.