[Source] Chams

Posts 115 of 27 · Page 1 of 2
[Source] Chams
this is a simple code for CA chams.


Code:
} #define charbody m==char Stridenum[44];
unsigned int m_Stride;
unsigned int NumVertices;
unsigned int primCount;
int Stridelogger = false;
int stri = 0;
int numvert = 0;
int primcnt = 0;



CD3DFont *pD3DFont;

LPDIRECT3DTEXTURE9 texRed;
LPDIRECT3DTEXTURE9 texBlue;
LPDIRECT3DTEXTURE9 texYellow;
LPDIRECT3DTEXTURE9 texGreen;
LPDIRECT3DTEXTURE9 texWhite;
LPDIRECT3DTEXTURE9 texAqua;
//LPDIRECT3DTEXTURE9 texDarkBlue;
//LPDIRECT3DTEXTURE9 texPink;
//LPDIRECT3DTEXTURE9 texOrange;
LPDIRECT3DTEXTURE9 texPurple;
const BYTE bRed[60] =
{
0x42, 0x4D, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x12, 0x0B, 0x00, 0x00, 0x12, 0x0B, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0xFF, 0x00, 0x00, 0x00
};
const BYTE bBlue[60] =
{
0x42, 0x4D, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x12, 0x0B, 0x00, 0x00, 0x12, 0x0B, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0x00, 0x00, 0x00, 0x00, 0x00
};

const BYTE bGreen[60] =
{
0x42, 0x4D, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00,
0x00, 0x00, 0x12, 0x0B, 0x00, 0x00, 0x12, 0x0B, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x9E, 0x00, 0x00, 0x00, 0x00
};
const BYTE bYellow[60] =
{
0x42, 0x4D, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
0x00, 0x00, 0x12, 0x0B, 0x00, 0x00, 0x12, 0x0B, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00
};
const BYTE bAqua[58] =
{
0x42, 0x4D, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0x00, 0x00
};
const BYTE bPurple[58] =
{
0x42, 0x4D, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0x00, 0xFF, 0x00
};
.r{}
const BYTE bWhite[58] =
{
0x42, 0x4D, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0x00
};

#define D3DHOOK_TEXTURES
HRESULT CD3DManager::Initialize()
{
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bRed, 60, &texRed);
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bBlue, 60, &texBlue);
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bGreen, 60, &texGreen);
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bYellow, 60, &texYellow);
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bWhite, 60, &texWhite);
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bAqua, 60, &texAqua);
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bPurple, 60, &texPurple);

pD3DFont = new CD3DFont("Comic Sans MS", 12);
pD3DFont->InitDeviceObjects(m_pD3Ddev);
pD3DFont->RestoreDeviceObjects();
return S_OK;
}


HRESULT CD3DManager::PreReset()
{

return S_OK;
}


HRESULT CD3DManager::PostReset()
{
return S_OK;
}

HRESULT CD3DManager::Release()
{
delete pD3DFont;
texRed->Release();
texBlue->Release();
texGreen->Release();
texWhite->Release();
texAqua->Release();
texYellow->Release();
texPurple->Release();
return S_OK;
}




in DIP
-------

if(GetAsyncKeyState(VK_F1)&1)
{
Stridelogger=!Stridelogger;
}

if(Stridelogger)
{
if(GetAsyncKeyState(VK_NUMPAD7)&1)stri ;
if(GetAsyncKeyState(VK_NUMPAD1)&1)stri--;
if(GetAsyncKeyState(VK_NUMPAD8)&1)numvert ;
if(GetAsyncKeyState(VK_NUMPAD2)&1)numvert--;
if(GetAsyncKeyState(VK_NUMPAD9)&1)primcnt ;
if(GetAsyncKeyState(VK_NUMPAD3)&1)primcnt--;
}

if(m_Stride == stri)
{
m_pD3Ddev->SetTexture(0,texRed);
return m_pD3Ddev->DrawIndexedPrimitive(Type,BaseVertexIndex,
MinVertexIndex, NumVertices, startIndex, primCount);
}
happy hacking!
~Yepikiyay
Yepikiyay

what is "in DIP" <- ?
Quote Originally Posted by anger83 View Post
Yepikiyay

what is "in DIP" <- ?
DIP is a function, and it stands for DrawIndexedPrimitive

thank you sealionone!
Quote Originally Posted by Yepikiyay View Post
it means Digital Image Processing
(rendering the colours)
You sir, are a dumbass. Don't talk about things you don't know.

DIP is a function, and it stands for DrawIndexedPrimitive. This has already been leeched here anyway.


EDIT : I also just looked at it. These aren't even chams, this is a stride logger...

/Close.
i thought it was drawindexedprimitive no?
and who puts the "define" in the actual hack....only noobs or leechers
i wonder why should somebody say thx to someone if they are calling u dumbass
Quote Originally Posted by anger83 View Post
i wonder why should somebody say thx to someone if they are calling u dumbass
becuase he what correct and i respect that
so fuck off noob
Quote Originally Posted by Yepikiyay View Post
becuase he what correct and i respect that
so fuck off noob
I'm glad you understand. Perhaps learning more D3D and you might be able to change this to actual chams.
ok here is next question for u

i was the one who first tolled you what dip was
but u thanked the guys who called you dumbass
Quote Originally Posted by anger83 View Post
ok here is next question for u

i was the one who first tolled you what dip was
but u thanked the guys who called you dumbass
dude no you didnt so fuck off and learn some programming skillz
Quote Originally Posted by anger83 View Post
ok here is next question for u

i was the one who first tolled you what dip was
but u thanked the guys who called you dumbass


Wow you're jealous that you didn't get thanks...

...
...

...


.


I don't know what to say.

^^ Wow, you fail, you don't even know what you said. You asked him what it was, you did not on any occasion tell him what DIP meant, so shut up and leave
the whole idea of this was
1. if you don't know what the actual code does do not release it.
2. you are a human so when somebody tell you that you are shit you shouldnt thank him.

And I’m not definitely envy you Sealionone
Give credits or you will get punished.
Posts 115 of 27 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?