Faction - DistNoRoot or DistNoRootNoz?
I noticed not all NPC aggro faction is working so i was looking through the source. I can trace what is going on up to this snippet here:
Code:
if(currentmob->CastToClient()->DistNoRoot(sender) <= dist2) { Thanks |
The distance formula for x,y is
squareroot((x1 - x2)^2 +(y1-y2)^2).. noz is that distnorootnoz is the same, without the root(not always needed, takes cpu time) distnoroot is xyz, with no root, same reason dist is xyz with root |
All times are GMT -4. The time now is 12:50 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.