[help]

Posts 1–5 of 5 · Page 1 of 1
[help]
EDIT: can someone tell me what i should learn to code an aimbot? like d3d or asm or what?

this is my current unfinished code for a memory aimbot based off of a very well known aimbot tut.
problem is that i dont know what to do to find how to change the camera position in any given fps game like combat arms.
can someone help me do this?
and should this code work with the right addies?

Code:
#include <windows.h>
#include <math.h>
//ADD DEFINES HERE

void aimbot(int PlayerX, int PlayerY, int PlayerZ, int EnemyX, int EnemyY, int EnemyZ)
{
	double Xdiff, Ydiff, angleA, angleB, newvalue;//angleB = decimal percantage of angle, A is angle of us and targ
	double halfCircle = 0xFFFFFFFF/2;
	DWORD newvalue2;
	if(EnemyX > PlayerX && EnemyY <= PlayerY)
	{
		Xdiff = EnemyX - PlayerX;
		Ydiff = PlayerY - EnemyY;
		angleA = atan(Ydiff/Xdiff) * 57.29578;
		angleB = (angleA/360);
		newvalue = 0xFFFFFFFF - (0xFFFFFFFF * angleB);
		newvalue2 = newvalue;
		//add writing to Xlook here : Poke((void*)cP.lookXa, &newValue2,4)
	}
	if(EnemyX <= PlayerX && EnemyY < PlayerY)
	{
		Xdiff = PlayerX - EnemyX;
		Ydiff = PlayerY - EnemyY;
		angleA = atan(Ydiff/Xdiff) * 57.29578;
		angleB = (angleA/360);
		newvalue = halfCircle + (0xFFFFFFFF * angleB);
		newvalue2 = newvalue;
	}
	if(EnemyX < PlayerX && EnemyY >= PlayerY)
	{
		Xdiff = PlayerX - EnemyX;
		Ydiff = EnemyY - PlayerY;
		angleA = atan(Ydiff/Xdiff) * 57.29578;
		angleB = (angleA/360);
		newvalue = halfCircle - (0xFFFFFFFF * angleB);
		newvalue2 = newvalue;
	}
	if(EnemyX >= PlayerX && EnemyY > PlayerY)
	{
		Xdiff = EnemyX - PlayerX;
		Ydiff = EnemyY - PlayerY;
		angleA = atan(Ydiff/Xdiff) * 57.29578;
		angleB = (angleA/360);
		newvalue = 0 + (0xFFFFFFFF * angleB);
		newvalue2 = newvalue;
	}
}

void info()
{
	DWORD * PlayerX = (DWORD*)(PLAYER_X);
	DWORD * PlayerY = (DWORD*)(PLAYER_Y);
	DWORD * PlayerZ = (DWORD*)(PLAYER_Z);
	DWORD * EnemyX = (DWORD*)(ENEMY_X);
	DWORD * EnemyY = (DWORD*)(ENEMY_Y);
	DWORD * EnemyZ = (DWORD*)(ENEMY_Z);
	aimbot(*PlayerX, *PlayerY, *PlayerZ, *EnemyX, *EnemyY, *EnemyZ);
}

void thread()
{
	for(;;)
	{
		if(GetAsyncKeyState(VK_NUMPAD1)&1)
		{
			info();
			Sleep(100);
		}
	}
}

	BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
{
   if(dwReason == DLL_PROCESS_ATTACH)
   {
       CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)thread, NULL, NULL, NULL);
   }
return TRUE;
}
Search for unknown value, move view on one axis, filter a change, repeat till you get the Pitch/Yaw (roll is always 0) values. Use those to change your view.
~lilneo
shouldn't i use increased/decreased because of the fact that it would take forever to find with changed value?
Quote Originally Posted by kibbles18 View Post
shouldn't i use increased/decreased because of the fact that it would take forever to find with changed value?
Yup, but you should be careful because you really don't know which way is increase and which way is decrease.
In CS:S It's like this:
Directly Up: Pitch = 90
Directly Down: Pitch = -90
Forward: Yaw = 0
Left: Yaw = 90
Right: Yaw = -90
Backwards: Yaw = 180/-180
Roll: Always 0

So I would look directly up, then directly down and check for a change of 180. But that depends if CA actually does things that way.

If you need more help with the aimbot, you can add me on msn
danielfraser589@hotmail.com

~lilneo
does every fps have a writeable camera address?
i want it to be a universal aimbot with only changes to the addys
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Talk with us