diff --git a/core/sourcemod.cpp b/core/sourcemod.cpp index 0e42de2d..a976b417 100644 --- a/core/sourcemod.cpp +++ b/core/sourcemod.cpp @@ -129,10 +129,27 @@ void SourceModBase::StartSourceMod(bool late) /* First initialize the global hooks we need */ SH_ADD_HOOK_MEMFUNC(IServerGameDLL, LevelInit, gamedll, this, &SourceModBase::LevelInit, false); + m_IsLateLoadInMap = late; + + /* Notify! */ + SMGlobalClass *pBase = SMGlobalClass::head; + while (pBase) + { + pBase->OnSourceModStartup(m_IsLateLoadInMap); + pBase = pBase->m_pGlobalClassNext; + } + + /* Notify! */ + pBase = SMGlobalClass::head; + while (pBase) + { + pBase->OnSourceModAllInitialized(); + pBase = pBase->m_pGlobalClassNext; + } + /* If we're late, automatically load plugins now */ if (late) { - m_IsLateLoadInMap = late; DoGlobalPluginLoads(); } }