TKC-Community
Hacking and Art => General Modding & Programming / Other Games => Topic started by: feldmarschall on September 16, 2014, 08:26:25 pm
-
Hi
I want to make wallhack or chams for Red Orchestra Ostfront but i dont know how to start. I also havent much time so i checked wallhack creator made by Medic but it doesnt work for this game( menu doesnt show). Its Unreal 2.5 game like i think Killing Floor. Thanks for any help
-
class cD3dev
{
public:
char _0x0000[20];
DWORD HkDev; //0x0016
DWORD GetDevice(int Index)
{
if ( !HkDev ) return 0;
DWORD dwPointer = *(DWORD*)HkDev;
if(!dwPointer) return 0;
return dwPointer + ( 4*Index );
}
};
cD3dev* p_d3d = NULL;
p_d3d = (cD3dev*)(*(PDWORD)Dw3dBase);
DWORD HookOffset( DWORD Fpointer, DWORD dwHook)
{
DWORD dwOld = NULL;
VirtualProtect((void*)Fpointer, 4, PAGE_EXECUTE_READWRITE, &dwOld);
DWORD p_d3d_orig = *(PDWORD)Fpointer;
*(PDWORD)Fpointer = (DWORD)dwHook;
VirtualProtect((void*)Fpointer, 4, dwOld, &dwOld);
return p_d3d_orig;
}
bool ishooked(DWORD Fpointer, DWORD dummyhook)
{
if(*(PDWORD)Fpointer != dummyhook)return true;
return false;
}
DWORD WINAPI D3DHook( )
{
while(true)
{
if(p_d3d && p_d3d->HkDev)
{
if(ishooked(p_d3d->GetDevice(42),(DWORD)&presenthook))oPresent = (tPresent)HookOffset(p_d3d->GetDevice(42),(DWORD)&presenthook);
if(ishooked(p_d3d->GetDevice(16),(DWORD)&resethook))oReset = (tReset)HookOffset(p_d3d->GetDevice(16),(DWORD)&resethook);
}
}
Sleep(800);
return 1;
}
oldcode , should still work on any unreal engine.
find the pointer for d3d and check the return.
took out indexedprim (http://oi58.tinypic.com/s2xn3r.jpg)
-
"find the pointer for d3d and check the return"
Can you tell me how to do it? I have poor knowledge about that
-
D3D wall hacks in C++...
http://www.youtube.com/watch?v=tdCqhTqFQ8s