ShooterBugFix

版本 v0.0.5·更新於 2024-02-17

Actually fixed for real this time!

模組介紹 作者原文

Causes

Shooter bug and other related RayCast issues such as C-Foam going through doors and Mines not killing players are caused by a Unity bug detailed here:

This bug happens as a result of projectiles with colliders falling out of bounds and travelling super far away as a result causing the above Unity bug to occure.

Any object with a collider that can travel out of bounds can cause this bug, but the worst offender are gun magazines as these persist through level restarts, and thus continue to fall even during lobby screen.

  • This is why switching gun loadout in lobby can sometimes fix this bug as it will destroy all magazines generated from your previously equipped gun.

What this plugin does

Since this bug can happen due to ANY object with a collider travelling far, its hard to pin-point it to a single object. (A player throwing a glowstick down elevator hole can induce the bug if the level is played long enough). As a result a simple fix such as disabling gun magazines isn't as viable.

For this reason, this plugin prior-level start will check ALL objects with a collider and destroy any too far from world origin. During gameplay, it checks every 1 hour (configurable). To prevent hiccups during combat, if a check needs to be performed, it will ask the player to manually trigger one.

To manually trigger a check, simply type "cull" (configurable) in chat.

Host issues

This plugin only culls objects for the local player, this means that if someone else has become shooter-bugged this plugin will not save them unless they have it installed as well. As a result, if host gets shooter bugged and as a result C-foam stops colliding with doors (I believe this is host-side calculated) then there is nothing you can do. In general it is best for either everyone to have this mod installed, or restart the game / switch loadouts between expeditions.

  • The culling process will mention how many objects were culled, so you could possibly warn other players in the lobby that they may get bugged soon if the mod reports that it culled an item for you.

Possible changes (But I'm too lazy to implement)

  • Once I confirm all potential causes, the cull can be reduced to only check the problematic objects, as of now it will check all.

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

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

BepInEx-BepInExPack_GTFO

檔案與校驗

檔案名稱
ShooterBugFix-0.0.5.zip
檔案大小
31.5 KiB