2020-05-13 20:27:49 +00:00
|
|
|
#ifndef ENGINE_ANTIBOT_H
|
|
|
|
#define ENGINE_ANTIBOT_H
|
|
|
|
|
|
|
|
#include "kernel.h"
|
|
|
|
|
|
|
|
class IAntibot : public IInterface
|
|
|
|
{
|
|
|
|
MACRO_INTERFACE("antibot", 0)
|
|
|
|
public:
|
|
|
|
virtual void RoundStart(class IGameServer *pGameServer) = 0;
|
|
|
|
virtual void RoundEnd() = 0;
|
|
|
|
|
|
|
|
// Hooks
|
|
|
|
virtual void OnPlayerInit(int ClientID) = 0;
|
|
|
|
virtual void OnPlayerDestroy(int ClientID) = 0;
|
|
|
|
virtual void OnSpawn(int ClientID) = 0;
|
|
|
|
virtual void OnHammerFireReloading(int ClientID) = 0;
|
|
|
|
virtual void OnHammerFire(int ClientID) = 0;
|
2021-07-21 22:22:12 +00:00
|
|
|
virtual void OnHammerHit(int ClientID, int TargetID) = 0;
|
2020-05-13 20:27:49 +00:00
|
|
|
virtual void OnDirectInput(int ClientID) = 0;
|
2020-05-15 16:29:34 +00:00
|
|
|
virtual void OnCharacterTick(int ClientID) = 0;
|
2020-05-13 20:27:49 +00:00
|
|
|
virtual void OnHookAttach(int ClientID, bool Player) = 0;
|
|
|
|
|
|
|
|
// Commands
|
|
|
|
virtual void Dump() = 0;
|
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
virtual ~IAntibot(){};
|
2020-05-13 20:27:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class IEngineAntibot : public IAntibot
|
|
|
|
{
|
|
|
|
MACRO_INTERFACE("engineantibot", 0)
|
|
|
|
public:
|
|
|
|
virtual void Init() = 0;
|
|
|
|
|
|
|
|
// Hooks
|
2020-05-15 16:29:34 +00:00
|
|
|
virtual void OnEngineTick() = 0;
|
2020-07-01 12:11:37 +00:00
|
|
|
virtual void OnEngineClientJoin(int ClientID, bool Sixup) = 0;
|
2020-05-13 20:27:49 +00:00
|
|
|
virtual void OnEngineClientDrop(int ClientID, const char *pReason) = 0;
|
2021-06-24 18:32:41 +00:00
|
|
|
virtual bool OnEngineClientMessage(int ClientID, const void *pData, int Size, int Flags) = 0;
|
|
|
|
virtual bool OnEngineServerMessage(int ClientID, const void *pData, int Size, int Flags) = 0;
|
|
|
|
virtual bool OnEngineSimulateClientMessage(int *pClientID, void *pBuffer, int BufferSize, int *pOutSize, int *pFlags) = 0;
|
2020-05-13 20:27:49 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
virtual ~IEngineAntibot(){};
|
2020-05-13 20:27:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //ENGINE_ANTIBOT_H
|