• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 3 of 3
    1. #1
      Newbie
      Anon
       
      Coding
       
      dons12's Avatar
      Join Date
      Jan 2014
      Location
      192.1.1.0
      Posts
      6
      Thanks (-->)
      2
      Thanks (<--)
      8

      Understanding some code

      Silent VPN
      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/6...is/1400439686/

      The Menu is made by ReMbO @ UC.

      *EDIT Added Virus Scans + local download.
      Attached Files Attached Files
      Last edited by dons12; 05-18-2014 at 02:10 PM. Reason: Added Local Download + VirusScan

    2. #2
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      xploiitz's Avatar
      Join Date
      Jul 2012
      Posts
      130
      Thanks (-->)
      5
      Thanks (<--)
      16
      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

      Code:
       
      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.

      Code:
      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/lib...(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

    3. #3
      Newbie
      Anon
       
      Coding
       
      dons12's Avatar
      Join Date
      Jan 2014
      Location
      192.1.1.0
      Posts
      6
      Thanks (-->)
      2
      Thanks (<--)
      8
      Silent VPN
      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 ^_^

    Similar Game Hacker Threads

    1. [Help] Static address changes on restart - what am I not understanding?
      By Darth Revan in forum Hacking Help
      Replies: 3
      Last Post: 11-05-2015, 11:19 AM
    2. [Help] C++ ESP AIMBOT SOURCE CODE GDI Drawing Source Code Help Please
      By PimpinRice in forum GH Tutorials Help
      Replies: 10
      Last Post: 10-25-2014, 04:14 PM
    3. Replies: 6
      Last Post: 07-19-2014, 02:02 PM

    Tags for this Thread