if (StreamNumber==0)
{
m_Stride = Stride;
}
return m_pD3Ddev->SetStreamSource(StreamNumber, pStreamData,OffsetInBytes, Stride);
}
9) search for drawindexprimitive and put
if(m_Stride == #) //#=u need to find the stride number
{
DWORD dwOldZEnable = D3DZB_TRUE;
m_pD3Ddev->GetRenderState(D3DRS_ZENABLE, &dwOldZEnable);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
m_pD3Ddev->DrawIndexedPrimitive(PrimitiveType, minIndex, NumVertices, startIndex, primCount);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, dwOldZEnable);
return m_pD3Ddev->DrawIndexedPrimitive(PrimitiveType, minIndex, NumVertices, startIndex, primCount);
10) Compile your project it will be in the specified folder you declared
11) Y ou created your first d3d wall hack its a simple as that
Finding the stride number
- Download attached files
- Inject a proper DLL depending on what directx version game is using
- log stride numbers
- for DirectX8Logger.rar
- for D3D9_Model_Logger.rar - 27% detect result because of AutoInject.exe, you can use your own injector
0 komentar:
Posting Komentar