nav: fallback to whole map search if buckets fails
bot: improved breakable destroying aim: improved short-range firing ctrl: prevent commands execution while disconnected from server build: fix cmake for apple silicon builds
This commit is contained in:
parent
7238fe76f5
commit
5eab5dfb3c
12 changed files with 100 additions and 90 deletions
|
|
@ -434,7 +434,7 @@ namespace TaskPri {
|
|||
constexpr auto kInfiniteDistance = 9999999.0f;
|
||||
constexpr auto kInvalidLightLevel = kInfiniteDistance;
|
||||
constexpr auto kGrenadeCheckTime = 0.6f;
|
||||
constexpr auto kSprayDistance = 360.0f;
|
||||
constexpr auto kSprayDistance = 272.0f;
|
||||
constexpr auto kSprayDistanceX2 = kSprayDistance * 2;
|
||||
constexpr auto kMaxChatterRepeatInterval = 99.0f;
|
||||
constexpr auto kViewFrameUpdate = 1.0f / 25.0f;
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ private:
|
|||
bool m_rapidOutput {};
|
||||
bool m_isMenuFillCommand {};
|
||||
bool m_ignoreTranslate {};
|
||||
bool m_denyCommands {};
|
||||
|
||||
int m_menuServerFillTeam {};
|
||||
int m_interMenuData[4] = { 0, };
|
||||
|
|
@ -185,6 +186,10 @@ public:
|
|||
m_rapidOutput = force;
|
||||
}
|
||||
|
||||
void setDenyCommands (bool deny) {
|
||||
m_denyCommands = deny;
|
||||
}
|
||||
|
||||
void setIssuer (edict_t *ent) {
|
||||
m_ent = ent;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,6 +183,7 @@ private:
|
|||
IntArray m_sniperPoints {};
|
||||
IntArray m_rescuePoints {};
|
||||
IntArray m_visitedGoals {};
|
||||
IntArray m_nodeNumbers {};
|
||||
|
||||
public:
|
||||
SmallArray <Path> m_paths {};
|
||||
|
|
@ -350,6 +351,11 @@ public:
|
|||
memcpy (&m_graphHeader, hdr, sizeof (StorageHeader));
|
||||
}
|
||||
|
||||
// gets the node numbers
|
||||
const IntArray &getNodeNumbers () {
|
||||
return m_nodeNumbers;
|
||||
}
|
||||
|
||||
public:
|
||||
// graph helper for sending message to correct channel
|
||||
template <typename ...Args> void msg (const char *fmt, Args &&...args);
|
||||
|
|
|
|||
|
|
@ -760,6 +760,7 @@ public:
|
|||
bool hasShield ();
|
||||
bool isShieldDrawn ();
|
||||
bool findNextBestNode ();
|
||||
bool findNextBestNodeEx (const IntArray &data, bool returnFailure);
|
||||
bool seesEntity (const Vector &dest, bool fromBody = false);
|
||||
|
||||
int getAmmo ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue