my hack has been working for a lot of patches, and know this patch is kicking my ass, I can stay in the lobby as long as i want, but when i join a game, once it is done loading i DC, im 90% its the addys, And here are the addys i have, I checked and im pretty sure they are correct. Any ideas?
Code:
#define PlayerByIndex 0x37151450
#define ClientInfoMgr 0x377ab1d0
#define LocalPlayer 0x3778bc4c
#define DrawPrimitive 0x8024f8
#define GameStatus 0x3779DF64
#define PlayerMgr 0x3778bc4c
#define zWeaponMgr 0x377cbd10
And the detour im using:
Code:
void *cMain::DetourCreate(BYTE *src, const BYTE *dst, const int len)
{
BYTE *jmp = (BYTE*)malloc(len+5);
DWORD dwback;
VirtualProtect(src, len, PAGE_READWRITE, &dwback);
memcpy(jmp, src, len); jmp += len;
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = (DWORD)(src+len - jmp) - 5;
src[0] = 0xE9;
*(DWORD*)(src+1) = (DWORD)(dst - src) - 5;
VirtualProtect(src, len, dwback, &dwback);
return (jmp-len);
}