Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RandomDelivery

RANDOM DELIVERY

Lethal Company BepInEx Version License

Language / Язык: English · Русский

RANDOM DELIVERY

Author: Solo00n

Every morning the item dropship flies in and drops a free batch of random shop items on your landing pad — except some of them arrive as live traps or hostile monsters instead.

WHAT IT DOES

  • Daily air-drop — the game's real item dropship is dispatched on schedule, lands by the ship and drops a batch of 2–4 random buyable items, for free (your credits are untouched).
  • Auto item pool — pulls every orderable item from the terminal shop, including ones other mods add; ship upgrades are excluded.
  • Selection modesRandom (equal chance) or PriceWeighted (cheaper items are more likely, with an optional on-sale boost).
  • Traps and monsters — each slot can instead be a live trap (Turret / Landmine) or a small monster, dropped at the ship's own spots when its hatch opens.
  • Whole-delivery modes — a once-per-delivery chance the entire delivery is all traps, or all monsters.
  • Allow / block lists — for items, traps and monsters, so you decide exactly what can arrive.
  • Flexible schedule — dispatch time(s) on the in-game clock, several deliveries per day, per-slot replacement chances.
  • In-game config — every setting is editable live through LethalConfig.

HOW IT WORKS

  • Items ride the vanilla ItemDropship: the chosen indices are added to Terminal.orderedItemsFromTerminal (the same list a paid order uses, minus the credit charge), so the ship flies in, lands and drops them exactly where terminal orders land.
  • The descent is started at the scheduled DeliveryTimes clock time, and traps/monsters spawn at the ship's own item-drop spots the moment its hatch opens, so everything arrives together in the same place.
  • Monsters spawn via RoundManager.SpawnEnemyGameObject, traps via NetworkObject.Spawn — no custom network objects.
  • The monster pool is built from every loaded EnemyType filtered by the allow-list, so any allowed small monster can appear on any moon.

MULTIPLAYER (HOST-AUTHORITATIVE)

Only the host generates and dispatches deliveries; clients never generate their own, so everyone shares one authoritative delivery.

Items: queued onto the host's terminal order and delivered by the game's own dropship, which replicates to all clients.
Traps and monsters: spawned server-side through NetworkObject.Spawn / SpawnEnemyGameObject, so all clients see the same result.
Install: the host must have the mod; clients receive everything through Netcode. Install it on everyone so the whole lobby shares the same config.

REQUIREMENTS

  • BepInEx 5.4.21+ (BepInEx-BepInExPack-5.4.2100)
  • Lethal Company V81
  • Optional: LethalConfig for editing settings in-game.

INSTALLATION

  • Mod manager (r2modman / Thunderstore Mod Manager): search for the mod and click Install.
  • Manual: install the BepInEx pack, then drop RandomDelivery.dll into BepInEx/plugins/.

CONFIGURATION

File: BepInEx/config/Timofey.RandomDelivery.cfg (created on first launch). The .cfg is re-read at the start of every day, and can also be edited live in the LethalConfig menu.

KeyDefaultDescription
EnabledtrueMaster switch for the whole mod.
DeliveryTimes08:30Comma-separated in-game times the dropship is dispatched (day starts 06:00). Each is an HH:MM time, StartOfDay, or a number of seconds after landing. List several for multiple deliveries.
MaxDeliveriesPerDay1Hard cap on deliveries per day.
MinItems / MaxItems2 / 4Slots per delivery (inclusive range).
ItemSelectionModeRandomRandom or PriceWeighted.
PriceWeightFactor1.0Price-weighting steepness (0 = flat, 1 = inverse price, 2 = strongly favour cheap).
DiscountBoosttrueBoost on-sale items in PriceWeighted mode.
DropshipAutoOpenfalseOpen the hatch by itself on landing instead of waiting for a player.
ChanceForTrap / ChanceForMonster15 / 10Per-slot % chance a slot becomes a trap / a monster.
PriorityMonsterWinner when both a trap and a monster hit the same slot.
ChanceForAllTraps / ChanceForAllMonsters0 / 0Once-per-delivery chance the whole delivery is all traps / all monsters.
The allow/block lists — AllowedItems/BlockedItems, AllowedTraps/BlockedTraps, AllowedMonsters/BlockedMonsters — live in the ItemFilters, Traps and Monsters sections. A non-empty Allowed* list acts as a whitelist; otherwise the matching Blocked* list applies.

COMPATIBILITY

  • Automatically includes items other mods add to the terminal shop (reads Terminal.buyableItemsList).
  • In-game configuration via LethalConfig (auto-detected, optional — no hard dependency).
  • Uses the game's own dropship and vanilla networked spawns — no custom network objects, low conflict risk.
  • Works on vanilla and modded moons; if a moon has no dropship, the delivery falls back to spawning on the pad next to the ship.

BUILD

dotnet build -c Release

Output: bin/Release/RandomDelivery.dll. Game assemblies are referenced via the LethalCompany.GameLibs.Steam NuGet package as compile-only (PrivateAssets="all") — no game files are distributed.

CREDITS

  • Solo00n — author.
  • Built on BepInEx and HarmonyX.
  • Licensed under MIT.

RANDOM DELIVERY

Автор: Solo00n

Каждое утро грузовой дропшип прилетает и сбрасывает на посадочную площадку бесплатную партию случайных предметов из магазина — вот только часть из них прибывает в виде живых ловушек или враждебных монстров.

ЧТО ДЕЛАЕТ МОД

  • Ежедневная доставка — настоящий грузовой дропшип отправляется по расписанию, садится у корабля и сбрасывает партию из 2–4 случайных покупаемых предметов, бесплатно (баланс не меняется).
  • Автопул предметов — берёт все заказываемые предметы из терминала, включая добавленные другими модами; улучшения корабля исключены.
  • Режимы выбораRandom (равный шанс) или PriceWeighted (чем дешевле, тем вероятнее, с бонусом за скидку).
  • Ловушки и монстры — любой слот может стать живой ловушкой (Турель / Мина) или маленьким монстром, которые высыпаются в точках выгрузки дропшипа при открытии люка.
  • Режимы всей доставки — шанс один раз за доставку, что вся партия будет только из ловушек либо только из монстров.
  • Белые / чёрные списки — для предметов, ловушек и монстров: вы точно решаете, что может прибыть.
  • Гибкое расписание — время(-на) отправки по внутриигровым часам, несколько доставок в день, пошаговые шансы замены.
  • Настройка в игре — все параметры меняются вживую через LethalConfig.

КАК ЭТО РАБОТАЕТ

  • Предметы едут на ванильном ItemDropship: выбранные индексы добавляются в Terminal.orderedItemsFromTerminal (тот же список, что и у платного заказа, но без списания кредитов), поэтому корабль прилетает, садится и сбрасывает их туда же, куда падают заказы из терминала.
  • Спуск начинается в заданное время DeliveryTimes, а ловушки/монстры спавнятся в точках выгрузки дропшипа в момент открытия люка — так всё прибывает вместе и в одном месте.
  • Монстры спавнятся через RoundManager.SpawnEnemyGameObject, ловушки — через NetworkObject.Spawn, без своих сетевых объектов.
  • Пул монстров строится из всех загруженных EnemyType с фильтром по белому списку, поэтому любой разрешённый мелкий монстр может появиться на любой луне.

МУЛЬТИПЛЕЕР (HOST-AUTHORITATIVE)

Доставки генерирует и отправляет только хост; клиенты ничего не генерируют сами, поэтому у всех одна авторитетная доставка.

Предметы: добавляются в заказ терминала на хосте и доставляются дропшипом самой игры, что реплицируется всем клиентам.
Ловушки и монстры: спавнятся на сервере через NetworkObject.Spawn / SpawnEnemyGameObject, поэтому итог одинаков у всех.
Установка: мод обязателен у хоста; клиенты получают всё через Netcode. Ставьте всем, чтобы у всего лобби был общий конфиг.

ЗАВИСИМОСТИ

  • BepInEx 5.4.21+ (BepInEx-BepInExPack-5.4.2100)
  • Lethal Company V81
  • Опционально: LethalConfig для настройки в игре.

УСТАНОВКА

  • Через менеджер (r2modman / Thunderstore Mod Manager): найти мод и нажать Install.
  • Вручную: установить BepInEx-пак, затем положить RandomDelivery.dll в BepInEx/plugins/.

НАСТРОЙКА

Файл: BepInEx/config/Timofey.RandomDelivery.cfg (создаётся при первом запуске). .cfg перечитывается в начале каждого дня и правится вживую в меню LethalConfig.

КлючПо умолчаниюОписание
EnabledtrueГлавный выключатель мода.
DeliveryTimes08:30Список времён отправки дропшипа через запятую (день начинается в 06:00). Каждое — время ЧЧ:ММ, StartOfDay или число секунд после посадки. Перечислите несколько для нескольких доставок.
MaxDeliveriesPerDay1Жёсткий лимит доставок в день.
MinItems / MaxItems2 / 4Слотов за доставку (включительно).
ItemSelectionModeRandomRandom или PriceWeighted.
PriceWeightFactor1.0Крутизна весов по цене (0 = ровно, 1 = обратно цене, 2 = сильный уклон в дешёвые).
DiscountBoosttrueБонус к шансу товаров со скидкой в режиме PriceWeighted.
DropshipAutoOpenfalseОткрывать люк автоматически при посадке, не дожидаясь игрока.
ChanceForTrap / ChanceForMonster15 / 10Пошаговый шанс (%) сделать слот ловушкой / монстром.
PriorityMonsterКто побеждает, если в один слот выпали и ловушка, и монстр.
ChanceForAllTraps / ChanceForAllMonsters0 / 0Шанс один раз за доставку, что вся партия — только ловушки / только монстры.
Белые/чёрные списки — AllowedItems/BlockedItems, AllowedTraps/BlockedTraps, AllowedMonsters/BlockedMonsters — находятся в разделах ItemFilters, Traps и Monsters. Непустой список Allowed* работает как белый список; иначе применяется соответствующий Blocked*.

СОВМЕСТИМОСТЬ

  • Автоматически включает предметы, добавленные другими модами в магазин терминала (читает Terminal.buyableItemsList).
  • Настройка в игре через LethalConfig (определяется автоматически, необязателен — жёсткой зависимости нет).
  • Использует дропшип самой игры и ванильные сетевые спавны — без своих сетевых объектов, низкий риск конфликтов.
  • Работает на ванильных и модовых лунах; если на луне нет дропшипа, доставка запасным путём спавнится на площадке у корабля.

СБОРКА

dotnet build -c Release

Результат: bin/Release/RandomDelivery.dll. Сборки игры подключены через NuGet-пакет LethalCompany.GameLibs.Steam только для компиляции (PrivateAssets="all") — файлы игры не распространяются.

БЛАГОДАРНОСТИ

  • Solo00n — автор.
  • Построено на BepInEx и HarmonyX.
  • Лицензия MIT.

About

This repository contains a custom modification for the cooperative horror game Lethal Company. The mod expands gameplay by adding new content and mechanics while preserving the atmosphere of the original. Compatible with the current game version and most popular plugins (dependencies must be specified).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages