About 2 weeks ago my trigger bot was working at 05.01.17
DWORD WINAPI TB(LPVOID params)
{
cout << "Ai turrent shot online..." << endl;
while (!GetAsyncKeyState(Shutdown))
{
Sleep(1);
if (GetAsyncKeyState(ShutdownVkeyCode))
{
ExitThread(0);
}
if (GetAsyncKeyState(TriggerVkeyCode) < 0 && TriggerVkeyCode != 1)
{
int PlayerNumber = NewPlayer.GetCrosshairId();
if (PlayerNumber < 64 && PlayerNumber >= 0 && EntityList.GetTeam(PlayerNumber) != NewPlayer.GetTeam() && EntityList.IsDead(PlayerNumber) != true)
{
Click();
}
else
{
Sleep(1);
}
}
}
}
int whichKeyIsPressed() {
while (true) {
for (int i = 1; i < 255; i++) {
if (GetAsyncKeyState(i) & 0x8000) {
while (GetAsyncKeyState(i) & 0x8000) {
Sleep(50);
}
return i;
}
}
Sleep(10);
}
}
void ReadData(Player* p) {
p->team = mem.Read<int>(p->dwBase + offEntityTeam);
}
========================Offsets used=====
const DWORD DwCrosshairId = 0xAA70;
const DWORD DwVecViewOffset = 0x104;
const DWORD DwVecOrigin = 0x134;
const DWORD DwVecPunch = 0x301C;
const DWORD DwTeamNumber = 0xF0;
const DWORD DwShotsFired = 0xA2C0;
const DWORD DwFlags = 0x100;
const DWORD DwBoneMatrix = 0x2698;
const DWORD DwEntitySize = 0x10;
const DWORD DwHealth = 0xFC;
const DWORD DwLifeState = 0x25B;
const DWORD DwVecVelocity = 0x110;
const DWORD offEntityTeam = 0xF0;
const DWORD DwIsDormant = 0xE9;
DWORD DwEntityList = 0x04AC90F4;
DWORD DwEnginePointer = 0x005C75A4;
DWORD DwLocalPlayer = 0x00AA6818;
DWORD DwViewAngle = 0x00004D0C;
DWORD dwSpotted = 0x939;
DWORD dwjump = 0x04F5FC20;
offGlow = 0x004FE38C4;
offEntityList = 0x04AC90F4;
offLocalPlayer = 0x00AA6818;