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

🚀 [Feature] Improve waypoint movement #2713

Open
Stoabrogga opened this issue Aug 6, 2024 · 0 comments
Open

🚀 [Feature] Improve waypoint movement #2713

Stoabrogga opened this issue Aug 6, 2024 · 0 comments
Labels
feature New feature or request

Comments

@Stoabrogga
Copy link
Contributor

As it is now the creatures reset their animation after reaching a new waypoint node. To prevent this a new spline has to be sent to the client while the old one is still running. My old project was based on an AzerothCore fork from 2020 which was itself based on SunwellCore. They fixed this by starting a new spline 200ms before reaching the next node, which prevented the animation "hiccups", but was only a workaround. CMaNGOS seems to have implemented a better solution by sending a new spline 1.5s before reaching the end of the old one and ensuring that a spline is at least 6s long by including multiple nodes if necessary:
https://github.com/cmangos/mangos-classic/blob/master/src/game/MotionGenerators/WaypointMovementGenerator.cpp

I tried to implement this in my own project but gave up eventually (well, actually I gave up the entire project recently). Perhaps something similar could be implemented in VMaNGOS.

@Stoabrogga Stoabrogga added the feature New feature or request label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant