AI Behavior Update

It's John's House · published · build 20990306

Patch Notes – AI Improvements

🧠 Mama AI

  • Fixed a bug where Mama could get stuck in front of cabinets and never leave.

  • Added a cabinet safety timeout so Mama always returns to patrol after several seconds.

  • Improved cabinet state transitions and ensured all detection flags reset correctly.

  • Improved chasing and patrol logic for more consistent transitions.

👀 Enemy Sight

  • Refined detection for hiding players and cabinet-checking behavior.

  • Improved chance calculations based on player mistakes (spotting and checking probability).

  • More reliable vision raycasts and better handling when Mama is already chasing.

🚪 Doors & Movement

  • Improved door-opening behavior to prevent Mama from freezing at doorways.

  • More stable NavMesh movement and destination checks.

🔊 Audio

  • Smoothed out chase/ambient sound transitions.

  • Improved footstep and state-based sound playback.