Trying to make a triggerbot.
Hello, today i am trying to make a triggerbot. But im wondering: wich offset is shoot and wich is enemy?
offsets are here: pastebin.com/DK5rsSQT .
ty in advance!
offsets are here: pastebin.com/DK5rsSQT .
ty in advance!
mouse_event(MOUSEEVENTTF_LEFTDOWN, NULL, NULL, NULL, NULL); (just some pseudo example code
// beware of horribly formated codelmao
DWORD client;
//... somewhere
client = Module("client.dll");
/...
void trig_c0denz() {
if (yourboolorsomerandomconditiontodetermineiftriggerisenabledlmao) {
uintptr_t myPlayer = Read<uintrptr_t>(client + LocalPlayerOffset); // Your player
int crosshairId = Read<int>(myPlayer + 0x2410); // what you're aming at
int Team = Read<int>(myPlayer + 0xF0); // your team
int Health = Read<int<(myPlayer + 0xFC); // your health
crosshairId--; // decement the list index
uintptr_t _Entity_You_Are_Aiming_At = Read<uintptr_t>(client + enttiyListOffset + (crosshairId * 0x10)); // 0x10 is the spacing between each entity in list
int eTeam = Read<int>(_Entity_You_Are_Aiming_At + 0xF0); // guy you're aiming ats team
int eHealth = Read<int<(_Entity_You_Are_Aiming_At + 0xFC); // gur you're aming ats health
if (eTeam != Team && eHealth > 0 && eHealth <= 100) {
Write<int>(client + AttackOffset, 5); // +attack
Sleep(100); // Delay between release
Write<int>(client + AttackOffset, 4); // -attack
}
}
}