You are viewing a potentially older version of this package. View all versions.
Level99Mike-LethalZero-0.2.2 icon

LethalZero

When the host dies, the whole crew returns to the moment the lever was pulled and replays the same day: same seed, same loot, same rng rolls. A Re:Zero parody. Every player needs the mod for it to work.

Date uploaded 2 weeks ago
Version 0.2.2
Download link Level99Mike-LethalZero-0.2.2.zip
Downloads 91
Dependency string Level99Mike-LethalZero-0.2.2

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

Lethal:Zero

Return by Death for Lethal Company. A Re:Zero parody.

When the host dies on a moon, the whole crew goes back to the moment the lever was pulled and replays the same day. Same seed, same map, same loot, same RNG rolls. If you do the same thing again, you get the same result.

Install

Use a mod manager. For a manual install, copy the DLL, the three sound files and witch_hand.zmesh into BepInEx/plugins/LethalZero/. Needs BepInEx 5.

Every player needs the mod. The host gets a warning if someone joins without it or on a different version. A player on a version that can't read the host's checkpoints still rewinds with everyone, but their ship isn't restored.

How it works

  • Pulling the lever saves a checkpoint: credits, quota, deadline, weather, everything on the ship, what each player is carrying and where they are standing.
  • Only the host's death starts a loop. The host sees their body for about 2 seconds, then the screen goes black for everyone.
  • Behind the black screen the ship goes back to orbit and the moon reloads with the same seed.
  • Everything is put back the way it was at the checkpoint. Dead players are revived, nobody keeps what they picked up, anything bought during the loop is refunded and no day passes.
  • You are back in the ship right before it lands.
  • The checkpoint only moves forward when a day ends normally with the host alive.

Restored on the ship: items (scrap value, battery, position, on/off state), inventories and the selected slot, furniture, suits, the Cruiser, terminal orders, ship lights, the radar target, teleporter cooldowns, the TV, a playing boombox, cabinet doors and TZP intoxication.

Config

BepInEx/config/com.github.level99mike.lethalzero.cfg

Section Key Default What it does
Loop Enabled true Turns the mod on or off (host).
Loop MaxLoopsPerDay 0 Loops allowed per day, 0 = unlimited (0-100).
Loop LoopAtCompany true Loop on deaths at the Company.
Loop LoopOnChallengeMoon false Loop on the weekly challenge moon.
Loop FastRewind true Skip the ship's take-off during a rewind (host). Off = the ship takes off normally behind the black screen, which is slower.
Determinism DeterministicRng true Make all random rolls repeat each loop (needs a restart).
Determinism IncludeModdedAssemblies false Do the same for other mods' code, such as modded enemies and items (needs a restart).
Determinism RngTrace false Log a report after each loop showing what played out differently.
Presentation DeathPauseSeconds 0.5 Extra time the host watches their death, on top of 1.5 s (0-5). Makes the restart that much longer.
Presentation SfxVolume 0.8 Volume of the mod's sounds (0-1).
Taboo WitchTaboo true Turns the taboo on or off.
Taboo TabooWords see config Comma-separated phrases. A phrase has to start at the beginning of a word but can end mid-word.
Taboo TabooPatterns see config Semicolon-separated regular expressions, for things like "loop 4".
Taboo TabooDamage 25 Damage on the first offence (0-100).
Taboo TabooEscalation true Double the damage for every offence that day.
Taboo TabooLethalStrike 3 The offence that kills outright. 0 = never (0-10).
Taboo TabooListenerChance 0.25 Chance that the nearest crewmate is hit instead, from the 2nd offence (0-1).
Taboo TabooCanKill true Off = the taboo stops at 1 HP.
Taboo TimeStop true Stop time for the lobby during the taboo.
Taboo TimeStopSeconds 2 How long time stops if the witch_hand sound file is missing (0.25-10).
Taboo TimeStopSilence true Mute all game sound, voice chat included, while time is stopped.

The host's taboo settings apply to everyone. Values outside the ranges are clamped.

Known issues

  • Loops aren't frame-perfect. The random rolls repeat, but movement, physics and AI run on frame time, so small timing differences can change when an enemy makes a decision, and things can drift from there.
  • Other mods' enemies and items don't repeat their rolls unless IncludeModdedAssemblies is on.
  • Crewmates aren't scripted. If they do something different, the loop plays out differently. Enemies that hear voice chat also react to how loud you are.
  • The taboo only checks text chat and the signal translator, not voice chat.
  • Opening the pause menu during a rewind hides the black screen, so you can see the ship being reset.
  • If the host's death leaves no body, the camera circles the spot where they died.
  • After a game update, a feature that no longer works turns itself off and says so in the BepInEx log. The rest keeps working.

AI disclosure

AI was used to help with the code.

Contact

Level99Mike on Discord, Steam

CHANGELOG

Changelog

0.2.2

  • Added an AI disclosure to the README.
  • Private game members are now accessed through a publicizer instead of reflection.
  • RngTrace reports are now written to a traces folder next to the DLL.
  • IncludeModdedAssemblies is now off by default, so other mods' code is left alone unless you turn it on.
  • The plugin ID is now com.github.level99mike.lethalzero, so the config file is com.github.level99mike.lethalzero.cfg. Settings from the old file are not carried over.

0.2.1

  • New icon.
  • Updated the mod description.
  • No gameplay changes. Works with 0.2.0, but the host gets a version mismatch warning.

0.2.0

Everyone should update. 0.1.4 clients still rewind with the host, but they won't see or hear any of the new stuff.

Added

  • The Witch's hand is now visible during the time stop. It comes out of a portal, reaches into the victim's chest and squeezes on every heartbeat. Only the victim and the host can see it.
  • Black fog closes in around the victim during the time stop.
  • Purple outline on the hand and the portal so they show up against the fog.

Changed

  • Removed all HUD tips about Return by Death and the Witch. Warnings about the mod itself (missing mod, version mismatch, stuck rewind) are still shown.
  • The host's camera stays on their body for about 2 seconds after dying.
  • Faster loading during a rewind.
  • The black screen during a rewind has no text or sound, and now covers the game's loading screen too.
  • New Return by Death sounds (a bell, then the Witch) play when the host wakes up. The old rewind sound is gone.
  • Crewmates only get a silent black screen during a rewind.
  • Removed the ShowDeathRecap and ShowLoopCounter settings. The cause of death is still written to the log.
  • The time stop is now instant and lasts as long as the hand's sound (about 15 s). TimeStopSeconds is only used if the sound file is missing.
  • Sounds are loaded from rbd_bell, rbd_wail and witch_hand next to the DLL and can be replaced. return_by_death.ogg is no longer used.

Fixed

  • If the checkpoint failed to save, dying could rewind to the previous day. That death is now final.
  • The moon could be seen unloading before the screen went black.
  • If a game update breaks one of the mod's hooks, the mod (or just the taboo) turns itself off instead of half-working.

0.1.4

Everyone needs to update, the network messages changed. Older clients still rewind with the host, but their ship isn't restored.

Added

  • Death recap during the rewind: how, where and when the host died. Turn it off with ShowDeathRecap.
  • The pause menu works during a rewind.
  • Numeric settings are clamped to valid ranges and show as sliders in LethalConfig.

Changed

  • "been here before" and "i died last time" are no longer taboo words by default, they were too easy to say by accident. If you never edited TabooWords, it updates automatically.

Fixed

  • A game update that renames something the mod uses now only turns off the affected feature.
  • Errors in the mod can no longer break the game's own code.
  • A stuck rewind is released for every player, not just the host.
  • Health and position no longer carry over from an earlier session.
  • Restore problems now show up in the log as warnings.

0.1.3 and earlier

First versions.