DangerGift

版本 v1.1.1·更新於 2026-08-27

Opening a Present has a chance to unleash a monster or a live trap instead of loot. Host-synced and highly configurable.

模組介紹 作者原文

DangerGift

Author: Solo00n

Opening a Present is a gamble: instead of loot, it can burst open to reveal a hostile monster or a live trap.

Language / Язык: English first, Русский ниже.

English

What it does

  • Booby-trapped presents — only Presents are affected; every other item is untouched. On opening, a chance decides whether it gives normal loot or something dangerous.
  • Monsters or traps — a triggered present spawns a small monster or a live trap (Landmine by default; Turrets and Spike traps are opt-in) instead of its loot.
  • A beat of suspense — the box opens empty first, then after a short configurable delay the monster or trap appears, so there is a moment to react.
  • Any monster on any moon — the monster pool is built from every loaded enemy, so the same moon no longer keeps handing you the one enemy it happens to list; the pick is genuinely random.
  • Inside / outside aware — outdoor monsters won't be dropped into the facility and vice-versa, with options to relax or fully ignore that rule.
  • Allow / block lists for monsters, plus per-type toggles for traps, so you decide exactly what can appear.
  • Open-only-on-the-moon rule — an optional setting that only lets presents be opened while landed on a moon and standing outside the ship.
  • Per-moon ignore list and separate monster / trap chances for fine control.

How it works

  • A server-side hook on the present-opening routine runs the roll once, on the host.
  • On a hit it suppresses the vanilla loot and opens the box with the game's own "empty present" routine, so the box plays its normal particles and sound and is cleanly removed from the opener's hand for everyone, then spawns the entity at the present's position after the delay.
  • Monsters spawn through the game's own enemy-spawn method; traps through the standard networked spawn. No custom network objects, so no NetcodePatcher is needed.
  • The monster pool comes from every loaded enemy filtered by the allow/block list, so any allowed monster can appear on any moon.

Multiplayer (host-authoritative)

Only the host rolls and spawns; clients never decide on their own, so everyone sees one authoritative result. Monsters and traps are spawned server-side and replicate to all clients, and the box is opened through the game's own networked routine so it disappears from the opener's hand for everyone. The host must have the mod; install it on everyone so the whole lobby shares the same config.

Requirements

  • BepInEx 5.4.21+
  • Lethal Company V81
  • StarlancerAIFix by AudioKnight — keeps spawned enemy AI behaving correctly.
  • NavMeshInCompanyRedux by TRizzle — provides navmesh so spawned monsters can path where presents are opened.
  • Optional: LethalConfig for editing settings in-game.

Installation

  • Mod manager (r2modman Mod Manager): search for the mod and click Install; the dependencies are pulled in automatically.
  • Manual: install the BepInEx pack and the required dependencies, then drop DangerGift.dll into BepInEx/plugins.

Configuration

File: BepInEx/config/Timofey.DangerGift.cfg (created on first launch). Every setting can also be edited live in the LethalConfig menu.

| Key | Default | Description |

| --- | --- | --- |

| Enabled | true | Master switch for the whole mod. |

| SpawnChance | 0.15 | Base chance (0.0–1.0) that opening a present spawns a monster/trap instead of loot. |

| PreventOpeningOnShip | false | If true, presents can only be opened while landed on a moon and standing outside the ship. |

| SpawnMonsters / SpawnTraps | true / true | Allow presents to spawn monsters / traps. |

| MonstersSpawnChance / TrapsSpawnChance | -1 / -1 | Separate chances. -1 uses the general SpawnChance. |

| SpawnDelay | 0.7 | Seconds between opening the present and the entity appearing. |

| IsAllowlist | true | If true, only monsters in the allow-list spawn; if false, all except the block-list. |

| EnemyAllowlist | Manticoil,... | Internal enemy names allowed when IsAllowlist is true. |

| EnemyBlocklist | (empty)

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPackAudioKnight-StarlancerAIFixTRizzle-NavMeshInCompanyRedux

檔案與校驗

檔案名稱
DangerGift-1.1.1.zip
檔案大小
21.5 KiB