bot: disable spray logo task on xash3d engine

fix: crash on aarch64 builds (ref #667)
nav: improved player avoidance
nav: improved handling of short path radii
conf: control min and max cvar values
build: probably fix i386 build when building with cmake (untested)
This commit is contained in:
jeefo 2025-01-31 19:32:24 +03:00
commit e820527703
No known key found for this signature in database
GPG key ID: D696786B81B667C8
12 changed files with 104 additions and 40 deletions

View file

@ -439,6 +439,7 @@ constexpr auto kSprayDistanceX2 = kSprayDistance * 2;
constexpr auto kMaxChatterRepeatInterval = 99.0f;
constexpr auto kViewFrameUpdate = 1.0f / 25.0f;
constexpr auto kGrenadeDamageRadius = 385.0f;
constexpr auto kMinMovedDistance = 3.0f;
constexpr auto kInfiniteDistanceLong = static_cast <int> (kInfiniteDistance);
constexpr auto kMaxWeapons = 32;

View file

@ -269,10 +269,6 @@ public:
const IntArray &getNodesInBucket (const Vector &pos);
public:
int32_t getMaxRouteLength () const {
return (length () / 2) + (kMaxNodes / 256);
}
StringRef getAuthor () const {
return m_graphAuthor;
}

View file

@ -151,7 +151,7 @@ public:
// get route max length, route length should not be larger than half of map nodes
size_t getMaxLength () const {
return m_length / 2;
return m_length / 2 + kMaxNodes / 256;
}
public:

View file

@ -315,6 +315,7 @@ private:
PathWalk m_pathWalk {}; // pointer to current node from path
Dodge m_dodgeStrafeDir {}; // direction to strafe
Dodge m_avoidAction {}; // player avoid action
Fight m_fightStyle {}; // combat style to use
CollisionState m_collisionState {}; // collision State
FindPath m_pathType {}; // which pathfinder to use