CoD2 Chams little problem
Some days ago I decided to do wallhack/chams and I choose Call of Duty 2 v1.0 to start the making of, but, I have an small problem: All the players are good with their respective colours but the ambient is coloured green.
DIP
Code:
if(m_pD3Ddev->GetStreamSource(0,&Stream_Data,&OffsetInBytes,&m_Stride) == D3D_OK)
Stream_Data->Release();
if (Wallhack)
{
if (m_Stride == 36 || NumVerticles == 218 || NumVerticles == 106 || NumVerticles == 637 || NumVerticles == 456 || NumVerticles == 799 || NumVerticles == 927 || NumVerticles == 1683 || NumVerticles == 1142 || NumVerticles == 2193)
{
DWORD dwOldZEnable = D3DZB_TRUE;
m_pD3Ddev->SetTexture(0, texGreen);
m_pD3Ddev->GetRenderState(D3DRS_ZENABLE, &dwOldZEnable);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
m_pD3Ddev->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
m_pD3Ddev->SetTexture(0, texRed);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, dwOldZEnable);
}
}
EDIT: PROBLEM SOLVE", IT WAS THE NUMVERTICLES, PRIMCOUNT, etc; I HAD TO STAY 2 NIGHTS SEARCHING THEM!
Check Out my release
Call of Duty 2 Hacks - MPGH - MultiPlayer Game Hacking