Rudeman-SimpleTeamLives icon

SimpleTeamLives

Shared team lives, off by default (the host turns them on): a full wipe costs a life and a wipe with none left ends the run. Also keeps the ship's scrap when the whole crew dies, with lives on or off.

By Rudeman
Last updated 4 hours ago
Total downloads 3
Total rating 0 
Categories Mods BepInEx Server-side AI Generated
Dependency string Rudeman-SimpleTeamLives-1.5.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

MaxWasUnavailable-LethalModDataLib-1.2.2 icon
MaxWasUnavailable-LethalModDataLib

A library for Lethal Company, providing a standardised way to save and load modded data.

Preferred version: 1.2.2
Sigurd-CSync-5.0.1 icon
Sigurd-CSync

Configuration file syncing library for BepInEx.

Preferred version: 5.0.1
BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2305
xilophor-LethalNetworkAPI-3.4.2 icon
xilophor-LethalNetworkAPI

A library/API to allow developers to easily add networking to their mods.

Preferred version: 3.4.2

README

SimpleTeamLives

Optional shared team lives, plus one thing that's on for everyone: the ship's scrap survives a full crew wipe.

Team lives are off by default. With them off the game plays by vanilla rules for deaths and game over, and the only change is that a full wipe no longer throws away the scrap already in the ship. The host switches team lives on with one line in the config (below).

Keeping the ship's scrap

In vanilla, when the whole crew is dead at takeoff the game deletes every piece of scrap in the ship. With KeepShipScrapOnWipe = true (the default):

  • Team lives off: every full wipe keeps the scrap already in the ship. The wipe costs nothing else from this mod. A short note on screen says the scrap was kept.
  • Team lives on: the scrap is kept when a life pays for the wipe. A wipe that ends the run is unchanged (the firing clears the ship as normal).
  • Either way, scrap left on the moon or held by the dead is still lost, as in vanilla. Vanilla's credit penalty for bodies that weren't brought back still applies.

Team lives (when switched on)

The whole crew shares one pool of lives. You only pay for deaths when the ship takes off, so a teammate who gets revived before takeoff costs nothing. The run ends the vanilla way (fired, save reset) only when everyone is dead at takeoff and the pool is already empty.

  • At takeoff the host counts who is still dead.
  • LifeLossMode = WipeOnly (default): a life is spent only on a full wipe. One player dying while someone else gets back to the ship is free.
  • LifeLossMode = PerDeath: every player still dead at takeoff costs one life, even if others survived.
  • The pool never goes below 0. At 0 you can still survive a day with deaths; the next full wipe ends the run with "Out of team lives" on the firing screen.
  • Meeting a quota adds lives, up to a cap.
  • Everyone respawns normally each day. This mod never revives anybody, so revive mods work alongside it without special support.

The count is saved in the save slot and synced to every player, including people who join mid-run.

Type lives in the ship terminal for the current count, the cap and what the next quota adds. It's read-only and free. With team lives off it says so and how to turn them on.

Turning team lives on

Close the game, open BepInEx/config/jacob.SimpleTeamLives.cfg (it appears after the first launch with the mod) and set:

[General]
TeamLives = true

Only the host's setting matters. Turning it off again later doesn't delete anything: a save's lives are left as they were and carry on when you switch back on. With it off, nothing about lives is read from or written to your save.

Who needs it

  • Host: required. The host counts deaths, owns the pool, decides game over and keeps the ship's scrap.
  • Clients: recommended. Without it a client still plays under the host's rules but doesn't see the messages or the lives command.

Config

BepInEx/config/jacob.SimpleTeamLives.cfg. The host's values are synced to clients (CSync), so only the host's file matters. There is no in-game editor.

Key Default What it does
TeamLives false Team lives on or off. Off = vanilla rules, nothing counted or saved
KeepShipScrapOnWipe true Keep the ship's scrap on a full wipe (lives off: always; lives on: when a life pays)
StartingLives 3 Lives at the start of a new run. A change applies to the next new run
LivesPerQuota 1 Lives added when a quota is met
MaxLives 5 Cap on the pool. 0 = no cap
CountCompanyMoonDeaths true Whether deaths at the Company cost lives
LifeLossMode WipeOnly WipeOnly or PerDeath, see above
GameOverMode Fire Fire = vanilla firing and save reset. Warn = message only, for testing
ShowLivesOnTakeoff true Before/after count on screen when someone died

The ChobblePack modpack ships it with team lives off and, ready for when the host turns them on, StartingLives 1 and MaxLives 3.

Requirements and compatibility

  • Needs Lethal Company v81 and BepInEx 5.
  • Uses LethalNetworkAPI (sync), LethalModDataLib (saving) and CSync (config sync). Your mod manager installs them.
  • Standalone: it doesn't need anything else from the ChobblePack pack.
  • Lives are saved under the mod's own key, so saving doesn't depend on LethalModDataLib working out which plugin called it (that lookup breaks in LethalModDataLib 1.2.2 when another plugin fails to load). Saves from 1.4.0 are moved over automatically.

When something breaks

Each hook is applied separately and every one catches its own errors. If takeoff can't be hooked after a game update, or the lives logic hits three errors, the mod switches itself off for the session, shows one note in game and logs why. The game then plays as vanilla. Look for SimpleTeamLives in BepInEx/LogOutput.log.

AI disclosure

The code, documentation and icon of this mod were generated with Anthropic's Claude (Claude Opus 5.5 and other Claude models, via Claude Code). The author designed the mod, directed the work and tested it in game.