void ResetAllConditions() { playersTargetingMe.Clear(); playersKilledMe.Clear(); accusedBottingMessages.Clear(); beenPortedAwayLastPosition = ObjectManager.Me.Position.Clone(); }
void CheckForPortedAway(ref bool condition) { if (!beenPortedAway) { return; } if (beenPortedAwayLastPosition == null) { beenPortedAwayLastPosition = ObjectManager.Me.Position.Clone(); } double distance = beenPortedAwayLastPosition.Distance2D(ObjectManager.Me.Position); // distance 60 is an arbitrary big number to count in charge, blink, death grip, etc... // we might in the future need to do more advanced check if (distance > 60 && ObjectManager.Me.IsAlive) { condition = true; Log("I've just been teleported away"); } beenPortedAwayLastPosition = ObjectManager.Me.Position.Clone(); }
void CheckForPortedAway(ref bool condition) { if(!beenPortedAway) return; if(beenPortedAwayLastPosition == null) { beenPortedAwayLastPosition = ObjectManager.Me.Position.Clone(); } double distance = beenPortedAwayLastPosition.Distance2D(ObjectManager.Me.Position); // distance 60 is an arbitrary big number to count in charge, blink, death grip, etc... // we might in the future need to do more advanced check if(distance > 60 && ObjectManager.Me.IsAlive) { condition = true; Log("I've just been teleported away"); } beenPortedAwayLastPosition = ObjectManager.Me.Position.Clone(); }