Hello everyone,
I just had a few questions regarding CTM that I was hoping someone could shed some light on. Right now, my application is fully in process and I am calling the ClickToMove function directly from my EndScene hook and everything is working perfectly.
I also am using a breadcrumb navigation system developed around Apoc's great article: http://www.mmowned.com/forums/world-...b-pathing.html
As I said before everything is working correctly and I can traverse a navigation waypoint system outlined above.
Here are my questions:
1) I am thinking about adding in a rudimentary unsticking system into my movement/navigation. I am trying to start simple and came up with a simple system which identifies when I've stopped moving and haven't reached my target location. It will then calculate a point which is directly 5-10 yards away to my left or right and will move there and then attempt to resume movement to my intended location.
Questions:
1a) When I calculate the new point to try to use to navigate around the object, I am simply taking my currently location and offsetting the X or Y position. At this point I have no way of knowing (in its current state) what the Z location is of that new location. At this time, should I be calling ClickToMove passing it my new Location struct with a blank Z axis or ...?
1b) It seems that when I pass a location (X,Y,Z struct) to the CTM function with the Z value set to 0.0f it works fine. If I'm not "flying" and just staying on the ground for movement, is there any benefits or drawbacks of providing or not providing a Z value? If I incorrectly set a Z value for a position, can this potential send up some "red flags" that the CTM call did not come from the client/user actually clicking?
2) When people use breadcrumb/CTM navigation, do they normally add randomization (maybe adding a yard or 2 to the X/Y locations) so that it's not so obvious that a player is ALWAYS clicking in the same locations? I'm probably reading into this too much, but I was just wondering what other people do.
Thanks again for your responses, I very much appreciate it.