Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › CrossFire Hacks & Cheats › CrossFire Hack Coding / Programming / Source Code › Visible Check for AimBot

Visible Check for AimBot

Posts 1–15 of 17 · Page 1 of 2
AR
arooly
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 ?? ?? ?? ??
#1 · edited 8y ago · 8y ago
VA
vaisefud3
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.
#2 · 8y ago
AR
arooly
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
#3 · 8y ago
VA
vaisefud3
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.
#4 · 8y ago
JA
jayjay153
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
#5 · 8y ago
luizimloko
luizimloko
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 );
}
#6 · 8y ago
AR
arooly
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
#7 · edited 8y ago · 8y ago
JA
jayjay153
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);
#8 · 8y ago
AR
arooly
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);
#9 · edited 8y ago · 8y ago
VA
vaisefud3
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.
#10 · 8y ago
AR
arooly
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);
#11 · 8y ago
AR
arooly
Quote Originally Posted by bbroman 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
#12 · 8y ago
HA
HardHaxing
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 );
}
#13 · 8y ago
JA
jayjay153
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);
#14 · 8y ago
AR
arooly
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);
}
#15 · 8y ago
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

  • Visibility check for aimbot (CS:GO)By eZwork in Counter-Strike 2 Help
    14Last post 9y ago
  • how to add visibility check for poly hackBy qwenzynnan1 in Counter-Strike 2 Coding & Resources
    1Last post 9y ago
  • Semi working aimbot ( Fov check, Visible check(stolen from krown), and get next targeBy 14126 in Garry's Mod Coding & Resources
    1Last post 8y ago
  • ViKiNGHook: Public Edition [Silent Aimbot][Fov 120.0F][Visibility Check][ESP & Team]By viking911 in Counter-Strike 2 Hacks
    37Last post 10y ago
  • Please i'm not asking for aimbot but if you do make aimbot plz add visible only plz?By supersonic98319 in Combat Arms Hack Requests
    5Last post 14y ago

Tags for this Thread

None