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 02-09-2009, 05:03 AM
Alkatraz Alkatraz is offline
Administrator
 
Join Date: Jan 2007
Posts: 72
Default [[Coding] - Asus Wallhack detecter/logger

Hey all, I wrote this to play with the SRCBLEND and DESTBLEND after I saw the asus wallhack for bf2/2142:

Quote:

if (AsusHack)
{
m_pD3Ddev->SetRenderState( D3DRS_SRCBLEND, 0x5 );
m_pD3Ddev->SetRenderState( D3DRS_DESTBLEND, 0x2 );
m_pD3Ddev->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
}
I thourght I'd share it. Its pretty simple and may work in other games (a friend I'm helping is working on crysis). This is used within Tatnium (d3d starterkit) but it can be changed to use in other bases.

Variables (I used global)...
Quote:
int SRCBLENDINT=5;
int DESTBLENDINT=2;

char value1[250];
char value2[250];
Put this in DIP:

Quote:

m_pD3Ddev->SetRenderState( D3DRS_SRCBLEND, SRCBLENDINT);
m_pD3Ddev->SetRenderState( D3DRS_DESTBLEND, DESTBLENDINT);
m_pD3Ddev->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );


if(GetAsyncKeyState(VK_ADD)&1)
{ SRCBLENDINT++; }

if(GetAsyncKeyState(VK_SUBTRACT)&1)
{ DESTBLENDINT++; }

if(GetAsyncKeyState(VK_MULTIPLY)&1)
{
itoa(SRCBLENDINT,value1,200);
itoa(DESTBLENDINT,value2,200);
add_log("SRCBLENDINT =");
add_log(value1);
add_log("DESTVBLENDINT =");
add_log(value2);
}

if(GetAsyncKeyState(VK_DIVIDE)&1)
{ SRCBLENDINT=0;
DESTBLENDINT=0;
}
Basic usage:

Quote:
Numpad Add: Increase SRCBLENDINT
Numpad Subtract: Increase DESTBLENDINT
Numpad Multiply: Log
Numpad Divide: Reset
That should be it, I had it commented out and havent used it in awhile but it should work. If it doesnt, I will go fix it (It might log the numbers as hex also)...
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
asus, coding, detecter or logger, wallhack

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 03:14 PM.