Add this struct to Interfaces.h:
Code:
class IClientModeShared
{
public:
};
Then go to Interfaces.cpp and change:
Code:
DWORD* ppClientMode;
ppClientMode = nullptr; // before "scripts/vgui_screens.txt"
DWORD p = Utilities::Memory::FindPattern("client.dll", (BYTE*)"\xC7\x05\x00\x00\x00\x00\x00\x00\x00\x00\x A8\x01\x75\x1A\x83\xC8\x01\xA3\x00\x00\x00\x00\xE8 \x00\x00\x00\x00\x68\x00\x00\x00\x00\xE8\x00\x00\x 00\x00\x83\xC4\x04\xA1\x00\x00\x00\x00\xB9\x00\x00 \x00\x00\x56", "xx????????xxxxxxxx????x????x????x????xxxx????x??? ?x");
if (p)
{
ppClientMode = **(DWORD***)(p + 2);
ClientMode = ppClientMode;
}
to:
Code:
clientmode = **(IClientModeShared***)((*(uintptr_t**)client)[10] + 0x5);
and at the bottom of Interfaces.cpp and Interfaces.h edit:
Code:
DWORD *clientmode;
into
Code:
IClientModeShared *clientmode;
Done! Happy pasting ^^