Tutorial How to Find CGlobalVarsBase Offset for CSS & CSGO

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

rN'

Jr.Hacker
Meme Tier VIP
Jan 19, 2014
340
5,268
41
1. Open OllyDBG and attach Counter-Strike: Source/Global Offensive
2. Click on engine in Executable modules
3. Search for "g_ClientDLL->Init"
C++:
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.[COLOR="#00FF00"]5EDA7960[/COLOR]
4. Substract the PUSH - engine module base = Offset CGlobalVars.

How2Use:
CGlobalVars.h:
C++:
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:
C++:
CGlobalVarsBase* pGlobalVars( void )
{
	ReadProcessMemory( hProcess, LPCVOID( dwEngine + OFFSET_GLOBALVARS ), &pGlobals, sizeof( CGlobalVarsBase ), NULL );
	return &pGlobals;
}
Usage:
C++:
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:

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
Sweet post man, I'm sure this will make life a lot easier
 
Nov 15, 2019
1
2
0
How to get engine module base did you mean just writing engine.dll in cheat engine and that's it ?
can someone give me current GlobalVars for CSS steam. Thanks
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,101
78,998
2,374
How to get engine module base did you mean just writing engine.dll in cheat engine and that's it ?
https://guidedhacking.com/getmodulebase

can someone give me current GlobalVars for CSS steam. Thanks
This is a tutorial that teaches you how to find this variable, I just performed this tutorial in 15 seconds and found it. This forum is only for serious people who want to learn, so do the tutorial, if this tutorial is too hard for you, do the start here guide so that you have a foundation of knowledge you require to achieve your goals.
 
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