Quote:
Originally Posted by 11lol11
i think it would be possible to do that with cheatengine but my game always crashes everytime i try to hook into it. i tried xp 32bit and vista 64bit but both did not work for me.
@steinikeule
versuchs mal mit cheatengine und da über die directx mess funktion. hat bei mir leider nicht so recht geklappt aber ich denke damit könnte es möglich sein rom auf das zu reduzieren, was antheuz abgebildet hat
|
Ich weiß nicht ob Cheat Engine SetTransformation oder CreateVertex für das ESP hookt.
Ansonsten;
Code:
if(dMaterials)
{
hook = true;
DWORD dwOldZEnable = D3DZB_TRUE;
m_pD3Ddev->SetTexture(0, texGreen);
m_pD3Ddev->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
m_pD3Ddev->GetRenderState(D3DRS_ZENABLE, &dwOldZEnable);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
m_pD3Ddev->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, dwOldZEnable);
m_pD3Ddev->SetTexture(0, texRed);
m_pD3Ddev->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
}
else
{
return S_OK;
}
Aus Kompabilitätsgründen habe ich Texturen genommen, man kann auch Shader verwenden um eine durchgehende, Rote Farbe zu haben.
Code:
#define dMaterials ((m_Stride == 32 && NumVertices == 43 && primCount == 78) || (m_Stride == 32 && NumVertices == 308 && primCount == 450) || (m_Stride == 32 && NumVertices == 199 && primCount == 360) || (m_Stride == 32 && NumVertices == 176 && primCount == 108) || (m_Stride == 32 && NumVertices == 594 && primCount == 471) || (m_Stride == 32 && NumVertices == 234 && primCount == 324) || (m_Stride == 32 && NumVertices == 811 && primCount == 784) || (m_Stride == 32 && NumVertices == 135 && primCount == 132) || (m_Stride == 32 && NumVertices == 194 && primCount == 136) || (m_Stride == 32 && NumVertices == 126 && primCount == 240))
Sind die ganzen Materialien für die Varansas & Logar Gebiete.