Add support for bot without "player" classname in Hamsandwich (bug 6111, r=ds)

This commit is contained in:
Arkshine
2014-05-01 10:21:46 +02:00
parent 6eb10a5f5a
commit d3f22d2089
10 changed files with 261 additions and 5 deletions

View File

@@ -39,11 +39,13 @@
#include "offsets.h"
#include <assert.h>
#include "DataHandler.h"
#include "hook_specialbot.h"
edict_t *NEW_FirstEdict;
bool NEW_Initialized;
extern CVector<Hook*> hooks[HAM_LAST_ENTRY_DONT_USE_ME_LOL];
extern CHamSpecialBotHandler SpecialbotHandler;
extern AMX_NATIVE_INFO RegisterNatives[];
extern AMX_NATIVE_INFO ReturnNatives[];
@@ -144,3 +146,9 @@ void OnMetaAttach(void)
{
REG_SVR_COMMAND("ham", HamCommand);
}
void SetClientKeyValue(int clientIndex, char *infobuffer, const char *key, const char *value)
{
SpecialbotHandler.CheckClientKeyValue(clientIndex, infobuffer, key, value);
RETURN_META(MRES_IGNORED);
}