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

Question about AoE clicky stuff

mrwowbuddy

New Member
Joined
Mar 9, 2011
Messages
60
Reaction score
0
Range.webp

The black small circle is my mage.
The blue small circle is my mages pet.
The Large black circle is the boss (In this case Ragnaros)

Me.CurrentTarget.Location returns the middle of the boss, out of range of the pets freeze ability.

Me.CurrentTarget.Distance2D < 35 checks from the middle of the boss in reference to me.


I need some way to find the range to the Hitbox of the boss in relation to the pet. (The 20 yard distance) Also some way to click just inside the bosses hitbox using the pets distance to check the range. (Roughly where the line from the pet touches the boss)

Hopefully I have explained that right, and there would be some sort of solution available.
 
Last edited:
this might be wrong, but might also point you in the right direction
try something like this
Code:
 WoWPoint BossHitBoxy = WoWMathHelper.CalculatePointFrom(Me.CurrentTarget.Location, Me.Location, Me.CurrentTarget.CombatReach);
 
this might be wrong, but might also point you in the right direction
try something like this
Code:
 WoWPoint BossHitBoxy = WoWMathHelper.CalculatePointFrom(Me.CurrentTarget.Location, Me.Location, Me.CurrentTarget.CombatReach);

Close, but that won't work consistently.

Code:
 WoWPoint BossHitBoxy = WoWMathHelper.CalculatePointFrom(Me.CurrentTarget.Location, Me.Location,Math.Max(5, Me.CombatReach+1.33333f + Me.CurrentTarget.CombatReach) - 2f);

That should work just fine no matter how large the hitbox.
 
Back
Top