Results 1 to 1 of 1
  1. #1
    xBiznitch's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    My Mood
    Bitchy

    Question Looking For The Byte Info When Aiming At A Player

    Hey Guys, Im looking for the byte that changes when you are aiming at a player versus when you aren't. I'm attempting to make a triggerbot in C++ right now and I'm hung up on how it detects a player. I know this works for zombies because there is an actual value for if you are aiming at a zombie but I haven't seen it in multiplayer.

    Here's What I Have So Far, If you can give any suggestions or help, it would be much appreciated.
    Code:
    #include "stdafx.h"
    #include <windows.h>
    #include <iostream>
    
    using namespace std;
    
    // Triggerbot ID
    int Triggerbot = 0;
    
    // Simulates Key Press / Shoot
    void Shoot()
    {
    	Sleep(5);
    	mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
    	Sleep(5);
    	mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0):
    
    }
    
    int main()
    {
    	//Window Title
    	wchar_t* WindowName = L"Call of Duty® - ship - xBiznitch";
    
    	//Get Handle
    	HWND WindowHandle = FindWindow(NULL, WindowName);
    
    	//Get
    	DWORD Pid;
    	GetWindowThreadProcessId(WindowHandle, &Pid);
    
    	HANDLE phandle = OpenProcess(PROCESS_VM_READ, 0, Pid);
    
    	//Console Title
    	SetConsoleTitle(L"Black Ops 3 Triggerbot");
    	cout << "Loaded" << endl;
    
    	int Colour = 15;
    	HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    	SetConsoleTextAttribute(hConsole, Colour);
    
    
    	// Loop
    	for (;;)
    	{
    		ReadProcessMemory(phandle, (PBYTE*)(0x0), &Triggerbot, sizeof(Triggerbot), NULL);
    
    		// Looking at Enemy
    		if (Triggerbot == 1)
    		{
    			cout << "Shooting" << endl;
    			Sleep(1);
    			Shoot();
    			Sleep(1);
    		}
    
    		Sleep(1)
    	}
    }
    Last edited by akim14; 10-21-2016 at 09:20 AM.

Similar Threads

  1. Looking for Hack or info about one
    By salty21_db in forum League of Legends Help
    Replies: 1
    Last Post: 12-14-2010, 02:29 PM
  2. looking for the 2-3-2010 MPGH public hack release
    By dknight12345 in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 02-03-2010, 05:42 PM
  3. Looking for the minigun file
    By CAkiller124 in forum Combat Arms Mods & Rez Modding
    Replies: 1
    Last Post: 12-29-2009, 08:50 PM
  4. Looking for the menu.cfg file
    By master11 in forum Combat Arms Europe Hacks
    Replies: 5
    Last Post: 06-30-2009, 10:42 AM
  5. Looking for the old Warrock Game Files
    By Zededarian in forum WarRock - International Hacks
    Replies: 2
    Last Post: 01-10-2006, 03:30 PM