Loona-NutcrackerBackwardsFix icon

NutcrackerBackwardsFix

Fixes the vanilla client desync bug where Nutcrackers chase non-host players backwards and lock their torso and shotgun aim.

By Loona
Last updated an hour ago
Total downloads 4
Total rating 0 
Categories Client-side Monsters Bug Fixes AI Generated
Dependency string Loona-NutcrackerBackwardsFix-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

Standalone, lightweight fix that prevents Nutcrackers from chasing non-host clients backwards and resolves the client-side torso lock preventing them from aiming or shooting.

What does it do?

  • Patches NutcrackerEnemyAI.Update on non-host clients to realign targetYRotation toward the serverPosition movement vector whenever the body desyncs and faces backwards.
  • Fixes torso & aim lock: updates lastSeenPlayerPos and timeSinceSeeingTarget during active chases ( !lostPlayerInChase ) when direct line of sight is clear, preventing the torso from freezing outside the 70° eye cone so CheckLineOfSightForLocalPlayer and aiming trigger properly.
  • Improves host rotation sync: sends tighter UpdateEnemyRotationClientRpc updates (2° threshold every 0.25s ) during active chases when also installed on the host.
  • Preserves all vanilla behaviour: stealth mechanics ( lostPlayerInChase ), leg kicks, reloading, and all other EnemyAI behaviours remain completely untouched.
  • Works client-side or host+client ( Requires BepInEx ; client fixes work standalone, host+client recommended for best sync ).

Compatibility

  • Tested on Lethal Company v81 with ButteryFixes ( 1.17.27 ), LethalFixes ( 1.3.3 ), EnemySkinRegistry ( 1.5.1 ), and ExtraEnemyVariety ( 1.14.1 ).
  • Plug-and-play: no configuration required.