Ts3hosting
Path finding API, used by other plugins only

Supported Games

Path finding API, used by other plugins only. This plugin can only be used by other plugins.

  • It only takes in count coordinates such as: 241, 54, 2340.
  • No decimals. (using decimals makes the code go crazy slow).
  • You can easily call this plugin from other plugins.
  • The plugin is limited to 500 Loops, higher then that it will result as null (meaning no paths were found).
  • 1000 Loops is about 0.3s of search. 500Loops is about 0.06s200m on the ground will be around 200LoopsBut if you use it in houses with multiple levels, loops will occur much more (work is probably still needed on that).

The PathFinding:-Easy path => a simple line path that checks if there are anything blocking your way to another point, if not it will use this Easy straight path.

A* Pathfinding algorithm 3D => example of how the 2D works

Chat Commands

  • /path -- Aim where you want to go, and the plugin will try to force you to go there

Configuration

{
  "Max Loops": 500
}

Max Loops being the max loops allowed before the plugin timesout (500 is about 0.15s, 1000 around 0.4s and 5000 around 2s).

Developer API

List<Vector3> FindBestPath(Vector3 sourcePosition, Vector3 targetPosition)

Return the list of Vector3 accessible or null if no path was found. This uses the Easy path first, and if it can't use the easy path, uses the A* algorithm.

List<Vector3> FindPath(Vector3 sourcePosition, Vector3 targetPosition)

return the list of Vector3 accessible or null if no path was found, uses the A* algorithm.

List<Vector3> FindLinePath(Vector3 sourcePosition, Vector3 targetPosition)

Return the list of Vector3 accessible or null if no path was found, uses the Easy Path.

void FollowPath(BaseEntity entity, List<Vector3> pathpoints)

Force an entity to follow the pathpoints, can be a BasePlayer.

void FindAndFollowPath(BaseEntity entity, Vector3 sourcePosition, Vector3 targetPosition)

Finds the best path then forces the entity to follow the pathpoints, can be a BasePlayer.

Credits

  • Nogrod, the original author of the C# version of this plugin
  • Reneb, the original author of the Lua version
This plugin is unlicensed and the original author reserves all rights to it.

The original author may request that this plugin be removed and there is a risk that the plugin may be unavailable in the future.

Note that the current maintainer may not have permission to assign a license to the plugin if they are not the original author, so explicit permission would need to be obtained from the original author in order for the plugin to remain openly available and guarantee that it will be around for all to enjoy going forward.