You are viewing a potentially older version of this package. View all versions.
randomuserhi-ShooterBugFix-0.0.2 icon

ShooterBugFix

Actually fixed for real this time!

Date uploaded 2 years ago
Version 0.0.2
Download link randomuserhi-ShooterBugFix-0.0.2.zip
Downloads 105
Dependency string randomuserhi-ShooterBugFix-0.0.2

This mod requires the following mods to function

BepInEx-BepInExPack_GTFO-3.2.1 icon
BepInEx-BepInExPack_GTFO

BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.

Preferred version: 3.2.1

README

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: https://issuetracker.unity3d.com/issues/raycasts-fail-to-hit-collider-when-there-is-a-different-gameobject-with-a-collider-very-far-away-in-the-scene

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 guns 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 it will only perform the cull while you are out of combat.

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.
  • A confirm message of some sort that lets players cancel a cull operation if its going to occure during an unfavourable situation.