D3d tut by ***cobra ,
Do not copy and paste my tut,and take credit for something you didnt know or didnt write.
A d3d is a dll that hooks Direct3d,warrock is dx8,most games now are dx9.To make a d3d you need a d3d starter kit.Most are all detected now.So unless you can write your own, GL.I can make d3ds but not undetected.If you have a starter kit,You can learn how to do things like chams.First and foremost you need the stride number to warrock for the players.A stride ## is what defines an objects in a game.like warrock players are 44.so you would define your player as stride 44.
this is how are player is defined in our d3d
Code:
#define Playerbody (m_Stride == 44 || m_Stride == 44)
right after you define your player you must bool your chams
Code:
bool Chams;
bool Stamina;
bool Sjump;
UINT m_Stride;
Also you notice the UINT m_Stride;That means we have a undefined Stride #
so we can set our stride to what we want.
there are a few things inside a starter kit you should get used to using.DrawIndexPrimative,SetRenderState.SetStreamS ource
Those are your 3 main functions in a dll.
Heres some code exapmles for you.
DrawIndexPrimative is were the chams code and main hacks go,even hotkeys can go in here.
Code:
if (Chams) ///calls Chams On/Off
{
if (Playerbody) //we defined our playerbody already as stride 44
{
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE,false);
m_pD3Ddev->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
m_pD3Ddev->SetTexture( 0, texOrange); ///heres are colors
m_pD3Ddev->DrawIndexedPrimitive(PrimitiveType, minIndex, NumVertices, startIndex, primCount);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, true);
m_pD3Ddev->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
m_pD3Ddev->SetTexture( 0, texRed); ///heres are colors }
if ((GetAsyncKeyState('6')&1) == 1) ////hotkey for chams
Chams = !Chams; ///our on and off function
SetRenderState is were xray,noFog,FullBright go.
Code:
if (CH_Ray)
{
if(m_Stride == 40) //you can define the stride like this too m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE); // X_Ray
}
SetStreamSource is were we define our stride like so,this is a must in all d3ds
Code:
if( StreamNumber == 0 ) // Used for Chams
m_Stride = Stride;
made by ***cobra