Visible Check for AimBot

Posts 1–15 of 17 · Page 1 of 2
Visible Check for AimBot
Guys, what wronge in code? please help! Crash


Code:
IntersectQuery iQuery;
IntersectInfo iInfo;

struct IntersectInfo
{
	D3DXVECTOR3 vImpactPos; 
	char unk_0[16];
};

struct IntersectQuery
{
	D3DXVECTOR3 m_From; 
	D3DXVECTOR3 m_To; 
	char unknown24[12];
	unsigned int Flags; 
};

typedef bool(*IntersectSegment)(const IntersectQuery &Query, IntersectInfo *pInfo);
IntersectSegment oIntersectSegment;

bool __cdecl IsVisible(D3DXVECTOR3 MePos, D3DXVECTOR3 TargetPos)
{
	oIntersectSegment = (IntersectSegment)(0x67617d + 0x3);


	iQuery.m_From = MePos;
	iQuery.m_To = TargetPos;
	return !oIntersectSegment(iQuery, &iInfo);
}

if (IsValidClient(pPlayer) && IsVisible(GetBonePosition(Me->Object, 6), GetBonePosition(pPlayer->Object, 6)))
{
        //do aim
}

Pattern for 0x67617d (ALL region)
Code:
5D C3 CC 55 8B EC 8B 45 0C 50 8B 4D 08 51 8B 15 ?? ?? ?? ??
Quote Originally Posted by arooly View Post
Guys, what wronge in code? please help! Crash


Code:
IntersectQuery iQuery;
IntersectInfo iInfo;

struct IntersectInfo
{
	D3DXVECTOR3 vImpactPos; 
	char unk_0[16];
};

struct IntersectQuery
{
	D3DXVECTOR3 m_From; 
	D3DXVECTOR3 m_To; 
	char unknown24[12];
	unsigned int Flags; 
};

typedef bool(*IntersectSegment)(const IntersectQuery &Query, IntersectInfo *pInfo);
IntersectSegment oIntersectSegment;

bool __cdecl IsVisible(D3DXVECTOR3 MePos, D3DXVECTOR3 TargetPos)
{
	oIntersectSegment = (IntersectSegment)(0x67617d + 0x3);


	iQuery.m_From = MePos;
	iQuery.m_To = TargetPos;
	return !oIntersectSegment(iQuery, &iInfo);
}

if (IsVisible(GetBonePosition(Me->Object, 6), GetBonePosition(pPlayer->Object, 6)))
{
        //do aim
}

Pattern for 0x67617d (ALL region)
Code:
5D C3 CC 55 8B EC 8B 45 0C 50 8B 4D 08 51 8B 15 ?? ?? ?? ??
Classes are incomplete. Also check if the positions are NULL.
Quote Originally Posted by vaisefud3 View Post
Classes are incomplete. Also check if the positions are NULL.
Bro can you post full classes?

- - - Updated - - -


if you fix my code and send me back. i'll completely happy
Quote Originally Posted by arooly View Post
Bro can you post full classes?

- - - Updated - - -


if you fix my code and send me back. i'll completely happy
Many sources out there. Look the anykia base and you'll get the notion.
Quote Originally Posted by arooly View Post
Guys, what wronge in code? please help! Crash


Code:
IntersectQuery iQuery;
IntersectInfo iInfo;

struct IntersectInfo
{
	D3DXVECTOR3 vImpactPos; 
	char unk_0[16];
};

struct IntersectQuery
{
	D3DXVECTOR3 m_From; 
	D3DXVECTOR3 m_To; 
	char unknown24[12];
	unsigned int Flags; 
};

typedef bool(*IntersectSegment)(const IntersectQuery &Query, IntersectInfo *pInfo);
IntersectSegment oIntersectSegment;

bool __cdecl IsVisible(D3DXVECTOR3 MePos, D3DXVECTOR3 TargetPos)
{
	oIntersectSegment = (IntersectSegment)(0x67617d + 0x3);


	iQuery.m_From = MePos;
	iQuery.m_To = TargetPos;
	return !oIntersectSegment(iQuery, &iInfo);
}

if (IsValidClient(pPlayer) && IsVisible(GetBonePosition(Me->Object, 6), GetBonePosition(pPlayer->Object, 6)))
{
        //do aim
}

Pattern for 0x67617d (ALL region)
Code:
5D C3 CC 55 8B EC 8B 45 0C 50 8B 4D 08 51 8B 15 ?? ?? ?? ??
Same with ESP
try this way:

Code:
#define ADDR_INTERSECTSEGMENT	0x00676180

class CIntersectInfo
{
public:
	D3DXVECTOR3 vImpactPos;
};//Size=0x0012

class CIntersectQuery
{
public:
	D3DXVECTOR3 vStart; //0x0000 
	D3DXVECTOR3 vEnd; //0x000C 
char _0x0018[12];
	__int32 iFlags; //0x0024 
};//Size=0x0028

typedef bool( WINAPIV *TIntersectSegment )( const CIntersectQuery &iQuery, CIntersectInfo *pInfo );
TIntersectSegment OIntersectSegment = ( TIntersectSegment ) ADDR_INTERSECTSEGMENT;

const bool WINAPIV isVisible( D3DXVECTOR3 vStart, D3DXVECTOR3 vEnd )
{
	static CIntersectQuery iQuery;
	static CIntersectInfo  iInfo;

	memset( &iQuery, 0, sizeof( CIntersectQuery ) );

	iQuery.vStart = vStart;
	iQuery.vEnd   = vEnd;

	return !OIntersectSegment( iQuery, &iInfo );
}
Quote Originally Posted by luizimloko View Post
try this way:

Code:
#define ADDR_INTERSECTSEGMENT	0x00676180

class CIntersectInfo
{
public:
	D3DXVECTOR3 vImpactPos;
};//Size=0x0012

class CIntersectQuery
{
public:
	D3DXVECTOR3 vStart; //0x0000 
	D3DXVECTOR3 vEnd; //0x000C 
char _0x0018[12];
	__int32 iFlags; //0x0024 
};//Size=0x0028

typedef bool( WINAPIV *TIntersectSegment )( const CIntersectQuery &iQuery, CIntersectInfo *pInfo );
TIntersectSegment OIntersectSegment = ( TIntersectSegment ) ADDR_INTERSECTSEGMENT;

const bool WINAPIV isVisible( D3DXVECTOR3 vStart, D3DXVECTOR3 vEnd )
{
	static CIntersectQuery iQuery;
	static CIntersectInfo  iInfo;

	memset( &iQuery, 0, sizeof( CIntersectQuery ) );

	iQuery.vStart = vStart;
	iQuery.vEnd   = vEnd;

	return !OIntersectSegment( iQuery, &iInfo );
}
Thank you Bro! But crash again((

- - - Updated - - -

Quote Originally Posted by luizimloko View Post
try this way:

Code:
#define ADDR_INTERSECTSEGMENT	0x00676180

class CIntersectInfo
{
public:
	D3DXVECTOR3 vImpactPos;
};//Size=0x0012

class CIntersectQuery
{
public:
	D3DXVECTOR3 vStart; //0x0000 
	D3DXVECTOR3 vEnd; //0x000C 
char _0x0018[12];
	__int32 iFlags; //0x0024 
};//Size=0x0028

typedef bool( WINAPIV *TIntersectSegment )( const CIntersectQuery &iQuery, CIntersectInfo *pInfo );
TIntersectSegment OIntersectSegment = ( TIntersectSegment ) ADDR_INTERSECTSEGMENT;

const bool WINAPIV isVisible( D3DXVECTOR3 vStart, D3DXVECTOR3 vEnd )
{
	static CIntersectQuery iQuery;
	static CIntersectInfo  iInfo;

	memset( &iQuery, 0, sizeof( CIntersectQuery ) );

	iQuery.vStart = vStart;
	iQuery.vEnd   = vEnd;

	return !OIntersectSegment( iQuery, &iInfo );
}
bro! may be address is wrong?
l get it by this pattern -> 5D C3 CC 55 8B EC 8B 45 0C 50 8B 4D 08 51 8B 15 ?? ?? ?? ??

- - - Updated - - -

Quote Originally Posted by jayjay153 View Post
Same with ESP
what are you mean? l'm already have esp
Quote Originally Posted by arooly View Post
Thank you Bro! But crash again((

- - - Updated - - -



bro! may be address is wrong?
l get it by this pattern -> 5D C3 CC 55 8B EC 8B 45 0C 50 8B 4D 08 51 8B 15 ?? ?? ?? ??

- - - Updated - - -



what are you mean? l'm already have esp
DWORD aIntersectSegment = FindPattern((DWORD)GetModuleHandleA(eCF), 0xFFFFFF, (PBYTE)"\x5D\xC3\xCC\x55\x8B\xEC\x8B\x45\x0C\x50\x 8B\x4D\x08\x51\x8B\x15\x00\x00\x00\x00", "0000000000000000????");
aIntersectSegment = (aIntersectSegment + 0x3);
Quote Originally Posted by jayjay153 View Post
DWORD aIntersectSegment = FindPattern((DWORD)GetModuleHandleA(eCF), 0xFFFFFF, (PBYTE)"\x5D\xC3\xCC\x55\x8B\xEC\x8B\x45\x0C\x50\x 8B\x4D\x08\x51\x8B\x15\x00\x00\x00\x00", "0000000000000000????");
aIntersectSegment = (aIntersectSegment + 0x3);
Yeap. i have the same in my logger Bro!
aIntersectSegment = FindPattern(0x400000, 0XFFFFFFFF, (PBYTE)"\x5D\xC3\xCC\x55\x8B\xEC\x8B\x45\x0C\x50\x 8B\x4D\x08\x51\x8B\x15\x00\x00\x00\x00", "xxxxxxxxxxxxxxxx????");
aIntersectSegment = (aIntersectSegment + 0x3);
Quote Originally Posted by jayjay153 View Post
DWORD aIntersectSegment = FindPattern((DWORD)GetModuleHandleA(eCF), 0xFFFFFF, (PBYTE)"\x5D\xC3\xCC\x55\x8B\xEC\x8B\x45\x0C\x50\x 8B\x4D\x08\x51\x8B\x15\x00\x00\x00\x00", "0000000000000000????");
aIntersectSegment = (aIntersectSegment + 0x3);
Just out of curiosity, are you using DrawTextEngine?
I'm having some trouble with that function's parameters.
Quote Originally Posted by jayjay153 View Post
DWORD aIntersectSegment = FindPattern((DWORD)GetModuleHandleA(eCF), 0xFFFFFF, (PBYTE)"\x5D\xC3\xCC\x55\x8B\xEC\x8B\x45\x0C\x50\x 8B\x4D\x08\x51\x8B\x15\x00\x00\x00\x00", "0000000000000000????");
aIntersectSegment = (aIntersectSegment + 0x3);
Yeap. i have the same in my logger Bro!
Code:
aIntersectSegment = FindPattern(0x400000, 0XFFFFFFFF, (PBYTE)"\x5D\xC3\xCC\x55\x8B\xEC\x8B\x45\x0C\x50\x8B\x4D\x08\x51\x8B\x15\x00\x00\x00\x00", "xxxxxxxxxxxxxxxx????");
	aIntersectSegment = (aIntersectSegment + 0x3);
Quote Originally Posted by vaisefud3 View Post
Just out of curiosity, are you using DrawTextEngine?
I'm having some trouble with that function's parameters.
I'm using this way

Code:
RECT rect;
SetRect(&rect, x, y, x, y);

int g = 1;

RECT rect1;
SetRect(&rect1, x + g, y, x + g, y);
RECT rect2;
SetRect(&rect2, x - g, y, x - g, y);
RECT rect3;
SetRect(&rect3, x, y + g, x, y + g);
RECT rect4;
SetRect(&rect4, x, y - g, x, y - g);

Font->DrawText(NULL, text, -1, &rect1, DT_NOCLIP | DT_LEFT, Black);
Font->DrawText(NULL, text, -1, &rect2, DT_NOCLIP | DT_LEFT, Black);
Font->DrawText(NULL, text, -1, &rect3, DT_NOCLIP | DT_LEFT, Black);
Font->DrawText(NULL, text, -1, &rect4, DT_NOCLIP | DT_LEFT, Black);

Font->DrawText(NULL, text, -1, &rect, DT_NOCLIP | DT_LEFT, color);
Quote Originally Posted by derherHEWRHewhrhh4h View Post
At least, you have had to find out what the line of your code causes crash.
tomorrow i will figure out it and post under. l hope you help
maybe
Code:
const bool WINAPIV isVisible( D3DXVECTOR3 vStart, D3DXVECTOR3 vEnd )
{
	static CIntersectQuery iQuery;
	static CIntersectInfo  iInfo;

	oIntersectSegment = (IntersectSegment)(ADDR_Intersect);

	if(oIntersectSegment!=NULL)
	{
		iQuery.vStart = vStart;
		iQuery.vEnd   = vEnd;
	}

	return !OIntersectSegment( iQuery, &iInfo );
}
Quote Originally Posted by HardHaxing View Post
maybe
Code:
const bool WINAPIV isVisible( D3DXVECTOR3 vStart, D3DXVECTOR3 vEnd )
{
	static CIntersectQuery iQuery;
	static CIntersectInfo  iInfo;

	oIntersectSegment = (IntersectSegment)(ADDR_Intersect);

	if(oIntersectSegment!=NULL)
	{
		iQuery.vStart = vStart;
		iQuery.vEnd   = vEnd;
	}

	return !OIntersectSegment( iQuery, &iInfo );
}
again. ((((( Maybe i'm stupid. my code (under)
Code:
#define ADDR_INTERSECTSEGMENT	0x00677050 // new offset by pattern

class CIntersectInfo
{
public:
	D3DXVECTOR3 vImpactPos;
};//Size=0x0012

class CIntersectQuery
{
public:
	D3DXVECTOR3 vStart; //0x0000 
	D3DXVECTOR3 vEnd; //0x000C 
	char _0x0018[12];
	__int32 iFlags; //0x0024 
};//Size=0x0028

typedef bool(WINAPIV *TIntersectSegment)(const CIntersectQuery &iQuery, CIntersectInfo *pInfo);

const bool WINAPIV isVisible(D3DXVECTOR3 vStart, D3DXVECTOR3 vEnd)
{
	static CIntersectQuery iQuery;
	static CIntersectInfo  iInfo;

	TIntersectSegment OIntersectSegment = (TIntersectSegment)(ADDR_INTERSECTSEGMENT);

	if (OIntersectSegment != NULL)
	{
		iQuery.vStart = vStart;
		iQuery.vEnd = vEnd;
	}

	return !OIntersectSegment(iQuery, &iInfo);
}



...

typedef HRESULT(WINAPI *tPresent)(LPDIRECT3DDEVICE9 pDevice, CONST RECT *a, CONST RECT *b, HWND c, CONST RGNDATA *d);
tPresent oPresent;
HRESULT WINAPI hkPresent(LPDIRECT3DDEVICE9 pDevice, CONST RECT *a, CONST RECT *b, HWND c, CONST RGNDATA *d)
{
	StartFont(pDevice);
	menu(pDevice, X, Y);




	if (GetAsyncKeyState(key[menuBack]) & 1)
	{
		settingsFadeup();
	}

	hack();

	PlayerESP(pDevice);

	Radar(pDevice);

	if (GetAsyncKeyState(VK_SHIFT) < 0)
	{

		DWORD dwCShell = (DWORD)GetModuleHandle("CShell.dll");
		DWORD pLTClientShell = *(DWORD*)(dwCShell + LTCLIENT_SHELL);
		CPlayer* Me = GetPlayerByIndex(pLTClientShell, GetMyIndex(pLTClientShell));
		CPlayer* pPlayer = GetPlayerByIndex(pLTClientShell, iAimAt);

		if (IsValidClient(pPlayer))
		{
			if (isVisible(Me->Object->Body, pPlayer->Object->Body))//(isVisible(GetBonePosition(Me->Object, 6), GetBonePosition(pPlayer->Object, 6)))
			{
				aimshooting(pDevice);
			}
		}
		else
		{
			Aim(pDevice);
		}
		
	}

	return oPresent(pDevice, a, b, c, d);
}
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us