[Tut] Some Functions for D3D

Posts 1–15 of 17 · Page 1 of 2
[Tut] Some Functions for D3D
Here are some functions you can add in your D3D.

How to do WireFrame:
- used Strides from Combat Arms
- place this in SetRenderState

Code:
if (m_Stride == 32) 
   m_pD3Ddev->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);
}
How to do NoFog:
- place this in SetRenderState

Code:
if (nofog)
{
   m_pD3Ddev->SetRenderState(D3DRS_FOGENABLE, false);
}
How to do a WallHack:
- used Strides from Combat Arms
- place this in DrawIndexedPrimitive

Code:
if(m_Stride == 32)
{
   m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
}
How to do FullBright:
- place this in SetRenderState

Code:
if (fullbright)
{
   m_pD3Ddev->SetRenderState(D3DRS_LIGHTING, false);
   m_pD3Ddev->SetRenderState(D3DRS_AMBIENT,D3DCOLOR_ARGB(255, 255,255,255));
}
else
{
   m_pD3Ddev->SetRenderState(D3DRS_AMBIENT, false);
}
Just so you guys know, The strides are wrong ; and i believe your supposed to use Azorbix's d3d base.
Quote Originally Posted by ken135 View Post
Just so you guys know, The strides are wrong ; and i believe your supposed to use Azorbix's d3d base.
you are noob. the stride is 32 in combat arms and 44 in warrock.
Quote Originally Posted by Offbeat Ninja View Post
you are noob. the stride is 32 in combat arms and 44 in warrock.
You sir are noob, there are 3 strides for CA.

32 / 36 / 44
what are the 36 and 44 strides for?
Quote Originally Posted by Offbeat Ninja View Post
what are the 36 and 44 strides for?
44 thats the playerbody stride
36 player distance module stride
This goes in c++...
BUMPTASTIC!
UNBUMPLIEVABLE!
Don't bump threads older thank 2 weeks, unless you know it a hack that definently still works

/Closed
Reopened and moved to correct section.
If you compile it does it work?
This doesn't work....
Quote Originally Posted by Stephen View Post
This doesn't work....
You edited your post so quick xD.

Anyway, he DID close it, but -XpliCitt- reopened it.
Ok. i need quick help. Please and Thank you. I will rep.

Ok. so I tried to use this code with the CaBase i downloaded, but I just can't seem to find were i can use this. Seems that CaBase uses completly diffrent way of writing it.

Also after editing CaBase i tried to compile it and it failed.
Seems that i need "d3dx9.h" where can i get that?

Thank you.
Posts 1–15 of 17 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us