add: basic amxx module api (actual module pending).

This commit is contained in:
ds 2020-11-05 15:17:06 +03:00
commit f23d031d2c
8 changed files with 160 additions and 2 deletions

View file

@ -16,6 +16,7 @@
using namespace cr;
#include <product.h>
#include <module.h>
// forwards
class Bot;
@ -1062,6 +1063,7 @@ public:
void kick ();
void resetDoubleJump ();
void startDoubleJump (edict_t *ent);
void sendBotToOrigin (const Vector &origin);
bool hasHostage ();
bool usesRifle ();
@ -1120,6 +1122,11 @@ public:
return m_index + 1;
}
// get the current node index
int getCurrentNodeIndex () const {
return m_currentNodeIndex;
}
// set the last bot trace result
void setLastTraceResult (TraceChannel channel, TraceResult *traceResult) {
m_lastTrace[channel] = *traceResult;