2012-12-15 06:38:27 +08:00
|
|
|
#ifndef _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
|
|
|
|
#define _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
|
|
|
|
|
|
|
|
#include <ISmmPlugin.h>
|
|
|
|
|
2021-06-30 15:06:37 +08:00
|
|
|
class l4dtoolz : public ISmmPlugin, public IConCommandBaseAccessor
|
2012-12-15 06:38:27 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
|
|
|
|
bool Unload(char *error, size_t maxlen);
|
|
|
|
public:
|
|
|
|
const char *GetAuthor();
|
|
|
|
const char *GetName();
|
|
|
|
const char *GetDescription();
|
|
|
|
const char *GetURL();
|
|
|
|
const char *GetLicense();
|
|
|
|
const char *GetVersion();
|
|
|
|
const char *GetDate();
|
|
|
|
const char *GetLogTag();
|
2021-06-30 15:06:37 +08:00
|
|
|
public: //IConCommandBaseAccessor
|
|
|
|
bool RegisterConCommandBase(ConCommandBase *pVar);
|
2012-12-15 06:38:27 +08:00
|
|
|
public:
|
|
|
|
|
|
|
|
static void OnChangeMaxplayers ( IConVar *var, const char *pOldValue, float flOldValue );
|
|
|
|
static void OnChangeUnreserved ( IConVar *var, const char *pOldValue, float flOldValue );
|
|
|
|
|
2021-06-30 15:06:37 +08:00
|
|
|
#if SOURCE_ENGINE == SE_LEFT4DEAD
|
2013-07-09 17:57:40 +08:00
|
|
|
static void OnChangeRemovehumanlimit ( IConVar *var, const char *pOldValue, float flOldValue );
|
2013-01-21 21:39:57 +08:00
|
|
|
static void* max_players_friend_lobby;
|
2013-07-09 17:57:40 +08:00
|
|
|
static void* chuman_limit;
|
|
|
|
#endif
|
|
|
|
|
2013-01-21 21:39:57 +08:00
|
|
|
static void* max_players_connect;
|
|
|
|
static void* max_players_server_browser;
|
|
|
|
static void* lobby_sux_ptr;
|
|
|
|
static void* tmp_player;
|
|
|
|
static void* unreserved_ptr;
|
|
|
|
static void* lobby_match_ptr;
|
2012-12-15 06:38:27 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern l4dtoolz g_l4dtoolz;
|
|
|
|
|
|
|
|
PLUGIN_GLOBALVARS();
|
|
|
|
|
|
|
|
#endif //_INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
|