Jump to content

How To Utilize Demon Hunter Glide & Maneuverability


Recommended Posts

So far any effort I have made to utilize the Demon Hunters' maneuverability has looked incredibly bot-like.

The following code is my attempt to find a suitably-far point to move to (to prevent the bot from using the Glide ability, only to immediately turn back because it didn't remove a waypoint passed while flying.

The problem is that, without a way to determine whether or not the bot is on the ground or up in the air, there really isn't a good way to handle cases where the bot might overshoot a waypoint (or perform a simple turn while gliding).

Seems like if I could figure out how to tell when the DH is in the air, it would be possible to have it skip/remove any waypoints if the bot passes withing N yards of its X, Y coordinates.

How can I do this?

Current Code

public void DemonHunterGlide()
		wManager.Events.MovementEvents.OnMovementPulse += (path, cancelable) =>
			var furthestPointInLoS= path.Where(p=> !TraceLine.TraceLineGo(ObjectManager.Me.Position, p, wManager.Wow.Enums.CGWorldFrameHitFlags.HitTestAll)).OrderBy(p=> ObjectManager.Me.Position.DistanceTo(p)).LastOrDefault();
			var distance = ObjectManager.Me.Position.DistanceTo(furthestPointInLoS);
          	Logging.Write("Distance = " + distance + ", Point = " + furthestPointInLoS.ToString());
			Logging.Write(@"Beginning Demon Hunter ""Glide"" ability with a jump");


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...