void PlayerHacks()
{
DWORD dwPlayer = *(DWORD*)ADR_PLAYERPOINTER;
if (CH_NoFallDamage)
{
*(float*)(dwPlayer + OFS_NOFALLDAMAGE) = -9999999.0F;
}
if (CH_NoBounds)
{
*(float*)(ADR_NOBOUNDS1) = 0.0F;
*(float*)(ADR_NOBOUNDS2) = 0.0F;
*(float*)(ADR_NOBOUNDS3) = 0.0F;
}
if (CH_NoRecoil)
{
*(float*)(dwPlayer + OFS_NORECOIL1) = 0.0F;
*(float*)(dwPlayer + OFS_NORECOIL2) = 0.0F;
*(float*)(dwPlayer + OFS_NORECOIL3) = 0.0F;
}
if (CH_FastRepair)
{
if(dwPlayer != 0)
{
*(float*)MEM_FastRepair = 5000000;
}
}
if (CH_FastMedic)
{
if(dwPlayer != 0)
{
*(float*)MEM_FastMedic = 5000000;
}
}
if (CH_FastFlag)
{
if(dwPlayer != 0)
{
*(float*)MEM_FastFlag = 5000000;
}
}
if (CH_FastAmmo)
{
if(dwPlayer != 0)
{
*(float*)MEM_FastAmmo = 5000000;
}
}
}
void ServerHacks()
{
DWORD dwServer = *(DWORD*)ADR_SERVERPOINTER;
if (CH_GMWarning) /* Crash */
{
char *GMName = (char*)(ADR_GMWARNING);
if (strlen(GMName) > 2)
{
ExitProcess(0);
}
}
if (CH_Slot5)
{
*(BYTE*)(dwServer + OFS_SLOTS5) = 0x1;
}
if (CH_Slot6)
{
*(BYTE*)(dwServer + OFS_SLOTS6) = 0x1;
}
if (CH_Slot7)
{
*(BYTE*)(dwServer + OFS_SLOTS7) = 0x1;
}
if (CH_Slot8)
{
*(BYTE*)(dwServer + OFS_SLOTS8) = 0x1;
}
if (CH_Premium)
{
*(int*)(dwServer+OFS_Prem_1) = 4;
}
if (CH_Premium2)
{
*(int*)(dwServer+OFS_Prem_2) = 4;
}
if (CH_exitwr)
{
ExitProcess(0);
}
}
#define ADR_PLAYERPOINTER 0xB23F20 #define ADR_SERVERPOINTER 0xB1B624 #define ADR_NOBOUNDS1 0xBB651C #define ADR_NOBOUNDS2 0xBB6520 #define ADR_NOBOUNDS3 0xBB6524 #define ADR_GMWARNING 0xB51364 #define OFS_NORECOIL1 0xC45C #define OFS_NORECOIL2 0xC460 #define OFS_NORECOIL3 0xC464 #define OFS_NOFALLDAMAGE 0x10300 #define OFS_X 0x10318 #define OFS_Y 0x10320 #define OFS_Z 0x1031C #define OFS_SLOTS5 0x34134 #define OFS_SLOTS6 0x34135 #define OFS_SLOTS7 0x34136 #define OFS_SLOTS8 0x34137 #define MEM_FastAmmo 0xB285B4 #define MEM_FastMedic 0xB285BC #define MEM_FastFlag 0xB285CC #define MEM_FastRepair 0xB285BC #define OFS_Prem_1 0x3CC #define OFS_Prem_2 0xC3C

void HackLooP()
{
for (;;)
{
PlayerHacks();
ServerHacks();
Sleep(5);
}
}
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HackLooP, NULL, NULL, NULL);
<----------- ### Address Logger ### -----------> <-------------- ### WarRock ### --------------> <--------- ### Made By [MPGH]Jhem ### -----------> <-------------- ### MPGH.net ### --------------> <----------- ### Pointers ### -----------> #define ADR_PlayerPointer 0x00B23F20 #define ADR_ServerPointer 0x00B1C6E4 #define ADR_RemotePointer 0x00BA6034 <----------- ### Memory ### -----------> #define ADR_GlassWalls 0x00B1B878 <----------- ### Offsets ### -----------> #define OFS_Nodelay 0x10410 #define OFS_NoReload 0x1040D #define OFS_NFD 0x102E8 #define OFS_X 0x10300 #define OFS_Y 0x10308 #define OFS_Z 0x10310 #define OFS_NoRecoil1 0xC444 #define OFS_NoRecoil2 0xC44C #define OFS_NoRecoil3 0xC448
HRESULT __stdcall DirectXHooK()
{
DWORD dwD3D9;
do
{
dwD3D9 = (DWORD)GetModuleHandleA("D3D9.DLL");
Sleep(1000);
}
while (!dwD3D9);
pReset = (oReset)E9Detour((DWORD)VTable->ID(16),(DWORD)Reset,5);
pPresent = (oPresent)E9Detour((DWORD)VTable->ID(17),(DWORD)Present,5);
return true;
}
void HackLooP()
{
for (;;)
{
PlayerHacks();
ServerHacks();
Sleep(5);
}
}
BOOL __stdcall DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hDll);
if (dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HackLooP, NULL, NULL, NULL);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)DirectXHooK, NULL, NULL, NULL);
}
return TRUE;