#include <windows.h>
#include <stdio.h>
#define ADR_Playerpointer 0x00
#define ADR_Serverpointer 0x00
#define ADR_GlassWall 0x00
#define ADR_SNS 0x0
#define OFS_NoRecoil1 0x00C444
#define OFS_NoRecoil2 0x00C448
#define OFS_NoRecoil3 0x00C44C
DWORD *ingame= (DWORD*)ADR_Playerpointer;
DWORD *outgame= (DWORD*)ADR_Serverpointer;
void glasswall()
{
if(GetKeyState(VK_MBUTTON))
*(int*)ADR_GlassWall = 1;
else
{
*(int*)ADR_GlassWall = 0;
}
}
void SPECIALSNS()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NoRecoil1) = 0;
*(float*)(dwPlayerPtr+OFS_NoRecoil2) = 0;
*(float*)(dwPlayerPtr+OFS_NoRecoil3) = 0;
*(double*)ADR_SNS = 0;
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
glasswall();
SPECIALSNS();
}
if(*outgame)
{
}
Sleep(200);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL,"Hello!","Done",MB_OK);
MessageBoxA(NULL,"SyncMaster (Hacker)","CREDITS!",MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}