Skip to content

Add monster navigation improvements and stuck detection #4306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Vanquish-6
Copy link

@Vanquish-6 Vanquish-6 commented Mar 28, 2025

Monsters being stuck on buildings etc never returned home, which IMO was a huge performance issue as Physics + Collide would be doing these checks non stop.

Monsters now will return home between 10-15 seconds of being stuck, and return to full HP as they did in retail

…, and make returning monsters respond to distress calls
Refactors fast monster healing based on reviewer feedback, replacing the flag/ActionChain approach with integration into VitalHeartBeat via GetStanceMod when MonsterState is Idle.

Ensures monsters still correctly interrupt healing (implicitly via state change) and retaliate if attacked during return or idle heal.

Adds logic to Movement() to skip stuck detection for monsters flagged with Stuck or AiImmobile.

Simplifies implementation, reduces state variables, and improves maintainability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant