ImprovedBeltBag
Configurable belt bags: choose which item types they hold (tools, shotgun, knife, signs, scrap) with per-type limits, capacity, weight, and a resizable slot grid. Host-authoritative.
模組介紹 作者原文
ImprovedBeltBag
Language / Язык: English · Русский
A BepInEx mod for Lethal Company that makes Belt Bags configurable — decide exactly
which item types they accept, cap each type, add weight, and resize the slot grid.
- Per-type item categories, each with its own Allow + Max Amount:
Tools, Shotgun, Knife, Signs, One Handed Scrap, Two Handed Scrap, Deny,
plus per-item overrides. So you can, say, let the bag carry tools/shotguns/knives but
not generic metal loot — and limit how many one-handed vs two-handed junk items fit.
- Capacity and grab range (host-enforced).
- Weight: the bag weighs you down by its contents (vanilla bags are weightless).
- Resizable slot grid: the inventory UI shows the configured number of slots, centred
with the original spacing.
- HUD tips + an "empty bag" action (right-interact while holding it).
Multiplayer (host-authoritative)
Bigger/permissive bags are a competitive advantage, so this is host-authoritative: the
tweaks stay off on a client until the host confirms it has the mod, and every add is
validated server-side against the host's config. A lone modded client in a vanilla
lobby gets no advantage, and clients can't exceed the host's limits. Vanilla clients can
still join.
Compatibility with other belt bag mods
This mod only touches the vanilla belt bag. Mods that add their own bag do it by cloning
the vanilla prefab, so their bag runs the same code and would otherwise be caught by every
patch here — having its items rejected, its weight counted twice and its slot grid resized.
The vanilla bag is identified once at startup, and any other bag is left to the mod that owns it.
A belt bag found on a moon counts as the vanilla bag. Mods that turn store items into scrap
build those through LethalLib, which clones the item, so the found bag is recognised by the id
and name it inherited rather than by identity.
Install
- Install BepInEx 5 (BepInExPack for Lethal Company).
- Put Iron.ImprovedBeltBag.dll in Lethal Company/BepInEx/plugins.
- Launch once to generate BepInEx/config/Iron.ImprovedBeltBag.cfg.
Config (Iron.ImprovedBeltBag.cfg)
| Section | Key | Default | Meaning |
|---------|-----|---------|---------|
| General | Enabled | true | Master switch. |
| Slots | Capacity | 15 | How many items fit. |
| Slots | Resize Inventory UI | true | Rebuild the slot grid to match Capacity. |
| Slots | Slots Per Row | 5 | Columns in the rebuilt grid. |
| Items | Per-Item Overrides | Body: Deny, Apparatus: Deny | ItemName: Category map. |
| Category.\* | Allow / Max Amount | — | Per-category toggle + cap. Tools/Shotgun/Knife/Signs on; scrap off. |
| Weight | Enabled / Multiplier | true / 1.0 | Contents add weight. |
| Misc | Grab Range / Tooltips / Empty Bag Action | 4 / on / on | Empty is a double tap of right-interact (E). |
| Misc | Empty Bag Double Tap Window | 0.4 | Seconds the second press has to land in. |
| Host | Enforce Capacity / Restrictions / Range | on | Server-side checks. |
Credits
The networking model and item-category system are adapted from BagConfig by
The Matty (mattymatty) (MIT) —. The
weight feature and resizable slot grid are original. See THIRD_PARTY_LICENSES.md.
Build
dotnet build -c Release → bin/Release/Iron.ImprovedBeltBag.dll. Uses the publicized
LethalCompany.GameLibs.Steam NuGet package (match the version to your build).
ImprovedBeltBag — Русское описание
⤴ English
Мод на BepInEx, делающий belt bag (поясную сумку) настраиваемой — ты сам решаешь, какие
типы предметов она принимает, ставишь лимиты, вес и меняешь число слотов.
- Категории по типам, у каждой свои Allow + Max Amount:
Tools (инструменты), Shotgun, Knife, Signs (знаки), One Handed Scrap,
Two Handed Scrap, Deny, плюс пер-предметные оверрайды. Можно, например, разрешить
инструменты/дробовик/ножи, но запретить металлолом — и отдельно ограничить, сколько
влезает одноручного и двуручного хлама.
- Вместимость и дальность захвата (энфорсятся хостом).
- Вес: сумка тяжелеет от содержимого (ванильные — невесомые
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: