CrewShield

版本 v1.0.0·更新於 2026-10-12

Toggle direct teammate damage off while keeping monsters and hazards lethal. Covers melee and player-held shotguns. Install on every client.

模組介紹 作者原文

Crew Shield

Disable direct friendly fire in Lethal Company without making the crew invincible.

Behavior

  • Direct teammate shovel, sign, and knife hits routed through the player-hit RPC cause no damage.
  • Player-held shotgun blasts cause no damage to other players. Shotgun sounds, ammunition use, and damage to monsters still run normally.
  • Nutcrackers and other monsters remain lethal.
  • Mines, turrets, falls, drowning, explosions, vehicles, and other environmental hazards retain their normal damage.
  • Player-hit interactions continue to run; the mod does not cancel whole weapon attacks.

Indirect griefing remains possible: a teammate can trigger a mine, throw an explosive egg, or drive into someone. Those are hazards and remain lethal. Unheld shotgun accidents and self damage also remain enabled. Custom weapons are covered if they use the standard player-hit RPC; mods that kill players directly or use unrelated damage methods may bypass protection.

Install

Install BepInExPack 5.4.2100 for Lethal Company. Install Crew Shield on every player, including the host, and use the same configuration everywhere. Host-only installation does not cover shotgun damage on unmodified clients. This release does not synchronize config values over the network.

For local testing, use your mod manager's Import local mod option and select CrewShield-1.0.0.zip. If that option is unavailable, open the profile folder and copy the ZIP's BepInEx/plugins/CrewShield directory into the profile's BepInEx/plugins directory. Launch Modded.

For manual BepInEx installations, copy BepInEx/plugins/CrewShield/CrewShield.dll from the ZIP into the same path under your game directory.

Do not install multiple mods that alter friendly fire while testing this one.

Configure

After one launch, edit BepInEx/config/local.crewshield.cfg or use your mod manager's config editor:

[General]

DisableFriendlyFire = true

true disables direct friendly fire (default). false restores it. Restart the game after editing the file. Configure every participant consistently.

Verification and limitations

Compiled against the local Lethal Company installation, Steam build 22825947. The four patched method signatures were checked against that installation. Twelve automated damage-policy cases pass. No live multiplayer playtest has been performed, so treat version 1.0.0 as an initial test release.

Before a full session, test both directions of shovel/knife and shotgun damage with a host and one client. Confirm health stays unchanged, monsters can still be attacked, and a Nutcracker, fall, mine, and turret still cause normal damage. Repeat with the toggle off to confirm teammate damage returns. Check BepInEx/LogOutput.log for Crew Shield 1.0.0 loaded and patch errors.

This is a local -format package; it has not been uploaded. Upload under your own team if you choose to publish it. Add your repository or support URL to website_url when available.

Source

The accompanying source bundle includes Plugin.cs, DamagePolicy.cs, tests, and build.ps1. The package does not redistribute game assemblies or BepInEx libraries. See the source bundle's BUILD.md for rebuild instructions.

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

BepInEx-BepInExPack

檔案與校驗

檔案名稱
CrewShield-1.0.0.zip
檔案大小
10.2 KiB