Simple trigger bot
Hello gaiiiiiyyyyss.
Right now I am using ProcMem.h and ProcMem.cpp by Fleep ( Ithink). But I am trying to make this simple triggerbot, it launches fine no error and finds process and module but for some reason it doesnt shoot. I appreciate the help, thanks.
Right now I am using ProcMem.h and ProcMem.cpp by Fleep ( Ithink). But I am trying to make this simple triggerbot, it launches fine no error and finds process and module but for some reason it doesnt shoot. I appreciate the help, thanks.
Code:
#include <iostream>
#include <cstdio>
#include "ProcMem.h"
ProcMem Mem;
using namespace std;
const DWORD playerBase = 0x00A30504;
const DWORD entityBase = 0x04A4B934;
const DWORD crosshairOffset = 0x0000AA44;
const DWORD teamOffset = 0xF0;
const DWORD healthOffset = 0xFC;
const DWORD EntLoopDist = 0x10;
int main()
{
Mem.Process("csgo.exe");
DWORD clientDll = Mem.Module("client.dll");
DWORD LocalPlayer = Mem.Read<DWORD>(clientDll + playerBase);
int LocalTeam = Mem.Read<int>(LocalPlayer + teamOffset);
int CrossHairID = Mem.Read<int>(LocalPlayer + crosshairOffset);
while (true)
{
DWORD EnemyInCH = Mem.Read<DWORD>(clientDll + entityBase + ((CrossHairID - 1) * EntLoopDist));
int EnemyHealth = Mem.Read<int>(EnemyInCH + healthOffset);
int EnemyTeam = Mem.Read<int>(EnemyInCH + teamOffset);
if (LocalTeam != EnemyTeam && EnemyHealth > 0)
{
mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
}
}
}

The program still runs but it still doesn't shoot. I added: