
Originally Posted by
Jhem
Example:
Code:
HRESULT WINAPI DIP(LPDIRECT3DDEVICE9 Device, D3DPRIMITIVETYPE A, UINT B, UINT C, UINT D, UINT E, UINT F)
{
LPDIRECT3DVERTEXBUFFER9 S;
UINT O = 0;
UINT Stride = 0;
if(Device->GetStreamSource(0, &S, &O, &Stride) == D3D_OK)
Stream_Data->Release();
int Wall;
if(Wall==1)
{
if(Stride == 36)
{
Device->SetRenderState(D3DRS_ZENABLE,false);
}
}
Return blah blah blah
}
Then hook.
Code:
pDip = (oDip)DetourCreate((DWORD)vTable[82], (DWORD)DIP,12);
Thanks for this, this will be a big help for me. I am really Thankful for your help and for everyone who tried to help me.

Originally Posted by
Mayion
Answered, Close this thread. Thank you.