UnhappyAimbot bug

Posts 16 of 6 · Page 1 of 1
Aimbot bug
Hey guys
I got my aimbot work now......

But i have still a problem :/

When i activate it, it aims like the nade but just not so high -.-

like: nade thowing up 5m - aimbot aims at 5cm

I tested *2 and something like this but ithout succeess.

I use Gellins Classes and aimbot method with pitch and yaw.
My defines:

[HTML]#define M_PI 3.14159265358979323846f
#define DegToRad( degree ) ( (degree) * (3.141592654f / 180.0f) )
#define PITCH 0
#define YAW 1
#define ROLL 2
My Code:[/HTML]

[HTML]void VectorAngles( const float* forward, float* angles )
{
float tmp, yaw, pitch;

if( forward[2] == 0 && forward[0] == 0 )
{
yaw = 0;

if( forward[2] > 0 )
pitch = 90;
else
pitch = 270;
}
else
{
yaw = ( atan2( forward[2], -forward[0] ) * 180 / M_PI )-90;

if( yaw < 0 )
yaw += 360;

tmp = sqrt( forward[0] * forward[0] + forward[2] * forward[2] );
pitch = ( atan2( forward[1], tmp) * 180 / M_PI );

if( pitch < 0 )
pitch += 360;
}

angles[0] = -pitch;
angles[1] = yaw;
angles[2] = 0;
}


void GetAngleToTarget(D3DXVECTOR3 vTargetPos, D3DXVECTOR3 vCameraPos, D3DXVECTOR3& vAngles)
{

D3DXVECTOR3 vDelta;
vDelta.x = vTargetPos.x - vCameraPos.x;
vDelta.y = vTargetPos.y - vCameraPos.y;
vDelta.z = vTargetPos.z - vCameraPos.z;

VectorAngles( (float*)&vDelta, (float*)&vAngles );

if( vAngles.x > 180.0f )
vAngles.x -= 360.0f;
else if( vAngles.x < -180.0f )
vAngles.x += 360.0f;

if( vAngles.y > 180.0f )
vAngles.y -= 360.0f;
else if( vAngles.y < -180.0f )
vAngles.y += 360.0f;
}

bool IsTargetInFieldOfView( D3DXVECTOR3 Camera, D3DXVECTOR3 Target )
{
float angle = 360.0f;

D3DXVECTOR3 newAngles( 0, 0, 0 );
D3DXVECTOR3 curAngles( 0, 0, 0 );

cGameClientShell* pGameClientShell;
pGameClientShell = *(cGameClientShell**)ADDR_GCS;

cPlayerMgr* pPlayerManager;
pPlayerManager = (cPlayerMgr*)pGameClientShell->GetPlayerManager();

GetAngleToTarget( Target, Camera, newAngles );

//pPlayerManager->Yaw = DegToRad( newAngles[YAW]);
pPlayerManager->Pitch = DegToRad( newAngles[PITCH]);

curAngles[YAW] = DegToRad( D3***oDegree( pPlayerManager->Yaw ) );
curAngles[PITCH] = DegToRad( D3***oDegree( pPlayerManager->Pitch ) );

if( newAngles[YAW] >= ( curAngles[YAW] - angle ) &&
newAngles[YAW] <= ( curAngles[YAW] + angle ) &&
newAngles[PITCH] >= ( curAngles[PITCH] - angle ) &&
newAngles[PITCH] <= ( curAngles[PITCH] + angle ) )
return true;

return false;
} [/HTML]

I hope u can help me
so it shooting above their heads?
/confused about the question
I fixed it i used wrong camera.

But now its aiming obove theam and on ALL players in the map -.-
How to make it aimong on other team? I dont get it work. My try isnt good :/
Show us how you call these functions, and we might be able to explain what you did wrong.
Ok my code is:

[html]Pos = fx->Object + 0x4;// i need this to go on enemy but i need a better number for head its left over the head a bit :/
IsTargetInFieldOfView(MyGetObjectMaxPos(pPlayerMan ager->CameraObject), Pos);// to aim at the enemy[/html]
Posts 16 of 6 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?