• 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 2 of 2
    1. #1
      Jr.Hacker
      Haze-Productions
       
      Coding
       
      rN''s Avatar
      Join Date
      Jan 2014
      Posts
      340
      Thanks (-->)
      20
      Thanks (<--)
      126

      Find CGlobalVarsBase Offset for CS:S/CS:GO

      John Kittz
      1. Open OllyDBG and attach Counter-Strike: Source/Global Offensive
      2. Click on engine in Executable modules
      3. Search for "g_ClientDLL->Init"
      Code:
      5E96C774   68 F073CF5E      PUSH engine.5ECF73F0                     ; ASCII "g_ClientDLL->Init"
      5E96C779   FFD7             CALL EDI
      5E96C77B   8B0D E0B5035F    MOV ECX,DWORD PTR DS:[5F03B5E0]          ; client.1B1F0CC0
      5E96C781   83C4 04          ADD ESP,4
      5E96C784   8B01             MOV EAX,DWORD PTR DS:[ECX]
      5E96C786   68 6079DA5E      PUSH engine.5EDA7960
      4. Substract the PUSH - engine module base = Offset CGlobalVars.

      How2Use:
      CGlobalVars.h:
      Code:
      class CGlobalVarsBase
      {
      public:
      	float	realtime;
      	int	framecount;
      	float	absolute_frametime;
      	float	absolute_framestarttimestddev;
      	float	curtime;
      	float	frameTime;
      	int	maxClients;
      	int	tickcount;
      	float	interval_per_tick;
      	float	interpolation_amount;
      	int	simThicksThisFrame;
      	int	network_protocol;
      }pGlobals;
      
      extern CGlobalVarsBase*	pGlobalVars( void );
      CGlobalVars.cpp:
      Code:
      CGlobalVarsBase* pGlobalVars( void )
      {
      	ReadProcessMemory( hProcess, LPCVOID( dwEngine + OFFSET_GLOBALVARS ), &pGlobals, sizeof( CGlobalVarsBase ), NULL );
      	return &pGlobals;
      }
      Usage:
      Code:
      for( int i = 0; i < pGlobalVars()->maxClients; i++ )
      {
      	if( !g_pClient->EntityList()->GetBaseEntity( i )->IsValid() )
      		continue;
      
      	if( g_pClient->EntityList()->GetBaseEntity( i )->m_iTeamNum() == g_pClient->EntityList()->GetLocalBaseEntity()->m_iTeamNum() )
      		continue;
      	//...
      }
      Best regards
      Last edited by rN'; 06-06-2014 at 04:26 PM.

    2. Thanks squeenie, dmo, gusdnide thanked for this post
    3. #2
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      598
      Thanks (<--)
      221
      Cheats'n'Trainers
      Sweet post man, I'm sure this will make life a lot easier

    Similar Game Hacker Threads

    1. [Help] How to find pointer and offset with ollydbg..?
      By Espaniol in forum C/C++
      Replies: 3
      Last Post: 04-27-2016, 08:41 AM
    2. [Help] How to Find Offset and Address in soldier Front
      By samuel20 in forum GH Tutorials Help
      Replies: 2
      Last Post: 03-25-2015, 07:05 AM
    3. [Help] find pointer and offset of process
      By kyriakos70 in forum C/C++
      Replies: 4
      Last Post: 02-13-2015, 02:16 PM
    4. How can i find the Offset location in this Source code?
      By emilo0212 in forum Hacking Help
      Replies: 3
      Last Post: 10-12-2014, 03:51 PM

    Tags for this Thread