25 lines
496 B
C++
25 lines
496 B
C++
#include "common.hpp"
|
|
|
|
namespace hacks::shared::NavBot
|
|
{
|
|
|
|
// Main Functions
|
|
void Init(bool from_LevelInit);
|
|
|
|
// Helper
|
|
bool CanPath();
|
|
bool HasLowHealth();
|
|
bool HasLowAmmo();
|
|
CachedEntity *nearestHealth();
|
|
CachedEntity *nearestAmmo();
|
|
CachedEntity *nearestEnemy();
|
|
Vector GetClosestValidByDist(CachedEntity *ent, float mindist, float maxdist, bool near);
|
|
void UpdateSlot();
|
|
void Jump();
|
|
|
|
// Path
|
|
bool NavToSniperSpot(int priority);
|
|
bool NavToNearestEnemy();
|
|
|
|
} // namespace hacks::shared::NavBot
|