What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Making HB face the target only if ...

raphus

Well-Known Member
Joined
Jun 17, 2010
Messages
2,094
Reaction score
492
In most of the CCs WoWMovement.Face is executed in a spam so that the bot will follow the target moving which is pretty bottish.

Adding a check if (!Me.IsFacing(Me.CurrentTarget)) before WoWMovement.Face makes it better. Although it won't face if the target is in like a 179 degree cone ahead which also doesn't look good.

Is it possible with HB to check if the target is in like a 60 degree cone ahead of the way the character is facing, so It can run WoWMovement.Face only if this conditions meets ?

Thinking of adding something like to a CC im working atm.
 
Last edited:
any thoughts ?

I'm thinking of a trigonometric calculation. When the first time WoWMovement.Face used the angle will be set to 0. After that making calculations with Me.Location, Target.OldLocation and Target.NewLocation may give the new angle and faces if the angle is greater then 60 ?
 
Back
Top