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 › Battlefield Hacks & Cheats › Battlefield 2 Hacks & Cheats › Minimap memory hack

Minimap memory hack

Posts 1–2 of 2 · Page 1 of 1
mw2tuber
mw2tuber
Minimap memory hack
Dear timiostimio or any other user, this is a hack for BF2 1.50 Using the radar.


 
Click me
#include <Windows.h>

typedef void( __stdcall* RenderScreen_t )( void* a, void* b, void* c );
class CRenderer* g_pRenderer = NULL;
RenderScreen_t pRenderScreen = NULL;
DWORD dwRendBase = NULL;

BOOL iWrite ( DWORD Address, void* Data, DWORD Length )
{
DWORD Old = 0;
VirtualProtect( ( void* )( Address ), Length, PAGE_EXECUTE_READWRITE, &Old);
memcpy( ( void* )Address, Data, Length );
VirtualProtect( ( void* )( Address ), Length, Old, &Old);
return 0;
}

DWORD HookVTable ( PDWORD Class, DWORD function, int index )
{
DWORD oldRights, newRights, oldAddress;
if ( !IsBadReadPtr( Class, 4 ) )
{
DWORD* functionAddress = (DWORD*) ( (PDWORD) ( *Class + ( index * 4 ) ) );
if ( *functionAddress != function )
{
if (VirtualProtectEx(GetCurrentProcess(), functionAddress, 4, PAGE_EXECUTE_READWRITE, &oldRights))
{
oldAddress = *functionAddress;
*functionAddress = (DWORD) function;
}
VirtualProtectEx(GetCurrentProcess(), functionAddress, 4, oldRights, &newRights);
}
}
return oldAddress;
}

void stuffon(){
iWrite( 0x7786FF, (PBYTE)"\x90\x90", 2 );//mm1 / 1
iWrite( 0x7787DB, (PBYTE)"\x90\x90", 2 );//mm2 / 4
iWrite( 0x7836F9, (PBYTE)"\x90\x90", 2 );//mm3 / 8
//iWrite( 0x468CBE, (PBYTE)"\x90\x90", 2 );//Unlocks1
//iWrite( 0x5028C5, (PBYTE)"\x90\x90", 2 );//Unlocks2
iWrite( 0x78B29E, (PBYTE)"\x90\x90\x90\x90\x90\x90", 6 );//tv static
}
void stuffoff(){
iWrite( 0x7786FF, (PBYTE)"\x75\x0C", 2 );//mm1
iWrite( 0x7787DB, (PBYTE)"\x75\x09", 2 );//mm2
iWrite( 0x7836F9, (PBYTE)"\x75\x06", 2 );//mm3
//iWrite( 0x468CBE, (PBYTE)"\x74\x07", 2 );//Unlocks1
//iWrite( 0x5028C5, (PBYTE)"\x7C\x14", 2 );//Unlocks2
iWrite( 0x78B29E, (PBYTE)"\x8B\x92\xA0\x00\x00\x00", 6 );//tv static
}

void __stdcall hkRenderScreen( void* a, void* b, void* c )
{
_asm pushad;
stuffon();
__asm{
popad;
push c;
push b;
push a;
call pRenderScreen;
pushad;
}
stuffoff();
_asm popad;
}

DWORD WINAPI RendHook(LPVOID)
{
while(dwRendBase == 0) dwRendBase = (DWORD)GetModuleHandleA("RendDX9.dll");
DWORD OffRend = dwRendBase+0x23D098;
CRenderer *g_pRenderer = *(CRenderer**)OffRend;
if(g_pRenderer)
{
pRenderScreen = ( RenderScreen_t )HookVTable((PDWORD)g_pRenderer,( DWORD )hkRenderScreen, 10 );
}
return 0;
}

BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{CreateThread(0,0,RendHook,0,0,0);}
return -1;
}
#1 · 13y ago
TI
timiostimio
Yooo! Thank you for sharing this code. =)
#2 · 13y ago
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

  • Memory Hacking Software (MHS)By ElmoCA in Combat Arms Hacks & Cheats
    5Last post 17y ago
  • Memory Hacking (the ones that works/doesn't work)By Kuro Tenshi in Combat Arms Europe Hacks
    2Last post 17y ago
  • where can i find memory hacking software?By headsup in General Hacking
    4Last post 17y ago
  • Wats possible and not possible through memory hacking?By ClanTag in C++/C Programming
    13Last post 17y ago
  • Source code for any d3d/memory hackBy Ragehax in C++/C Programming
    6Last post 16y ago

Tags for this Thread

#bf2#hacks#memory#radar