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;

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

GetAngleToTarget( Target, Camera, newAngles );

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

2. so it shooting above their heads?