示例#1
0
        static AutoWalker()
        {
            GameID = DateTime.Now.Ticks + ""+RandomString(10);
            newPF = MainMenu.GetMenu("AB").Get<CheckBox>("newPF").CurrentValue;
            NavGraph=new NavGraph(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "EloBuddy\\AutoBuddyPlus"));
            PfNodes=new List<Vector3>();
            color = new ColorBGRA(79, 219, 50, 255);
            MyNexus = ObjectManager.Get<Obj_HQ>().First(n => n.IsAlly);
            EneMyNexus = ObjectManager.Get<Obj_HQ>().First(n => n.IsEnemy);
            EnemyLazer =
                ObjectManager.Get<Obj_AI_Turret>().FirstOrDefault(tur => !tur.IsAlly && tur.GetLane() == Lane.Spawn);
            myHero = ObjectManager.Player;
            initSummonerSpells();

            Target = ObjectManager.Player.Position;
            Orbwalker.DisableMovement = false;

            Orbwalker.DisableAttacking = false;
            Game.OnUpdate += Game_OnUpdate;
            Orbwalker.OverrideOrbwalkPosition = () => Target;
            if (Orbwalker.HoldRadius > 130 || Orbwalker.HoldRadius < 80)
            {
                Chat.Print("=================WARNING=================", Color.Red);
                Chat.Print("Your hold radius value in orbwalker isn't optimal for AutoBuddy", Color.Aqua);
                Chat.Print("Please set hold radius through menu=>Orbwalker");
                Chat.Print("Recommended values: Hold radius: 80-130, Delay between movements: 100-250");
            }
            
            Drawing.OnDraw += Drawing_OnDraw;
            
            Core.DelayAction(OnEndGame, 20000);
            updateItems();
            oldOrbwalk();
            Game.OnTick += OnTick;
        }
示例#2
0
文件: Node.cs 项目: qkwlqk/EloBuddy
        public Node(Stream f, byte[] b, NavGraph graph)
        {
            navGraph = graph;
            f.Read(b, 0, 4);
            Neighbors = new int[BitConverter.ToInt32(b, 0)];
            for (int i = 0; i < Neighbors.Length; i++)
            {
                f.Read(b, 0, 4);
                Neighbors[i] = BitConverter.ToInt32(b, 0);
            }
            position=new Vector3();
            f.Read(b, 0, 4);
            position.X = BitConverter.ToSingle(b, 0);
            f.Read(b, 0, 4);
            position.Y = BitConverter.ToSingle(b, 0);
            f.Read(b, 0, 4);
            position.Z = BitConverter.ToSingle(b, 0);


        }
示例#3
0
        public NavGraphTest(NavGraph n)
        {
            p=new List<Vector3>();
            navGraph = n;
            Menu menu = MainMenu.AddMenu("AB NavGraph", "abnavgraph");
            KeyBind addSelectNode = new KeyBind("Add/select node", false, KeyBind.BindTypes.HoldActive);
            addSelectNode.OnValueChange += addSelectNode_OnValueChange;
            KeyBind removeNode = new KeyBind("remove node", false, KeyBind.BindTypes.HoldActive);
            removeNode.OnValueChange += removeNode_OnValueChange;
            KeyBind addremoveneighbor = new KeyBind("Add/remove neighbor", false, KeyBind.BindTypes.HoldActive);
            addremoveneighbor.OnValueChange += addremoveneighbor_OnValueChange;

            menu.Add("addselsect", addSelectNode);
            menu.Add("removeno", removeNode);
            menu.Add("addneigh", addremoveneighbor);
            Slider zoom=new Slider("Zoom", 2250, 0, 5000);
            menu.Add("zoom", zoom);
            zoom.CurrentValue = (int)Camera.ZoomDistance;
            zoom.OnValueChange += zoom_OnValueChange;
            Chat.OnInput += Chat_OnInput;
            
            
        }
示例#4
0
 public Node(int[] neighbors, Vector3 pos, NavGraph graph)
 {
     navGraph  = graph;
     position  = pos;
     Neighbors = neighbors;
 }
示例#5
0
文件: Node.cs 项目: qkwlqk/EloBuddy
 public Node(int[] neighbors, Vector3 pos, NavGraph graph)
 {
     navGraph = graph;
     position=pos;
     Neighbors = neighbors;
 }