예제 #1
0
        static IncomingDamage()
        {
            Game.OnTick += Game_OnTick;

            Obj_AI_Base.OnBasicAttack      += Obj_AI_Base_OnBasicAttack;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            AttackableUnit.OnDamage        += Obj_AI_Base_OnDamage;

            ChampionTracker.Initialize(ChampionTrackerFlags.PostBasicAttackTracker);
            ChampionTracker.OnPostBasicAttack += ChampionTracker_OnPostBasicAttack;
        }
예제 #2
0
        internal static Vector3 GetLastPath(this Obj_AI_Base source)
        {
            var output = ChampionTracker.GetLastPath(source.NetworkId);

            return(output == default(Vector3) ? source.ServerPosition : output);
        }
예제 #3
0
        internal static Vector3 GetPathingDirection(this Obj_AI_Base source)
        {
            var output = ChampionTracker.GetPathingDirection(source.NetworkId);

            return(output == default(Vector3) ? source.ServerPosition : source.ServerPosition.Extend(output, 100).To3D());
        }