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

CHANGELOG

[1.0.0]

  • Initial release.
  • Added Harmony prefix on NutcrackerEnemyAI.Update to realign targetYRotation when non-host clients desync and see Nutcrackers chasing backwards.
  • Fixed client-side torso and shotgun aim lock by updating lastSeenPlayerPos with clear line of sight during active chases ( !lostPlayerInChase ).
  • Added tighter host-side UpdateEnemyRotationClientRpc rotation sync during active chases.
  • Kept all vanilla lostPlayerInChase stealth mechanics, leg kicks, and other EnemyAI behaviours intact.