Traceline can not replace a mesh nav. It should be only used for LOS things like building edges, trees and stuff on the ground... If you want to go from point A to point B fast and efficiently you must apply Dijkstra's algorithm. You cant do that with Traceline, it would in insane. I do like the idea But a mix of the 2 would be so much better Come to think of it why does HB not do that? I have seen HB run into so many objects... Like x-mass is coming up and how it runs into x-mass trees -_-
Of course isn't it able to replace a navmesh. I don't get the poin about Dijkstra since they first apporach is a way to move around an obstacle at all, no matter if it's efficient or not.
The problem here in that case is that you can't do as many tracelines as you want to and calculate a path with A* or Dijkstra since you have to use injection and hundreds or thousands of tracelines would slow down the whole game and result in a big overhead.
I'm curious if you've found a way to have a 3d mesh which allows you to calculate the best paths in a three dimensional space since this would cost much much more ressources than it does already 2d.
The reason why you can't have a perfect navmesh is the reason that TraceLine only returns results for a line, but your character model collides as a cylinder (get the difference between a 3d and a 1d shape?). In fact do you need an infinite amount of TraceLine-Actions in order to really determine if you would run into any collision. The current approach with about 15 tracelines start at the edges of the character-model at the start- and end-location is enough because it keeps a balance between efficiency and costs.
This screenshot I provided is doing exactly that. We simply use traceline to go from A to B. The reason there is a whole mess of things here is because In this screenshot I was archa botting, this was the result after farming the whole zone, so around 8 different paths from my start location to the next dig/survey.
If you have a better method... Please share ^^
|Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|
on a sidenote...
Started a little in process code editor that lets you modify and run code on the fly using some API functions from the host in Planetside 2. By implementing IPSSnippet those snippets can hook up to certain events like EndScene and stuff.
An image of one such snippet (mostly chat related):
And ingame:
Last edited by Cromon; 12-03-2012 at 07:14 PM.
Can you do this on a live server ?
This tool was developed for private servers. I dont remember if it was done client side and then pushed to the server... Therefore you could do this on retail servers but it only would be client side.. Last time I talked to DrakeFish this only worked on 3.3.5 server.
Just another video of my 1.12.1 bot:
1.12.1 Bot Custom Class - YouTube
Working on Warz Stuff...
Thanks to Jadd for Rotation code Math is hard
+Radar
+Aim bot (Buggy)