diff --git a/core/sourcemm_api.cpp b/core/sourcemm_api.cpp index bb3af1a3..bc53626f 100644 --- a/core/sourcemm_api.cpp +++ b/core/sourcemm_api.cpp @@ -22,6 +22,7 @@ IServerGameDLL *gamedll = NULL; IServerGameClients *serverClients = NULL; ISmmPluginManager *g_pMMPlugins = NULL; CGlobalVars *gpGlobals = NULL; +IGameEventManager2 *gameevents = NULL; PLUGIN_EXPOSE(SourceMod, g_SourceMod_Core); @@ -32,6 +33,7 @@ bool SourceMod_Core::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen GET_V_IFACE_ANY(serverFactory, gamedll, IServerGameDLL, INTERFACEVERSION_SERVERGAMEDLL); GET_V_IFACE_CURRENT(engineFactory, engine, IVEngineServer, INTERFACEVERSION_VENGINESERVER); GET_V_IFACE_CURRENT(serverFactory, serverClients, IServerGameClients, INTERFACEVERSION_SERVERGAMECLIENTS); + GET_V_IFACE_CURRENT(engineFactory, gameevents, IGameEventManager2, INTERFACEVERSION_GAMEEVENTSMANAGER2); if ((g_pMMPlugins = (ISmmPluginManager *)g_SMAPI->MetaFactory(MMIFACE_PLMANAGER, NULL, NULL)) == NULL) { diff --git a/core/sourcemm_api.h b/core/sourcemm_api.h index 6b1842e3..a6627af6 100644 --- a/core/sourcemm_api.h +++ b/core/sourcemm_api.h @@ -16,6 +16,7 @@ #include #include +#include /** * @file Contains wrappers around required Metamod:Source API exports @@ -46,6 +47,7 @@ extern IServerGameDLL *gamedll; extern IServerGameClients *serverClients; extern ISmmPluginManager *g_pMMPlugins; extern CGlobalVars *gpGlobals; +extern IGameEventManager2 *gameevents; PLUGIN_GLOBALVARS();