HelpStruct or Class for esp distance

Posts 1–8 of 8 · Page 1 of 1
Struct or Class for esp distance
i need struct or class for esp distance? can some one help me
Code:
FLOAT GetDiffDistance( D3DXVECTOR3 Me, D3DXVECTOR3 Target )
{
	return sqrt( Me.x * Target.x + Me.y * Target.y + Me.z * Target.z ) / 100;
}

	CHAR Distance[MAX_PATH];

	sprintf( Distance, "Difference between You - Enemy is: %0.0f", GetDiffDistance( Me->Object->Position, Target->Object->Position ) );
	DrawText( Target->Object->Position.x, Target->Object->Position.y, Distance );
Quote Originally Posted by luizimloko View Post
Code:
FLOAT GetDiffDistance( D3DXVECTOR3 Me, D3DXVECTOR3 Target )
{
	return sqrt( Me.x * Target.x + Me.y * Target.y + Me.z * Target.z ) / 100;
}


	CHAR Distance[MAX_PATH];

	sprintf( Distance, "Difference between You - Enemy is: %0.0f", GetDiffDistance( Me->Object->Position, Target->Object->Position ) );
	DrawText( Target->Object->Position.x, Target->Object->Position.y, Distance );
thank you bro ................................
another way for finding distance:

Code:
float CalculateDist(D3DXVECTOR3 from, D3DXVECTOR3 to)
{
	float _x, _y, _z;
	_x = to.x - from.x;
	_y = to.y - from.y;
	_z = to.z - from.z;
	return sqrt(_x*_x + _y*_y + _z*_z);
}
and then how to use:

Code:
char txt[MAX_PATH];
if(DistanceESP)
{
	sprintf_s(txt, "Distance: [%d]", (DWORD)(CalculateDist(Me->Object->Body, pPlayer->Object->Body)/100));
	DrawText(pDevice,BodyPosition.x ,BodyPosition.y, ESP_Color, txt);
}
Quote Originally Posted by -[I]fLuX View Post
another way for finding distance:

Code:
float CalculateDist(D3DXVECTOR3 from, D3DXVECTOR3 to)
{
	float _x, _y, _z;
	_x = to.x - from.x;
	_y = to.y - from.y;
	_z = to.z - from.z;
	return sqrt(_x*_x + _y*_y + _z*_z);
}
and then how to use:

Code:
char txt[MAX_PATH];
if(DistanceESP)
{
	sprintf_s(txt, "Distance: [%d]", (DWORD)(CalculateDist(Me->Object->Body, pPlayer->Object->Body)/100));
	DrawText(pDevice,BodyPosition.x ,BodyPosition.y, ESP_Color, txt);
}
thanks bro
Quote Originally Posted by -[I]fLuX View Post
another way for finding distance:

Code:
float CalculateDist(D3DXVECTOR3 from, D3DXVECTOR3 to)
{
	float _x, _y, _z;
	_x = to.x - from.x;
	_y = to.y - from.y;
	_z = to.z - from.z;
	return sqrt(_x*_x + _y*_y + _z*_z);
}
and then how to use:

Code:
char txt[MAX_PATH];
if(DistanceESP)
{
	sprintf_s(txt, "Distance: [%d]", (DWORD)(CalculateDist(Me->Object->Body, pPlayer->Object->Body)/100));
	DrawText(pDevice,BodyPosition.x ,BodyPosition.y, ESP_Color, txt);
}
i smell myself here ..
anyway no one of you actually helped this guy, he asked for a struct / class not just plain code..
Quote Originally Posted by giniyat101 View Post
i smell myself here ..
anyway no one of you actually helped this guy, he asked for a struct / class not just plain code..
they he need to say which classes he have and which he need
Quote Originally Posted by -[I]fLuX View Post
they he need to say which classes he have and which he need
have : none
need : all
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us