Commit graph

58 commits

Author SHA1 Message Date
Sryder
379ef52c25 Correct no next waypoint warning message. 2019-06-09 20:37:47 +01:00
Sryder
e9786fa956 Waypoint pathfinding exists!
Includes some small refactoring of older functions - single return is a bit safer and easier to debug.
Still needs doing are: Finish Line Waypoint, Shortcut waypoints, disabled waypoints.
The actual A* method itself is a bit of a monster, but I can't figure out how to refactor it too much more.
2019-06-09 19:49:21 +01:00
Sryder
c38be00196 Calculate euclidean distances between each waypoint on map load.
Change some Debug prints to Alert prints for easier debugging for mappers.
2019-06-02 21:44:07 +01:00
Sryder
ce4ba3141f Update to search functions to make them more extendable
Some more minor formatting changes
2019-02-04 21:50:14 +00:00
Sryder
79f381ebd4 Add visual debugging mode for waypoints
Fix some compiler warnings
2019-02-02 21:35:21 +00:00
Sryder
5fba15a58b Make waypoints setup on map load
Refactor some things to make slightly clearer code
Change comments to use completely tabs
Add extra error checks to methods for helpful debugging and safety
Use a heap of waypoints during creation to be able to search for them to make links, to not freeze the game
Add a way to clear waypoints so that the methods don't error after more than one map load
Flip the ambush flag so that adding it will make the waypoint unable to be respawned at when the feature happens
Temporarily disable K_UpdateKartPosition so that it doesn't crash on map load
2019-02-02 13:50:22 +00:00
Sryder
3efbe62a41 Fix a comment and other minor edits 2018-12-08 20:34:38 +00:00
Sryder
d1a10d70f5 Initial step of Waypoints
Basically just copied what I planned out months ago and put it into code for now
Also changed waypointcap to be made from MT_WAYPOINTs and definitely broke position in this commit from that.
2018-12-07 23:40:28 +00:00