Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
QuotaRevive
This mod allows the host to config the game to change revive time, whether that being each planet, after time frames, after reaching a quota, or through a vote system.
By 1ethal_M0ds
| Last updated | 21 minutes ago |
| Total downloads | 4 |
| Total rating | 0 |
| Categories | Mods Tools Client-side Server-side Tweaks & Quality Of Life AI Generated |
| Dependency string | 1ethal_M0ds-QuotaRevive-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100AinaVT-LethalConfig
Provides an in-game config menu for players to edit their configs, and an API for other mods to use and customize their entries.
Preferred version: 1.4.6README
QuotaRevive
Lets the host choose how dead players come back in Lethal Company. Revive them after some time on a moon, when the quota is reached, or when the crew votes for it. Everything can be changed live from an in-game menu (LethalConfig) or from your mod manager's config editor.
Made by Gamingregory.
Read this first
Everyone in the lobby needs the mod. Vanilla has no way to revive a single player in the middle of a round, so the mod sends its own message and every client has to understand it. If someone doesn't have it, they'd still see themselves as dead while everyone else sees them alive. By default the host won't revive anyone while a player without the mod is connected (RequireModOnAllPlayers).
Only the host's settings count. Other players can open the settings, but their changes don't do anything and the menu greys them out.
The default mode is Normal, which leaves the game alone. Nothing changes until the host picks a mode.
Dead players stay dead between moons
Normally the game revives everyone when the ship leaves a moon. In any mode except Normal the mod turns that off (setting DisableVanillaRevive, on by default). A player who dies on day 1 is still dead after takeoff, in orbit and on day 2. They keep spectating until the mode you picked brings them back: the timer, the quota or a vote. Alive players are not affected, and the day still ends as usual for them.
That can mean a long time as a spectator, so pick your timer or quota with that in mind. Two things soften it:
- If everyone is dead at the end of the day, the game revives everyone as usual so the run can't get stuck (
ReviveAllIfEveryoneDead, on by default). Being fired after a missed deadline always revives everyone. - A player who stays dead is not charged the casualty penalty again on later days. Only people who died that day are charged.
Switch DisableVanillaRevive off to get the normal between-moons revive back. In Normal mode the game is untouched.
A revived player always appears in the ship with empty hands. Whatever they were carrying stays where they died, like it does in vanilla.
Someone who joins the lobby while others are dead won't know who is dead. Join before the first death.
Modes
| Mode | What happens |
|---|---|
| Normal | Vanilla. The mod does nothing. |
| AfterTimeOnPlanet | Dead players are revived a set time after landing (or after they died). Once or repeating, everyone at once or one at a time. |
| AfterQuota | Dead players are revived when the quota is reached, when a new quota starts, or on the deadline day. Can be limited to every Nth time. |
| Vote | Someone types /revive <name>. A popup shows up at the bottom left for everyone with a timer, the yes and no counts and two buttons. Players press 1 or 2, or click. Typing 1 or 2 in chat also counts. |
The vote popup
It sits at the bottom left, in the game's HUD font and colours. It shows who asked, a countdown bar, the yes and no counts, and the buttons [1] ACCEPT and [2] DENY. When the vote ends it shows the result for 4 seconds. Dead players see it too and vote with the same keys, so they don't need to chat.
- Press 1 or 2 (keypad 1 and 2 work as well). You can change your vote until it ends, unless the host turned that off. The keys are
VoteKeyYesandVoteKeyNo. - To click, hold the mouse key (Left Alt by default,
PopupMouseKey). The cursor appears while you hold it and goes back to how it was when you let go. It does nothing while the pause menu, the terminal or the chat box is open. - While the popup is open, 1 and 2 don't play the emotes that are bound to them. This only applies to the keys you vote with.
- On a gamepad, D-pad left accepts and D-pad right denies (
PopupGamepad). - If you'd rather not see it, turn off
ShowVotePopup. You can still vote by typing 1 or 2.
Names are matched without caring about case: exact match first, then the start of a name, then anywhere in it. If a name fits more than one player you get told. The host runs the whole vote, including the cooldown.
Settings
Change them in game (main menu or pause menu, needs LethalConfig) or in BepInEx/config/Gamingregory.QuotaRevive.cfg. Host settings say "Host only" in their description. Changes apply right away, no restart.
1. General
| Setting | Default | Range | What it does |
|---|---|---|---|
| Mode | Normal | Normal / AfterTimeOnPlanet / AfterQuota / Vote | The revive rule. |
| ReviveHealth | 100 | 1-100 | Health after being revived. |
| DisableVanillaRevive | true | Not in Normal mode: dead players are not revived between moons (see above). | |
| ReviveAllIfEveryoneDead | true | If everyone is dead at the end of the day, the game revives them all anyway. | |
| RestoreStamina | true | Refills the sprint meter. | |
| ClearInsanity | true | Resets insanity. | |
| MaxRevivesPerRound | 0 | 0-100 | Cap per round. 0 means no cap. |
| MaxRevivesPerQuota | 0 | 0-1000 | Cap per quota period. 0 means no cap. |
| MaxRevivesTotal | 0 | 0-10000 | Cap for the whole session. 0 means no cap. |
| OnlyWhileLanded | true | Set to false to also allow revives while the ship is taking off or in orbit. | |
| AnnounceRevives | true | Posts a chat message when someone is revived. | |
| ReviveDelaySeconds | 0 | 0-60 | Wait this long between the decision and the revive, with a chat countdown. |
| RequireModOnAllPlayers | true | Refuse to revive unless every player has the mod. |
2. TimeOnPlanet
| Setting | Default | What it does |
|---|---|---|
| Basis | SinceLanding | SinceLanding runs one timer from landing. SincePlayerDeath revives each player Delay after they died. |
| Unit | RealSeconds | RealSeconds or GameHours (100 time units is one hour; the clock doesn't move at the Company). |
| Delay | 120 (0.1-3600) | How long until the revive. |
| RepeatEvery | 0 (0-3600) | SinceLanding only. Repeat interval, 0 means once per round. |
| ReviveSelection | All | All dead players, or OneAtATime (earliest death first). |
| OnlyIfAtLeastOneAlive | true | Don't revive if everyone is dead (game over). |
3. Quota
| Setting | Default | What it does |
|---|---|---|
| Trigger | QuotaFulfilled | QuotaFulfilled, ScrapCollectedReachesQuota, NewQuotaStarted or DeadlineDay. |
| EveryNQuotas | 1 (1-50) | Only fire every Nth time. |
| ReviveCount | 0 (0-32) | How many to revive, earliest death first. 0 means everyone. |
What the triggers mean:
- QuotaFulfilled: the quota is met by selling scrap. The game only updates the quota at the Company, so this happens during the Company visit.
- ScrapCollectedReachesQuota: as soon as the scrap you already sold plus the value of the scrap in the ship adds up to the quota. It works on any moon, is checked every 2 seconds, and fires once per quota. Note that the Company pays less than the listed value, so this can fire before the quota is really met.
- NewQuotaStarted: a new quota begins.
- DeadlineDay: the ship lands on the last day before the deadline.
If a trigger happens when the ship isn't landed (for example NewQuotaStarted fires in orbit), the revive waits for the next landing.
4. Vote
| Setting | Default | What it does |
|---|---|---|
| Command | revive | The chat command. |
| DurationSeconds | 30 (5-300) | How long a vote lasts. |
| CooldownSeconds | 120 (0-3600) | Cooldown for everyone after a vote ends. |
| PerPlayerCooldownSeconds | 0 | Extra cooldown for the player who asked. |
| RequiredYesPercent | 50 (0-100) | Yes votes must be more than this percent of eligible voters. 100 means everyone has to agree. |
| MinimumYesVotes | 1 (1-32) | Fewest yes votes that can pass a vote. |
| WhoCanVote | AliveOnly | AliveOnly or EveryoneIncludingDead. |
| RequesterVotesYesAutomatically | true | The person who asked counts as a yes. |
| TargetCanVote | false | Whether the player being revived can vote. |
| AbstainCountsAs | CountsAsNo | CountsAsNo (everyone eligible counts) or Ignore (only votes that were cast count). |
| MaxVotesPerRound | 0 | 0 means no cap. |
| AllowHostForceRevive | false | The host's command revives right away, no vote. |
| RequireTargetDead | true | If false, an alive target is healed and sent to the ship. |
| EndVoteEarlyWhenDecided | true | Stop as soon as the result can't change. |
| AllowChangingVote | true | A later vote replaces an earlier one. |
| AllowChatVoting | true | Typed 1 and 2 in chat count as votes too. |
| AnnounceInChat | true | Also post the vote start and result in chat, next to the popup. |
| CancelVoteWhenRoundEnds | true | Cancel the vote if the round ends. |
| AnnounceVoteProgress | false | Post the tally after each vote. |
5. Messages
Every chat message and popup text is a template you can edit, including the button labels and the result lines. You can use {requester}, {target}, {seconds}, {yes}, {no}, {needed}, {list} and {command}.
6. Client and 7. Debug
These only affect your own game. The popup settings are ShowVotePopup, VoteKeyYes, VoteKeyNo, PopupMouseKey, PopupGamepad, PopupOffsetX and PopupOffsetY. AllowDeadPlayersToChat is off by default; dead players don't need it to vote. LogDebug is off by default and writes extra lines to BepInEx/LogOutput.log, which helps when something goes wrong.
Known issues
- Everyone needs the mod (see above).
- Dead players can't chat in vanilla, so they vote with the popup.
- Dead players spectate until revived, and that can span several days. They don't count as alive for the ship.
- If someone dies in a way that leaves no body, the game removes their items, like it does in vanilla.
- The game limits chat messages to 50 characters, so the command plus a long name can get cut off.
- I haven't tested it with other mods that change death, ragdolls or chat.
- Keeping dead players dead across days is new for the game's spectator code. If you see something odd in orbit or on the next moon, turn on
LogDebugand send me the log.
Credits
Made by Gamingregory. Built on BepInEx, HarmonyX and LethalConfig by AinaVT.
See CHANGELOG.md for what changed.