Quote:
Originally Posted by GTLS
Also, the Path to PlayerMaker will not be available, a note to OP. This GPS will work for Server Sided scripted points only.
|
No. You can calculate a path from any node to any other node on the whole GTA SA Map and even custom maps if you add paths to them. You can get the closest node from the player's last marked position and use it as target for the calculation (which will be on the closest road to the marker).
I did a GPS system with gang zones 2011 (as part of the FS competition Gamer_Z did back then), sadly I cannot show you the video since it is on utube.
It looked exactly like the video of the singleplayer mod just that the path is a bit more pixelated because GangZones are rectangles.
I don't have the code anymore but it really isn't that hard to do.
Simply calculate a path using the GPS Plugin, when that has finished use the resulting node array to draw GangZones on the map. Save the GZ IDs into an array. Use the Plugin's Node Array feature to store the Path Nodes.
When the player moves check if he is still on the original path - if he is, destroy the gang zones behind him (since they were already visited).
If he isn't, re-calculate the path, destroy all Gang Zones of that path and draw the new path (etc).
Since nodes are usually a few meters away from each other, you should not use just one GangZone for a node, but build a line of GangZones between each node. Also no rocket science.