aboutsummaryrefslogtreecommitdiff
path: root/source2-basehook/Hooks/LevelInit.cpp
blob: e07b3b699a1167c5ad0f37d73d57501602946436 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "LevelInit.hpp"

oLevelInit OriginalLevelInit;
void __fastcall hkLevelInit(IClientModeShared* thisptr, const char* newmap)
{
	pGlobals = *(CGlobalVarsBase**)Utilities::Dereference(Sig("client.dll", "48 89 0D ? ? ? ? 48 83 C4 28"), 3);
	Msg(Color(255, 0, 0, 255), "NewMap %s \n", newmap);
	Msg(Color(255, 0, 0, 255), "pGlobals %p \n", pGlobals);
	Msg(Color(255, 0, 0, 255), "pGlobals->MaxClients %i \n", pGlobals->maxclients);

	OriginalLevelInit(thisptr, newmap);
}