unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Counter Strike

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2007, 11:47 PM
t10101 t10101 is offline
Junior Member
 
Join Date: Sep 2007
Posts: 21
Default [CSS] D3D Wallhack/Wireframe

By timon

Ok I have had too many people asking me this and I have found a different method of doing it so it doesn't bother me. I bet VAC2 already knows about it but people want to know for some reason. Anyways here it goes.

Remember you need a bit of knowledge of C++ to do this lol.

Im writing this off the top of my head so if I mix up C++ and Vb.net forgive me and point it out lol.
Code:
//globals
bool wallhack = false;
//end globals
 
//DrawIndexedPrimitive
DWORD NoWallhack;
      if(GetAsyncKeyState(VK_F1)&1)
     {
               if(wallhack == false) {wallhack = true;}
               if(wallhack == true) {wallhack = false;}
      }

      if(wallhack = true && m_Stride == 64)
      {
                  d3d9device->GetRenderState(D3DRS_ZENABLE, &NoWallhack);
                  d3d9device->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
                  d3d9device->SetRenderState(D3DRS_ZFUNC, D3DCMP_NEVER);
      }

            if(wallhack = false && m_Stride == 64)
      {

	          d3d9device->SetRenderState(D3DRS_ZENABLE, NoWallhack);
                d3d9device->SetRenderState(D3DRS_ZFUNC,D3DCMP_LESSEQUAL);
      }
Ok I know I probably made some errors in there so tell me if I did and I'll fix em quick. There is an easier way to do this then how I posted but thats for you to find out

Edit: bleh I don't really care anymore lol. one minute of searching you could find this. Wireframe method coming up. Make sure you know strides and crap too by the way cause you'll need them. Again hand written and found the method from MSDN.

Code:
//globals
bool Iwantwireframe = false;
//end globals

//DrawIndexedPrimitive
            if(GetAsyncKeyState(VK_F2)&1)
     {
               if(Iwantwireframe == false) {Iwantwireframe = true;}
               if(Iwantwireframe == true) {Iwantwireframe = false;}
      }
            if(Iwantwireframe = true && m_Stride == YOURM_STRIDEHERE)
      {
       	      device->SetRenderState(D3DRS_FILLMODE,D3DFILL_WIREFRAME);
      }

            if(Iwantwireframe = false && m_Stride == YOURM_STRIDEHERE)
      { 
       	      device->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
      }
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
css, d3d, wallhack or wireframe

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 01:59 PM.