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)); } }
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)); }
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)); }
public static void Normal() { CameraMovement.SemiDynamic(ObjectManager.Player.Position); }