help me I'm needing help to create a hack I'm not sure moving the C + + more aki is the code I did not know if this right is wrong to have this code for min pls monde
These codes are of this tutorial looks
http://www.mpgh.net/forum/242-crossf...-wallhack.html
I did the code and that
Code:
#define PlayerBody ( Stride == 44 || Stride == 40 )
//Note for retards, the " || " Operator means "Or" as in: "PlayerBody is equal to stride number 44, or 40."
if (PlayerBody){
DWORD dwReEnableZB = D3DZB_TRUE;
//Note to Retards: Change psyDevice to your D3D9Device.
psyDevice->SetTexture(0, texRed);// Turn the playerbody Red
psyDevice->GetRenderState(D3DRS_ZENABLE, &dwReEnableZB); //Enable the zBuffer
psyDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE); // Disable it
psyDevice->SetTexture(0, texYellow);// Turn the playerbody Yellow
psyDevice->SetRenderState(D3DRS_ZFUNC, D3DCMP_NEVER);// Reject the pixels (shaders)
}
bool Generate = true; // <-- to prevent flicker. will be explained later.
LPDIRECT3DTEXTURE9 texYellow, texRed;
HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
{
if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)) )
return E_FAIL;
WORD colour16 = ((WORD)((colour32>>28)&0xF)<<12)
|(WORD)(((colour32>>20)&0xF)<<8)
|(WORD)(((colour32>>12)&0xF)<<4)
|(WORD)(((colour32>>4)&0xF)<<0);
D3DLOCKED_RECT d3dlr;
(*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
WORD *pDst16 = (WORD*)d3dlr.pBits;
for(int xy=0; xy < 8*8; xy++)
*pDst16++ = colour16;
(*ppD3Dtex)->UnlockRect(0);
return S_OK;
}
//this belongs in your ENDSCENE
/*
Remember our BOOL Generate? this is here so that your chams don't
flicker, over and over rapidly, cause it's ****ing annoying.
so, this bool makes sure that they're only generated once when the endscene is first initiated.
and not over, and over.
*/
if (Generate)
{
GenerateTexture(psyDevice, &texRed,D3DCOLOR_ARGB(255,255,0,0));
GenerateTexture(psyDevice, &texYellow,D3DCOLOR_ARGB(255,255,255,0));
Generate = false;
}
is right or wrong