add: basic amxx module api (actual module pending).
This commit is contained in:
parent
fc080e1a4e
commit
f23d031d2c
8 changed files with 160 additions and 2 deletions
|
|
@ -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 ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue