示例#1
0
 public static void FollowCursor()
 {
     if (_config.Item("dynamicmode").GetValue <StringList>().SelectedIndex == 1)
     {
         CameraMovement.SemiDynamic(ObjectManager.Player.Position.Extend(Game.CursorPos,
                                                                         _config.Item("followoffset").GetValue <Slider>().Value));
     }
 }
示例#2
0
 public static void EnemyTracker()
 {
     foreach (var enemy in HeroManager.Enemies.OrderBy(x => x.Distance(ObjectManager.Player.Position))
              .Where(x => x.IsValidTarget(ObjectManager.Player.AttackRange + 100)))
     {
         CameraMovement.SemiDynamic(enemy.Position);
     }
     CameraMovement.SemiDynamic(ObjectManager.Player.Position.Extend(Game.CursorPos, ObjectManager.Player.AttackRange));
 }
示例#3
0
        public static void FarmTracker()
        {
            var minions = MinionManager.GetMinions(ObjectManager.Player.Position,
                                                   (ObjectManager.Player.AttackRange + 100),
                                                   MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.Health)
                          .OrderBy(x => x.Distance(ObjectManager.Player.Position));

            foreach (var minion in minions)
            {
                CameraMovement.SemiDynamic(minion.Position);
            }
            CameraMovement.SemiDynamic(ObjectManager.Player.Position.Extend(Game.CursorPos, ObjectManager.Player.AttackRange));
        }
示例#4
0
 public static void Normal()
 {
     CameraMovement.SemiDynamic(ObjectManager.Player.Position);
 }