修改代码 让所有作弊器过cd
[CD 4.27.3/VAC] xEngine + 'HUD_Redraw' New CD 4.28 should be out soon with some nice features, so i decideted to post some source code . First is HUD_Redraw method which allows you to draw with engine functions/opengl functions w/o flickering, and the second is an old updated xEngine. Have Fun.
VOID HUD_Redraw()
{
if(bOnce)
{
dwGetClientRect = (DWORD)GetProcAddress(GetModuleHandle("User32.dll"), "GetClientRect");
dwGetClientRect += 0x5;
}
//your stuff here
}
__declspec(naked) BOOL GetClientRectGate(HWND hWnd, LPRECT lpRect)
{
_asm
{
CALL DWORD PTR DS:[HUD_Redraw]
MOV EDI,EDI
PUSH EBP
MOV EBP,ESP
JMP [dwGetClientRect]
}
}
VOID Hook()
{
BYTE pPatchBuffer[MAX_PATH];
DWORD dwGetClientRect = (DWORD)GetProcAddress(GetModuleHandle("User32.dll"), "GetClientRect");
DWORD dwOldProtect = NULL;
HANDLE hCurrentProcces = GetCurrentProcess();
pPatchBuffer[0] = 0xE9;
*(DWORD*)&pPatchBuffer[1] = (DWORD)GetClientRectGate - dwGetClientRect - 5;
VirtualProtect( (LPVOID)dwGetClientRect,
5,
PAGE_EXECUTE_WRITECOPY,
&dwOldProtect );
WriteProcessMemory( hCurrentProcces,
(LPVOID)dwGetClientRect,
&pPatchBuffer,
5,
NULL );
VirtualProtect( (LPVOID)dwGetClientRect,
5,
dwOldProtect,
&dwOldProtect );
}
Everything works with new C-D 4.27.3
http://forum.gamedeception.net/showthread.php?t=6520 --------------------------------------------------------------------