Example #1
0
        public Aimbot(MemoryReaderWriter gameState)
        {
            this.gameState     = gameState;
            navLocked          = false;
            followPlayer       = false;
            arcMode            = false;
            ProjectileVelocity = 0;
            GravityScale       = 1;

            rand              = new Random();
            aimTimer          = new Timer(10);
            aimTimer.Elapsed += new ElapsedEventHandler(aimTimer_Elapsed);
            aimTimer.Start();
        }
Example #2
0
        //class constructor
        public Navigation(Graph graph, MemoryReaderWriter gameState)
        {
            CurrentPath         = new Stack <Waypoint>();
            walker              = new Thread(new ThreadStart(WalkPath));
            walker.Name         = "Walker";
            walker.IsBackground = true;
            this.graph          = graph;
            this.gameState      = gameState;

            aimbot = new Aimbot(gameState);

            Walking       = false;
            StrafeMode    = false;
            stopRequested = true;
            NodeRadius    = 0.5F;
            walker.Start();
        }
Example #3
0
        public void Start()
        {
            gameState = form1.gameState;

            if (aiIsRunning)
            {
                form1.WriteAI("ERROR: AI is already running");
                return;
            }
            if (!gameState.processRunning)
            {
                form1.WriteAI("ERROR: Halo is not running");
                return;
            }
            if (root == null)
            {
                form1.WriteAI("ERROR: Please load a valid AI script");
                return;
            }

            form1.nav.AimAhead = false;
            form1.nav.aimbot.LookAheadUnlock();
            form1.nav.aimbot.NavUnlock();
            form1.nav.StrafeMode                  = false;
            form1.nav.aimbot.arcMode              = false;
            form1.nav.aimbot.GravityScale         = 1;
            form1.nav.aimbot.ProjectileVelocity   = 0;
            dataSources[(int)DATA_SOURCES.VALUE1] = 0;
            dataSources[(int)DATA_SOURCES.VALUE2] = 0;
            dataSources[(int)DATA_SOURCES.VALUE3] = 0;
            dataSources[(int)DATA_SOURCES.VALUE4] = 0;
            dataSources[(int)DATA_SOURCES.VALUE5] = 0;

            form1.startAIButton.Enabled = false;
            form1.stopAIButton.Enabled  = true;

            ready = true;
            aiTimer.Start();
            aiIsRunning = true;
        }