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:
jeefo 2025-01-17 22:43:35 +03:00
commit 5eab5dfb3c
No known key found for this signature in database
GPG key ID: D696786B81B667C8
12 changed files with 100 additions and 90 deletions

View file

@ -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;

View file

@ -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;
}

View file

@ -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);

View file

@ -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 ();