You are viewing a potentially older version of this package. View all versions.
thatumi-Lifeline-0.2.0 icon

Lifeline

Revive dead crewmates by holding a key at their body or tombstone. Host-decided and confirmed by every player, so revives never desync. Every player needs it.

Date uploaded 2 weeks ago
Version 0.2.0
Download link thatumi-Lifeline-0.2.0.zip
Downloads 409
Dependency string thatumi-Lifeline-0.2.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
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

UNDER ACTIVE DEVELOPMENT! Bug report/requests: thatumi on Discord.

Lifeline

Revive your dead crewmates. Walk up to a body, look at it and hold the revive key: when the bar is full, they are back on their feet right there, with some health.

Every player in the lobby needs this mod.

Why another revive mod

Revive mods break when the host and the players disagree: the host sees you revived (standing, body gone) while on your own screen you are still dead and spectating. Lifeline is built around that problem:

  • The host decides. A revive request goes to the host, which checks it with its own view (you are alive, they are dead, you are close enough, revives are left).
  • Everyone applies the same revive and confirms it. If a player did not get it, or it did not take on their screen, the host sends it again until they confirm. Every few seconds the host also sends who it revived, so a player who fell out of step catches up.
  • One revive system. If another revive mod is installed, Lifeline turns itself off and says so in the log.

How it works

Revive Hold R (keyboard) or D-pad up (gamepad) at the body, 5 s by default. Rebindable in the InputUtils keybind menu.
Body gone Eaten, sunk, despawned: a tombstone appears where the player died; revive there.
Carried bodies Carry the body back to the ship and revive them there.
Health 35 HP, 5 less for each further revive of the same player in a round (at least 10).
Limits 2 revives per player per round by default; or a shared pool for the crew; or unlimited.
Time limit 120 s after death by default; after that they stay dead until the round ends.
Spectate list A revived player's avatar and name leave the dead players' list (bottom left).
Defibrillator Out of revives? Type defib buy in the ship terminal: one charge for 150 credits. A charge revives once beyond the limit and is used automatically. defib shows how many the crew has. Charges last until used.

Config (BepInEx/config/dev.thatumi.Lifeline.cfg)

Section Key Default
Revive HoldSeconds / MaxDistance 5 / 3 Host
Revive Health / HealthLossPerRevive / MinHealth 35 / 5 / 10 Host
Rules Mode PerPlayer Host: PerPlayer, PerTeam or Unlimited
Rules RevivesPerPlayer 2 Host (PerPlayer)
Rules TeamRevivesMin / TeamRevivesPerPlayer 4 / 1.25 Host (PerTeam): at least 4, or players x 1.25
Rules TimeLimitSeconds 120 Host (0 = no limit)
Rules AllowTombs true Host
Defibrillator Enabled / Price true / 150 Host
Input KeyWithoutInputUtils R Only without InputUtils
Debug VerboseLogging false Logs every request and confirmation

The host's rules are sent to every player, so the prompts match what the host allows.

Compatibility

  • Required: LethalNetworkAPI 3.4.2. Recommended: InputUtils.
  • Do not combine with other revive mods (UltimateRevive, ReviveCompany, ...): Lifeline turns itself off if it finds one.
  • Mods that turn dead players into Masked copies are not handled yet.
  • 0.2.0 does not play with 0.1.x (everyone updates; an older player's messages are ignored and logged).

Bug report/requests:

thatumi on Discord

CHANGELOG

Changelog

0.2.0

Everyone needs 0.2.0 (protocol 2; 0.1.x players are ignored and the host logs it).

  • Defibrillator charges: type defib buy in the ship terminal to buy one with the crew's credits (150 by default). A charge revives a crewmate once beyond the revive limit and is used automatically; defib shows how many the crew has. Charges last until used. Host config: Defibrillator / Enabled, Price.

0.1.1

  • New icon: a red cross with a heartbeat line. No code changes.

0.1.0

First version (not yet tested in a real lobby).

  • Hold the revive key (R / D-pad up, rebindable with InputUtils) at a dead crewmate's body, or at their tombstone when the body is gone, to bring them back where they lie.
  • The host decides; every player applies the same revive and confirms it. A player who missed it gets it again until they confirm, so nobody stays "dead" on one screen while alive on the others.
  • A revived player's avatar and name disappear from the dead players' list (bottom left of the spectate screen).
  • Host rules: hold time, distance, health after a revive (less for each further revive), revives per player or per crew, time limit, tombstones on or off. Synced to every player.
  • Turns itself off when another revive mod is installed (two revive mods on the same bodies is what desyncs revives).