HelpSimple steps for making an external triggerbot?

Posts 13 of 3 · Page 1 of 1
Simple steps for making an external triggerbot?
Hi all,
Well I have decided to take a project for fun, and i thought I could give a try in making a simple external triggerbot hack.

I do C language for a year now and I am doing C++ for almost 7 months now so I am not a beginner and I am not experienced either, more like an amateur

Roughly I know what I need to do in order to make one, but I still cannot connect all of the dots.

I will not ask you to send me examples of a code, since that won't do any good.

I would ask you to write few simple steps in order for me, example,
1.Accessing adresses
2.
3.
etc.
1 -> Read Crosshair offset (u can get offsets in offset topic, somewhere in this forum, just search "csgo offsets");
2 -> if Crosshair offset greater than 0 and less or equal 65 (thats the id of the player that is in your crosshair), then read id base by
Code:
readProcessMemory(handle, LPVOID(clientdll + entitylistoffset + ((chrosshair -1) * 0x10), &address, sizeof(DWORD), null);
the reason of (chrosshair -1) its becuz the crosshair offset aways adds 1 to playerID, and the reason of the 0x10 its because each entity is 0x10 away from another..
>then read player team
Code:
readProcessMemory(handle, LPVOID(address+iTeamNumOffset), &Enemyteam, sizeof(int), null);
>read your playerbase
Code:
readProcessMemory(handle, LPVOID(clientdll+localplayerOffset), &LocalPlayer, sizeof(DWORD), null);
then read your team
Code:
readProcessMemory(handle, LPVOID(LocalPlayer+iTeamNumOffset), &PlayerTeam, sizeof(int), null);
compare if (Enemyteam != PlayerTeam)
if true
Code:
			WriteProcessMemory(gHandle, LPVOID(modAddress + forceAttack), &jump, sizeof(int), NULL);
			Sleep(10);
			WriteProcessMemory(gHandle, LPVOID(modAddress + forceAttack), &dJump, sizeof(int), NULL);
			Sleep(10);
That's my shit codded external trigger:

in main():

Code:
bool legit = 0;
while(1){
     if (GetAsyncKeyState(VK_F1) & 1) legit = !legit //toggle legit mode pressing f1
     if (GetAsyncKeyState(VK_MENU) & 0x8000) //while alt is pressed
     {
          TriggerBot(gHandle, legit)
     }
}
Code:
void lerDadosLocPlayer(HANDLE gHandle){
	ReadProcessMemory(gHandle, LPVOID(PlayerBase + teamNum), &playerTeam, sizeof(playerTeam), NULL);
	ReadProcessMemory(gHandle, LPVOID(PlayerBase + crosshairId), &enemyinCH, sizeof(enemyinCH), NULL);
}
Code:
void TriggerBot(HANDLE gHandle, bool legit){
	lerDadosLocPlayer(gHandle);
	if (enemyinCH > 0 && enemyinCH < 65){
		ReadProcessMemory(gHandle, LPVOID(modAddress + entityListO + ((enemyinCH - 1) * 0x10)), &enemyBase, sizeof(enemyBase), NULL);
		ReadProcessMemory(gHandle, LPVOID(enemyBase + teamNum), &EnemyTeam, sizeof(EnemyTeam), NULL);
		if (EnemyTeam != playerTeam){
			if (legit) Sleep(150); //if legit option = true, sleep 150ms before shoots!
			WriteProcessMemory(gHandle, LPVOID(modAddress + forceAttack), &jump, sizeof(int), NULL);
			Sleep(50);
			WriteProcessMemory(gHandle, LPVOID(modAddress + forceAttack), &dJump, sizeof(int), NULL);
			Sleep(20);
		}
	}
}
Been over a week since last update/bump after answers, assuming solved.

/Closed.
Posts 13 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?