fix: bots continuesly trying to reach goal, after falling down while going on path.

add: bots path type (fast,optimal,safe) is now updated randomly on every round start.
add: more sse functions for mathlib, support for neon (thanks to sse2neon lib)
This commit is contained in:
dmitry 2021-09-14 15:10:14 +03:00
commit d17c1808aa
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37
10 changed files with 67 additions and 53 deletions

View file

@ -29,7 +29,7 @@ public:
public:
StringRef name { "YaPB" };
StringRef year { __DATE__ + 7 };
StringRef year { &__DATE__[7] };
StringRef author { "YaPB Project" };
StringRef email { "yapb@jeefo.net" };
StringRef url { "https://yapb.ru/" };

View file

@ -736,6 +736,7 @@ private:
Array <edict_t *> m_hostages; // pointer to used hostage entities
Array <Route> m_routes; // pointer
Array <int32> m_goalHistory; // history of selected goals
BinaryHeap <RouteTwin> m_routeQue;
Path *m_path {}; // pointer to the current path node
@ -812,6 +813,7 @@ private:
bool checkChatKeywords (String &reply);
bool isReplyingToChat ();
bool isReachableNode (int index);
bool isBannedNode (int index);
bool updateLiftHandling ();
bool updateLiftStates ();
bool canRunHeavyWeight ();
@ -872,7 +874,7 @@ private:
void selectWeaponById (int num);
void completeTask ();
void executeTasks ();
void tasks ();
void trackEnemies ();
void choiceFreezetimeEntity ();
@ -1042,6 +1044,7 @@ public:
void takeDamage (edict_t *inflictor, int damage, int armor, int bits);
void showDebugOverlay ();
void newRound ();
void resetPathSearchType ();
void enteredBuyZone (int buyState);
void pushMsgQueue (int message);
void prepareChatMessage (StringRef message);