2020-11-05 15:17:06 +03:00
|
|
|
|
//
|
|
|
|
|
|
// YaPB - Counter-Strike Bot based on PODBot by Markus Klinge.
|
|
|
|
|
|
// Copyright <20> 2004-2020 YaPB Project <yapb@jeefo.net>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
// AMX Mod X Module API Version (bump if interface changed)
|
|
|
|
|
|
constexpr int kYaPBModuleVersion = 1;
|
|
|
|
|
|
|
|
|
|
|
|
// basic module interface, if you need to additional stuff, please post an issue
|
|
|
|
|
|
class IYaPBModule {
|
2020-11-05 16:46:22 +03:00
|
|
|
|
public:
|
|
|
|
|
|
virtual ~IYaPBModule () = default;
|
|
|
|
|
|
|
2020-11-05 15:17:06 +03:00
|
|
|
|
public:
|
|
|
|
|
|
// get the bot version string
|
|
|
|
|
|
virtual const char *getBotVersion () = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// checks if bots are currently in game
|
|
|
|
|
|
virtual bool isBotsInGame () = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// checks whether specified players is a yapb bot
|
|
|
|
|
|
virtual bool isBot (int entity) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// gets the node nearest to origin
|
2020-11-05 16:01:38 +03:00
|
|
|
|
virtual int getNearestNode (float *origin) = 0;
|
2020-11-05 15:17:06 +03:00
|
|
|
|
|
|
|
|
|
|
// checks wether node is valid
|
|
|
|
|
|
virtual bool isNodeValid (int node) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// gets the node origin
|
|
|
|
|
|
virtual float *getNodeOrigin (int node) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// get the bots current active node
|
|
|
|
|
|
virtual int getCurrentNodeId (int entity) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// force bot to go to the selected node
|
|
|
|
|
|
virtual void setBotGoal (int entity, int node) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// force bot to go to selected origin
|
|
|
|
|
|
virtual void setBotGoalOrigin (int entity, float *origin) = 0;
|
2020-11-06 09:10:19 +03:00
|
|
|
|
|
|
|
|
|
|
// checks whether graph nodes is available on map
|
|
|
|
|
|
virtual bool hasGraph () = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// get's the graph node flags
|
|
|
|
|
|
virtual int getNodeFlags (int node) = 0;
|
2020-11-05 15:17:06 +03:00
|
|
|
|
};
|