unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > Programming > Direct3D

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


Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2006, 07:17 AM
zero_tolerance zero_tolerance is offline
Senior Member
 
Join Date: Dec 2006
Posts: 289
Default XQZwh function (wallhack + chams)

By gC-Admin

i was bored and made this
PHP Code:
    void XQZwh(IDirect3DDevice9deviceLPDIRECT3DTEXTURE9 tex1LPDIRECT3DTEXTURE9 tex2D3DPRIMITIVETYPE Type,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
{
    
DWORD dwOldZEnable;
    
device->SetTexture(0,NULL);
    
device->SetTexture(0,tex1);
    
device->GetRenderState(D3DRS_ZENABLE,&dwOldZEnable);
    
device->SetRenderState(D3DRS_ZENABLE,D3DZB_FALSE);
    
device->SetRenderState(D3DRS_ZFUNC,D3DCMP_NEVER);
    
device->DrawIndexedPrimitive(Type,BaseVertexIndex,MinVertexIndex,NumVertices,startIndex,primCount);
    
device->SetRenderState(D3DRS_ZENABLE,dwOldZEnable);
    
device->SetRenderState(D3DRS_ZFUNC,D3DCMP_LESSEQUAL);
    
device->SetTexture(0,tex2);

because some things were undeclared and i dont know how to do it any better you use it like this:

PHP Code:
if (NumVertices == number){
XQZwh(m_pD3DdevtexOrangetexTurTypeBaseVertexIndexMinVertexIndexNumVerticesstartIndexprimCount);
return 
m_pD3Ddev->DrawIndexedPrimitive(TypeBaseVertexIndexMinVertexIndexNumVerticesstartIndexprimCount);

in DrawIndexedPrimitive

example: (the missing hand models are not because of this function)
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
chams, function, wallhack, xqzwh

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 10:10 AM.