- Joined
- Dec 10, 2016
- RedCents
- 3,125¢
So KissAssist tends to get backstabbed or just plain pummeled from the back quite a bit. I as thinking this would be easily solved with a for loop someone in its attack checks. The pseudo-code below checks if the mob is straight ahead of us or to our sides. We could easily adjust the degrees down till we like it.
The hardest part may be deciding how to get them all in front. Do we spin around our current target slightly? That may be easiest.
The hardest part may be deciding how to get them all in front. Do we spin around our current target slightly? That may be easiest.
Rich (BB code):
Sub CheckForBackStabs
/declare i int local 1
/for i 1 to ${Me.XTarget}
/if ${If[${Math.Calc[((${Me.Heading.Degrees}-${Me.XTarget.HeadingTo.Degrees}+375)%360)*-1]}>-30,"FALSE",${If[${Math.Calc[((${Me.Heading.Degrees}-${Me.XTarget.HeadingTo.Degrees}+360)%360)*-1]}>-180,"TRUE","TRUE"]}]} /echo MOB IS BEHIND ME YO!
/next i
/return

