1.1 --- a/extensions/sdktools/extension.h Wed Aug 01 03:23:45 2007 +0000
1.2 +++ b/extensions/sdktools/extension.h Wed Aug 01 04:17:36 2007 +0000
1.3 @@ -44,6 +44,7 @@
1.4 #include <IGameHelpers.h>
1.5 #include <IEngineTrace.h>
1.6 #include <IEngineSound.h>
1.7 +#include <IVoiceServer.h>
1.8 #include <convar.h>
1.9
1.10 /**
1.11 @@ -53,7 +54,8 @@
1.12 class SDKTools :
1.13 public SDKExtension,
1.14 public IHandleTypeDispatch,
1.15 - public IConCommandBaseAccessor
1.16 + public IConCommandBaseAccessor,
1.17 + public IClientListener
1.18 {
1.19 public: //public IHandleTypeDispatch
1.20 void OnHandleDestroy(HandleType_t type, void *object);
1.21 @@ -73,8 +75,13 @@
1.22 #endif
1.23 public: //IConCommandBaseAccessor
1.24 bool RegisterConCommandBase(ConCommandBase *pVar);
1.25 +public: //IClientListner
1.26 + void OnClientDisconnecting(int client);
1.27 +public: // IVoiceServer
1.28 + bool OnSetClientListening(int iReceiver, int iSender, bool bListen);
1.29 };
1.30
1.31 +extern SDKTools g_SdkTools;
1.32 /* Interfaces from engine or gamedll */
1.33 extern IServerGameEnts *gameents;
1.34 extern IEngineTrace *enginetrace;
1.35 @@ -82,6 +89,7 @@
1.36 extern INetworkStringTableContainer *netstringtables;
1.37 extern IServerPluginHelpers *pluginhelpers;
1.38 extern IServerGameClients *serverClients;
1.39 +extern IVoiceServer *voiceserver;
1.40 /* Interfaces from SourceMod */
1.41 extern IBinTools *g_pBinTools;
1.42 extern IGameConfig *g_pGameConf;