Updated stub_mm, sample_mm, and project templates for changes from 1.8 (
bug 4107, r=dvander).
- Added build configurations for Left 4 Dead 2 and Orange Box Valve.
- Now uses MMSOURCE18 as environment variable.
- Removed deprecated callclass usage.
- Now uses GetVSPInfo() API on old engine build.
2 * vim: set ts=4 sw=4 tw=99 noet :
3 * ======================================================
4 * Metamod:Source Stub Plugin
5 * Written by AlliedModders LLC.
6 * ======================================================
8 * This software is provided 'as-is', without any express or implied warranty.
9 * In no event will the authors be held liable for any damages arising from
10 * the use of this software.
12 * This stub plugin is public domain.
15 #ifndef _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
16 #define _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
18 #include <ISmmPlugin.h>
20 #if defined WIN32 && !defined snprintf
21 #define snprintf _snprintf
24 class StubPlugin : public ISmmPlugin
27 bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
28 bool Unload(char *error, size_t maxlen);
29 bool Pause(char *error, size_t maxlen);
30 bool Unpause(char *error, size_t maxlen);
31 void AllPluginsLoaded();
33 const char *GetAuthor();
34 const char *GetName();
35 const char *GetDescription();
37 const char *GetLicense();
38 const char *GetVersion();
39 const char *GetDate();
40 const char *GetLogTag();
43 void Hook_ServerActivate(edict_t *pEdictList, int edictCount, int clientMax);
45 extern StubPlugin g_StubPlugin;
49 #endif //_INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_