Solved Understanding some code

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

dons12

Newbie
Full Member
Jan 31, 2014
6
1,908
1
So i've found a full source code for a 3D9D menu hack, including working Hook+detours.
Now this problem i encountered the code is so damn complex to understand for me.
And when i inject the compiled DLL in my game it is full glass wall.
And i cant seem to find the code how to adjust that.

The menu includes: Wallhack, no smoke and some other stuffies

What im trying to figure out:
where can i find the chams in the code
how can i modify those chams
and how can i disable the glasswall

Virus Scan(s):

Virus total:
https://www.virustotal.com/nl/file/...1669122c0c7a347f03ce89c3/analysis/1400439686/

The Menu is made by ReMbO @ UC.

*EDIT Added Virus Scans + local download.
 

Attachments

Last edited:

dons12

Newbie
Full Member
Jan 31, 2014
6
1,908
1
yea that qquiete helped!
in the mean time i've cleaned up the code and fixed another menu (created by someone else though).

and it works like a charm.

So thanks for the help ^_^
 

xploiitz

Coder
Fleep Tier Donator
Trump Tier Donator
Nobleman
Jul 26, 2012
155
1,698
7
I downloaded this file just to check it out real quick, upon inspection it looks like he gave some pretty good names to his functions (but the indentations are horrible haha), did you even look at the code?

It appears there is a "Draw_Chams" function inside Base.cpp on line 174

C++:
void Draw_Chams(int x, int ye,char *Text,int &Var,DWORD CoLoR1,DWORD CoLoR2,DWORD CoLoR3,DWORD CoLoR4,LPDIRECT3DDEVICE9 pDevice)
{
int y = Y+ye;
DWORD CoL;
DWORD R_COL=DARKGREY;
if(IsInBox(X+115,y,WHID-9,15))
{R_COL = WHITE;DrawBox(x+40,y, 140,16,Functions, pDevice);
if(lm1)
{if(Var>=0){Var++;}}
if(rm1)
{if(Var!=0) {Var--;}}
}
switch (Var)
{
case 1: CoL = CoLoR1;      break;
case 2: CoL = CoLoR2;      break;
case 3: CoL = CoLoR3;      break;
case 4: CoL = CoLoR4;      break;
case 5:                Var=0;    break;
}
if( Var>0)
{
DrawBox(x+12,y+2,22,12,CoL,pDevice);
}
font->DrawText(x+35,y,WHITE,Text,DT_LEFT|DT_SHADOW);
DrawBorder(x+10,y,25,15,R_COL,pDevice);
}
and I'm not sure what "glass wall" is, sounds just like see through walls honestly, however he has a function inside of "Draw.h" called "DrawBox" on line 52, it looks like hes setting the render states in there which sounds like what you might be looking for.

C++:
void  DrawBox( int x, int y, int w, int h, D3DCOLOR Color, LPDIRECT3DDEVICE9 pDevice)
{
	 struct Vertex 
{
 float x,y,z,ht;
 DWORD Color;
}
V[4] ={{x,y+h, 0.0f, 0.0f, Color}, {x,y, 0.0f, 0.0f, Color},{x+w,y+h, 0.0f, 0.0f, Color},{x+w,y, 0.0f, 0.0f, Color}};
 pDevice->SetTexture(0, NULL);
 pDevice->SetPixelShader( 0 );
 pDevice->SetFVF(D3DFVF_XYZRHW|D3DFVF_DIFFUSE);
 pDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,true);
 pDevice->SetRenderState(D3DRS_DESTBLEND,D3DBLEND_INVSRCALPHA);
 pDevice->SetRenderState(D3DRS_ZENABLE , FALSE);
 pDevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE);
 pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Vertex));
 return;
}
I'm not entirely sure what exactly you are trying to achieve so its hard to help. However, I think the best thing for you to do would be change the parameters of setrenderstate around and see what you like best. You can find the renderstate types on msdn ( https://msdn.microsoft.com/en-us/library/windows/desktop/bb172599(v=vs.85).aspx ) you honestly could make it all a toggle that way you don't have to recompile and reinject everytime.

Hope that helps a bit.... Just know the best thing you can do is just open the code and try different things :)
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods