1.1 --- a/core/HalfLife2.h Sun Jun 17 02:50:04 2007 +0000
1.2 +++ b/core/HalfLife2.h Sun Jun 17 04:04:17 2007 +0000
1.3 @@ -19,12 +19,10 @@
1.4 #include <sh_tinyhash.h>
1.5 #include "sm_trie.h"
1.6 #include "sm_globals.h"
1.7 -#include <dt_send.h>
1.8 -#include <server_class.h>
1.9 -#include <datamap.h>
1.10 -#include <edict.h>
1.11 +#include <IGameHelpers.h>
1.12
1.13 using namespace SourceHook;
1.14 +using namespace SourceMod;
1.15
1.16 #define HUD_PRINTTALK 3
1.17 #define HUD_PRINTCENTER 4
1.18 @@ -41,7 +39,9 @@
1.19 Trie *trie;
1.20 };
1.21
1.22 -class CHalfLife2 : public SMGlobalClass
1.23 +class CHalfLife2 :
1.24 + public SMGlobalClass,
1.25 + public IGameHelpers
1.26 {
1.27 public:
1.28 CHalfLife2();
1.29 @@ -50,8 +50,9 @@
1.30 void OnSourceModStartup(bool late);
1.31 void OnSourceModAllInitialized();
1.32 /*void OnSourceModAllShutdown();*/
1.33 -public:
1.34 +public: //IGameHelpers
1.35 SendProp *FindInSendTable(const char *classname, const char *offset);
1.36 + datamap_t *GetDataMap(CBaseEntity *pEntity);
1.37 ServerClass *FindServerClass(const char *classname);
1.38 typedescription_t *FindInDataMap(datamap_t *pMap, const char *offset);
1.39 void SetEdictStateChanged(edict_t *pEdict, unsigned short offset);