QuestionHelpProblem with CGlobalVarsBase

Posts 1–15 of 15 · Page 1 of 1
Problem with CGlobalVarsBase
I have a problem with CGlobalVarsBase. The class returns a bad value. How do I fix this?

i.imgur . com/KeiqUld.png

I tried to get the class in this way

Code:
Globals = **(CGlobalVarsBase***)((*(DWORD**)Client)[0] + 0xA3);
And so here it is

Code:
PDWORD pdwClient = (PDWORD)*(PDWORD)Client;
 
DWORD dwInitAddr = (DWORD)(pdwClient[0]);
 
for (DWORD dwIter = 0; dwIter <= 0xFF; dwIter++)
{
	if (*(PBYTE)(dwInitAddr + dwIter) == 0xA3)
	{
		Globals = (CGlobalVarsBase*)*(PDWORD)*(PDWORD)(dwInitAddr + dwIter + 1);
		break;
	}
}
You have 2 options here
Globals = **(CGlobalVarsBase***)(Utilities::Memory::FindPatt ern("client.dll", (PBYTE)"\xA1\x00\x00\x00\x00\x75\x0F\x8B\x8E\x00\x 00\x00\x00", "x????xxxx????") + 0x1);
or
Globals = PlayerInfo->GetGlobalVars();
Quote Originally Posted by 0x28 View Post
You have 2 options here

or
oh look the big skid shares his code, which turns out to be paste
Quote Originally Posted by kittoniumbp View Post
oh look the big skid shares his code, which turns out to be paste
Oh, look a clueless Ukranian kid with broken English who doesn't know what he's talking about
Quote Originally Posted by Razon91 View Post
Oh, look a clueless Ukranian kid with broken English who doesn't know what he's talking about
tell that to my framework which is basically 14k lines
Quote Originally Posted by kittoniumbp View Post
tell that to my framework which is basically 14k lines
Translation: tell that to my broken garbage with too many checkboxes to even know what tf is going on
Quote Originally Posted by bee_tee_gee View Post
Translation: tell that to my broken garbage with too many checkboxes to even know what tf is going on
broken? maybe 1.5 months ago, fail
Quote Originally Posted by kittoniumbp View Post
broken? maybe 1.5 months ago, fail
hey, at least you're taking responsibility for your own actions instead of blaming others for your failures. you'll learn to do that more as you complete puberty
Quote Originally Posted by bee_tee_gee View Post
hey, at least you're taking responsibility for your own actions instead of blaming others for your failures. you'll learn to do that more as you complete puberty
what this means pubrety xD
Quote Originally Posted by kittoniumbp View Post
what this means pubrety xD
it's a point in your life where you finally get circumcised and you'll actually be happy for once in your life. oh wait, never mind what I said. your country has a circumcision rate of 32%
Quote Originally Posted by bee_tee_gee View Post
it's a point in your life where you finally get circumcised and you'll actually be happy for once in your life. oh wait, never mind what I said. your country has a circumcision rate of 32%
I'm sure you're happy your jewish parents decided to mutilate your khrum
Quote Originally Posted by Xhyphs View Post
I'm sure you're happy your jewish parents decided to mutilate your khrum
not jewish, and who are you
Quote Originally Posted by MoHaX27 View Post
I have a problem with CGlobalVarsBase. The class returns a bad value. How do I fix this?

i.imgur . com/KeiqUld.png

I tried to get the class in this way

Code:
Globals = **(CGlobalVarsBase***)((*(DWORD**)Client)[0] + 0xA3);
And so here it is

Code:
PDWORD pdwClient = (PDWORD)*(PDWORD)Client;
 
DWORD dwInitAddr = (DWORD)(pdwClient[0]);
 
for (DWORD dwIter = 0; dwIter <= 0xFF; dwIter++)
{
	if (*(PBYTE)(dwInitAddr + dwIter) == 0xA3)
	{
		Globals = (CGlobalVarsBase*)*(PDWORD)*(PDWORD)(dwInitAddr + dwIter + 1);
		break;
	}
}

github .com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/client/cdll_client_int.cpp#L870-#L872
Code:
Globals = **(CGlobalVarsBase***)((*(DWORD**)client)[0] + 0x53);
Quote Originally Posted by CFive View Post
github .com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/client/cdll_client_int.cpp#L870-#L872
Code:
Globals = **(CGlobalVarsBase***)((*(DWORD**)client)[0] + 0x53);
7 months???
Quote Originally Posted by aerialnoodle View Post
7 months???
only took me like 30 seconds to reverse lol. I just saw this thread and thought I'd bump it with an answer seeing as there was another one.
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?