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

@ -5308,6 +5308,17 @@ void Bot::startDoubleJump (edict_t *ent) {
sendToChat (strings.format ("Ok %s, i will help you!", ent->v.netname.chars ()), true);
}
void Bot::sendBotToOrigin (const Vector &origin) {
clearSearchNodes ();
clearTask (Task::MoveToPosition); // remove any move tasks
m_position = origin;
startTask (Task::MoveToPosition, TaskPri::MoveToPosition, kInvalidNodeIndex, 0.0f, true);
m_chosenGoalIndex = graph.getNearest (origin);
getTask ()->data = m_chosenGoalIndex;
}
void Bot::resetDoubleJump () {
completeTask ();