diff -r 2bec1ff85d06 -r 4d97709c9376 core/sourcemod.cpp --- a/core/sourcemod.cpp Fri Dec 15 13:53:58 2006 +0000 +++ b/core/sourcemod.cpp Fri Dec 15 13:58:22 2006 +0000 @@ -129,10 +129,27 @@ /* 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(); } }