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 › Other Semi-Popular First Person Shooter Hacks › Soldier Front Hacks › USF ESP/Player Iteration

USF ESP/Player Iteration

Posts 1–9 of 9 · Page 1 of 1
ExEchromE
ExEchromE
USF ESP/Player Iteration
Just sharing some more of my code in order to enlarge my penis.

may contain derp comments/untidy codenz and some bits removed.
Code:
return 0;

		result = *(PDWORD)(result + 0x20);

		if(!result)
			return 0;

		return *(PDWORD)(result + 0x10);
	}

	void GetName( int index, char* name )
	{
		CPlayer* tmpc = GetPlayerByIndex( index );
		if(tmpc)
			sprintf(name, "%s", tmpc->_Name );
		else
			sprintf(name, "#");
	}

	bool SameTeam(int i)
	{
		DWORD ptr = (DWORD)GetPlayerBase( );
		BYTE myTeam = *(PBYTE)(2604 * GetMyIndex( ) + 0x5F4 + ptr);
		BYTE iTeam = *(PBYTE)(2604 * i + 0x5F4 + ptr); 
		if(iTeam == myTeam)
			return true;

		return false;
	}

	DWORD GetWeaponBase( )
	{
		DWORD BasePtr = GetBase( );
		if(!BasePtr)
			return 0;

		return *(PDWORD)(BasePtr + 0x44);
	}

	CPlayer* GetPlayerByIndex(int index)
	{
		DWORD BasePtr = GetBase( );

		if(BasePtr == 0)
			return 0;
		
		return *(CPlayer**)(BasePtr + (index * 4) + 4);
	}

	int GetMyIndex( )
	{
		CPlayerBase* pPlayerBase = GetPlayerBase( );
		if(!pPlayerBase)
			return 0;

		return pPlayerBase->Index;
	}

	CPlayer* MyPlayer( )
	{
		return GetPlayerByIndex( GetMyIndex( ) );
	}
};

extern ClassManager pClassManager;

Code:
void Esp(LPDIRECT3DDEVICE9 pDevice)
{

	if(!pClassManager.GetBase( ))
		return;

	CPlayerBase* pBase = pClassManager.GetPlayerBase( );
	if(!pBase)
		return;

	CPlayer *pMyInfo = pClassManager.GetPlayerByIndex( pClassManager.GetMyIndex() );

	for(int i = 0; i < 16; i++)
	{
		if(i == pClassManager.GetMyIndex())
			continue; 

		bool ally = pClassManager.SameTeam(i);

		if(opt.esp.oespn && ally)
			continue;

		CPlayer *pInfo = pClassManager.GetPlayerByIndex(i);

		if(pInfo)
		{
			if(pInfo->health - 625 < 1)
				continue;

			D3DXVECTOR3 PositionMe( pMyInfo->lx, pMyInfo->ly, pMyInfo->lz);

			D3DXVECTOR3 Screen( 0, 0, 0 );

			D3DXVECTOR3 Position( pInfo->x2, pInfo->y2, pInfo->z2);

			GetScreenCoordFromWorld(pDevice, Position, &Screen);

			D3DXVECTOR3 PositionBot( pInfo->x, pInfo->y, pInfo->z);

			D3DXVECTOR3 ScreenBot( 0, 0, 0 );

			GetScreenCoordFromWorld2(pDevice, PositionBot, &ScreenBot);//just calls D3DXVec3Project without the other shit

			float fDistance = Distance(&PositionBot, &PositionMe);

			if( Screen.z > 1.0f && ScreenBot.z > 1.0f )
				continue;

			int boxsize = (int)(ScreenBot.y - Screen.y);
			int boxwidth = boxsize/3;
			int topleftx = (int)Screen.x - (boxwidth/2);
			int toplefty = (int)Screen.y;

			CPlayer *pTarget = pClassManager.GetPlayerByIndex(Close);

			if()
			{
				if(aimbot.active && Close == i)
				{
					DrawBorder( topleftx, toplefty, boxwidth, boxsize, 2, pDevice, 0xFF, 0xFF, 0xFF);
				}
				else
				{
					if(ally)
						DrawBorder( topleftx, toplefty, boxwidth, boxsize, 2, pDevice, 0x00, 0x00, 0xCD); 
					else
						DrawBorder( topleftx, toplefty, boxwidth, boxsize, 2, pDevice, 0xB2, 0x22, 0x22 ); 
				}
			}

			if()
			{
				char Info_Health[30];
				sprintf(Info_Health, "[HP: %d]", pInfo->health - 625);

				int Health = pInfo->health - 625; 
				
				int hboxwidth = 100/3;
				int hboxstartx = ScreenBot.x - (hboxwidth/2);
				int hboxstarty = ScreenBot.y + 4;
				int percentOfWidth 

				//Menu.font->DrawText(Screen.x, Screen.y - 3, 0xFFFFFFFF, Info_Health, DT_CENTER );
			}

			if(esp.espi)
			{
					Menu.font->DrawText(Screen.x, Screen.y - 10, 0xFFFFFFFF, pInfo->_Name, DT_CENTER );
			}
			else if()
			{
				char Info_D[255];
				sprintf(Info_D, "[%dF]", (int)fDistance / 10);;

				Menu.font->DrawText(Screen.x, Screen.y - 24, 0xFFFFFFFF, Info_D, DT_CENTER );
			}
			else if()
			{
				char Info_D[255];
				sprintf(Info_D, "%s [%dF]", pInfo->_Name, (int)fDistance / 10);

				Menu.font->DrawText(Screen.x, Screen.y - 24, 0xFFFFFFFF, Info_D, DT_CENTER );
			}
		}
		
	}
}
#1 · 12y ago
CF
Cfzozii
Source code error
#2 · 10y ago
JU
jutty417
source code error
#3 · 10y ago
Anti
Anti
Provides a source code error, Please fix the issue. @ExEchromE
#4 · 10y ago
CF
Cfzozii
ESP Box not work
#5 · 10y ago
AU
aunr
doesnt work for me bro
#6 · 10y ago
KI
kittichaisulapol_-*/
class eps
#7 · 8y ago
AZ
azb3st18
thx works fine
#8 · 8y ago
PI
PiddleySnoop
nice thanks
#9 · 6y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • Weapon Mgr, Player Pointer, Basic Player InfoBy Ryuesi in CrossFire Hack Coding / Programming / Source Code
    12Last post 14y ago
  • Twisteds Mp3 Player 2.0 "In-Game Music Player"By twistedkilla1 in Visual Basic Programming
    8Last post 15y ago
  • Fast Mp3 Player And Video PlayerBy ĎÁŗҚ ĉҰρҢềŔ in Visual Basic Programming
    10Last post 16y ago
  • New playerBy xylinox in Vindictus Discussions
    5Last post 15y ago
  • Player .By Time in CrossFire Discussions
    15Last post 16y ago

Tags for this Thread

None