Exemple #1
0
        void ResetAllConditions()
        {
            playersTargetingMe.Clear();
            playersKilledMe.Clear();
            accusedBottingMessages.Clear();


            beenPortedAwayLastPosition = ObjectManager.Me.Position.Clone();
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        void ResetAllConditions()
        {
            playersTargetingMe.Clear();
            playersKilledMe.Clear();
            accusedBottingMessages.Clear();

            beenPortedAwayLastPosition = ObjectManager.Me.Position.Clone();
        }
Exemple #4
0
        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();
        }