[Code] Occlusion exploit

Posts 1–15 of 24 · Page 1 of 2
[Code] Occlusion exploit
Your chams & wallhack not giving a great distance? Can't see your chammed players behind about 2 layers of walls? Well heres an exploit for that.

CreateQuery - credits to *for some reason, it *'s the name out*

Code:
HRESULT WINAPI hkCreateQuery(LPDIRECT3DDEVICE9 pDevice, D3DQUERYTYPE Type,IDirect3DQuery9** ppQuery)
{
    if( Type == D3DQUERYTYPE_OCCLUSION )
    {
        Type = D3DQUERYTYPE_TIMESTAMP;
    }

    return oCreateQuery( pDevice, Type, ppQuery );
}
For this to work, you need to hook it.

My CreateQuery hooked.
Cool man,good job.
Woot!
Nice man, finally an exploit for that annoying bug.
Too bad I have no bypass otherwise I would hook it but I'm not even going to try because it won't work without a bypass.
Seeing that yours work do you have a bypass?
Quote Originally Posted by AznNicholas View Post
Woot!
Nice man, finally an exploit for that annoying bug.
Too bad I have no bypass otherwise I would hook it but I'm not even going to try because it won't work without a bypass.
Seeing that yours work do you have a bypass?
It works, you just have to find a way to hook it so the game itself wont detect it.

Quote Originally Posted by Tom View Post
Cool man,good job.
Ahah, thanks. :]
Here is my hook.

Code:
//LoadLibrary("d3d9.dll");
    D3DPRESENT_PARAMETERS d3dpp;
    LPDIRECT3DDEVICE9 pd3dDevice;
    IDirect3D9 *pd3dInterface = Direct3DCreate9(D3D_SDK_VERSION); //hooking Direct3DCreate9 to get the D3D9    interface pointer

    ZeroMemory(&d3dpp,sizeof(d3dpp)); 
    d3dpp.Windowed = TRUE;
    d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
    d3dpp.BackBufferFormat = D3DFMT_UNKNOWN;
    HRESULT hr = pd3dInterface->CreateDevice(  D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,GetForegroundWindow(),D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp,&pd3dDevice );    
    //hooking D3D9->CreateDevice to get the device pointer


        LPDIRECT3DSWAPCHAIN9 pZdsd;
        if (pd3dDevice->GetNumberOfSwapChains())
        {
        pd3dDevice->GetSwapChain(0,&pZdsd);
        HookFunc(GetInterfaceFuncAddress((DWORD*)pZdsd,"%p",&IDirect3DDevice9::Present),SwapPresent)
        SAFE_RELEASE(pZdsd)
        }
        
        HookFunc(GetInterfaceFuncAddress((DWORD*)pd3dDevice,"%p",&IDirect3DDevice9::Present),Present);
        HookFunc(GetInterfaceFuncAddress((DWORD*)pd3dDevice,"%p",&IDirect3DDevice9::Reset),Reset)
gj, ur getting better each time, i hope you put up a pub soon
why dont u release a hack ure pretty good at this . GJ .
Quote Originally Posted by Drake View Post
why dont u release a hack ure pretty good at this . GJ .
seriously, he is right, you should release a hack, you look pretty good at coding to me
Quote Originally Posted by Johnny Wolf View Post
seriously, he is right, you should release a hack, you look pretty good at coding to me
search on uc forum there u find the sources... too ^^

and there they are postet many time bevore here..
No he doesn't. He took everything from uc - f orum dot com noobs.
Lol, im not really that good. But good enough to have a working D3D with no errors (unlike someone).
You have this because you got help from someone, that is not about your mind.
The proof is that you don't even know how to code something, because when I posted you the full code you didnt know how to fix it. And it is crashing! it is not good anymore. Without re-code the sources that you posted here are totally useless because theyre has been patched lond time ago.
Quote Originally Posted by dordort View Post
You have this because you got help from someone, that is not about your mind.
The proof is that you don't even know how to code something, because when I posted you the full code you didnt know how to fix it. And it is crashing! it is not good anymore. Without re-code the sources that you posted here are totally useless because theyre has been patched lond time ago.
Its not that I dont have the ability to fix it. I choose not to help YOU.
& your base itself lol, i mean rov's is detected. The base ITSELF is crashing the game, not the chams.
I was wondering how exactly I would use this... I mean... I'm pretty newbish at coding(I can do small VB tasks) but I'm really interested ;D

If anyone's willing to explain this and help out a bit, it would be beyond epic
Posts 1–15 of 24 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Talk with us