Skip to content
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

feat: Add MovingAI pathing for NPCs without combatAI #1509

Merged
merged 16 commits into from
Mar 27, 2024
Merged

feat: Add MovingAI pathing for NPCs without combatAI #1509

merged 16 commits into from
Mar 27, 2024

Conversation

EmosewaMC
Copy link
Collaborator

wow look we finally got it done, lets see how old this issue is
image
yeah thats pretty old

fixes #555

also fixes and unreported issue that apparently we were all just complacent with; enemies no longer do small teleports do go from location to location. They now follow a smooth path of their actual position which makes combat way more fun. The point of the Approximate location is kind of defeated now given the position needs to be set on every frame, but combat and moving proximity boxes are now correct.

Tested (in an unmodified vanilla client) that all enemies in crux move in smooth lines towards the player with no teleporting, Forbidden valley ronins and horsemen path smoothly
Battle of Nimbus Station enemies path smoothly
Avant Gardens Survival enemies path smoothly
Heimlich Stewblaster now moves along his path and stops when players are close
Robots in Robot City now move and stop when players interact with them (animation isnt consistent, but a non-issue)
both of the above also loop as per their pathing configuration.

Note: Pathing is only implemented right now for NPCs without CombatAI. This is because this was a necessary step to get the CombatAI working and a good stepping stone to implementing pathing overrides for CombatAI (see patrols for skeleton commanders in Crux Prime).

here is a video of the difference as well.
https://www.youtube.com/watch?v=7ZMOTrO34Sg

CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Collaborator

@jadebenn jadebenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@jadebenn jadebenn merged commit bd9b790 into main Mar 27, 2024
4 checks passed
@jadebenn jadebenn deleted the move branch March 27, 2024 02:06
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.

BUG: Heimlich Stewblaster stands still
3 participants