BAndysc / WoWDatabaseEditor

Integrated development environment (IDE), an editor for Smart Scripts (SAI/smart_scripts) for TrinityCore based servers. Cmangos support work in progress. Featuring a 3D view built with OpenGL and custom ECS framework
MIT License
451 stars 154 forks source link

waypoints #155

Open updeal opened 2 years ago

updeal commented 2 years ago

Is your feature request related to a problem? Please describe. Add support for getting information only on points without the waypoints themselves, since these are intermediate points to a point. I only need the endpoints. And your software generates only intermediate waypoints, ignoring the endpoint.

Describe the solution you'd like for example:

(MovementMonsterSpline) (MovementSpline) [0] Points: X: 1787.1562 Y: 202.3698 Z: 70.35599
(MovementMonsterSpline) (MovementSpline) [0] WayPoints: X: 1772.3552 Y: 193.79198 Z: 71.60459
(MovementMonsterSpline) (MovementSpline) [1] WayPoints: X: 1777.3552 Y: 198.29198 Z: 71.35459
(MovementMonsterSpline) (MovementSpline) [2] WayPoints: X: 1778.1052 Y: 199.29198 Z: 71.10459
(MovementMonsterSpline) (MovementSpline) [3] WayPoints: X: 1780.8552 Y: 200.29198 Z: 70.85459
(MovementMonsterSpline) (MovementSpline) [4] WayPoints: X: 1783.8552 Y: 201.29198 Z: 70.85459

I want only [0] Points: X: 1787.1562 Y: 202.3698 Z: 70.35599. and I want to ignore all the waypoints (because these are useless points that will take up a lot of space in the database along the routes.)

Additional context like this https://imgur.com/a/eXYCpbx . i have all 1 point from each package! Waypoints need skip.

updeal commented 2 years ago

But there are exceptions where the NPC has only 1 package and there is its entire path. Then yes, there are waypoints needed. Therefore, I propose to make some kind of function that will allow you to ignore the waypoints themselves and receive only points.

updeal commented 2 years ago

Just imagine the NPC has 80 move packages (its 80 normal points). There are 3-6 waypoints in each package (where the difference between each waypoint is 0.5 meters) and so on in all 80 packages. And we believe that 80 * 6 = +-480 points will be his entire route. + there is also a distance between the last point of the waypoint and its final point (but you ignore this point and do not log it (leaving only the waypoints)).