MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / OnSourceModAllInitialized_Post

Method OnSourceModAllInitialized_Post

core/NextMap.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62bool g_forcedChange = false;
63
64void NextMapManager::OnSourceModAllInitialized_Post()
65{
66 SH_ADD_HOOK(IVEngineServer, ChangeLevel, engine, SH_MEMBER(this, &NextMapManager::HookChangeLevel), false);
67
68 ConCommand *pCmd = FindCommand("changelevel");
69 if (pCmd != NULL)
70 {
71 SH_ADD_HOOK(ConCommand, Dispatch, pCmd, SH_STATIC(CmdChangeLevelCallback), false);
72 changeLevelCmd = pCmd;
73 }
74}
75
76void NextMapManager::OnSourceModShutdown()
77{

Callers 1

StartSourceModMethod · 0.45

Calls 1

FindCommandFunction · 0.85

Tested by

no test coverage detected