1 /* ======== SourceMM ========
2 * Copyright (C) 2004-2007 Metamod:Source Development Team
3 * No warranties of any kind
7 * Author(s): David "BAILOPAN" Anderson
8 * ============================
11 #include "vsp_listener.h"
13 VSPListener g_VspListener;
15 VSPListener::VSPListener()
21 void VSPListener::ClientActive(edict_t *pEntity)
25 PLUGIN_RESULT VSPListener::ClientCommand(edict_t *pEntity)
27 return PLUGIN_CONTINUE;
30 PLUGIN_RESULT VSPListener::ClientConnect(bool *bAllowConnect, edict_t *pEntity, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen)
32 return PLUGIN_CONTINUE;
35 void VSPListener::ClientDisconnect(edict_t *pEntity)
39 void VSPListener::ClientPutInServer(edict_t *pEntity, char const *playername)
43 void VSPListener::ClientSettingsChanged(edict_t *pEdict)
47 void VSPListener::SetCommandClient(int index)
51 void VSPListener::GameFrame(bool simulating)
55 const char *VSPListener::GetPluginDescription()
57 return "Metamod:Source Interface v" SOURCEMM_VERSION;
60 bool VSPListener::IsLoaded()
65 void VSPListener::LevelInit(char const *pMapName)
69 void VSPListener::LevelShutdown()
73 PLUGIN_RESULT VSPListener::NetworkIDValidated(const char *pszUserName, const char *pszNetworkID)
75 return PLUGIN_CONTINUE;
78 void VSPListener::Pause()
82 void VSPListener::UnPause()
86 void VSPListener::ServerActivate(edict_t *pEdictList, int edictCount, int clientMax)
90 void VSPListener::Unload()
94 void VSPListener::SetLoadable(bool set)
99 bool VSPListener::Load(CreateInterfaceFn interfaceFactory, CreateInterfaceFn gameServerFactory)
101 if (!g_GameDll.loaded)
103 Error("Metamod:Source is not a Valve Server Plugin\n");
110 Warning("Do not manually load Metamod:Source as a Valve Server Plugin\n");