Esempio n. 1
0
        private void Game_OnTick(EventArgs args)
        {
            var position = hero.Position;

            if (teleportInfo.isTeleporting && teleportInfo.position != Vector3.Zero)
            {
                position = teleportInfo.position;
            }
            else if (!hero.IsHPBarRendered)
            {
                pathPosition = WaypointTracker.GetHeroCurrentPosition(hero);
                if (pathPosition != Vector2.Zero)
                {
                    position = pathPosition.To3D().SetZ(hero.ServerPosition.Z);
                }
                else
                {
                    position = hero.ServerPosition;
                }
            }

            var posInfo = ExtendedAwareness.GetScreenPosition(position);

            if (posInfo != null)
            {
                lastPosInfo = posInfo;
            }

            /*if (!hero.IsVisible && hero.ServerPosition.To2D().Distance(leaveVisiblityPosition) > 5)
             * {
             *  renderFOWTime = HelperUtils.TickCount + 1000;
             *  leaveVisiblityPosition = hero.ServerPosition.To2D();
             * }*/
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     extendedAwareness = new ExtendedAwareness();
 }
Esempio n. 3
0
 public static void Main()
 {
     extendedAwareness = new ExtendedAwareness();
 }
Esempio n. 4
0
 static void Main(string[] args)
 {
     extendedAwareness = new ExtendedAwareness();
 }