fix: bots use buttons too extensively
nav: added more cpu-friendly version to check if bot will fall in combat
This commit is contained in:
parent
0873975678
commit
6e09cee0ee
6 changed files with 54 additions and 37 deletions
|
|
@ -12,6 +12,7 @@ constexpr int kMaxNodeLinks = 8; // max links for single node
|
|||
|
||||
// defines for nodes flags field (32 bits are available)
|
||||
CR_DECLARE_SCOPED_ENUM (NodeFlag,
|
||||
Button = cr::bit (0), // use a nearby button (lifts, doors, etc.)
|
||||
Lift = cr::bit (1), // wait for lift to be down before approaching this node
|
||||
Crouch = cr::bit (2), // must crouch to reach this node
|
||||
Crossing = cr::bit (3), // a target node
|
||||
|
|
|
|||
|
|
@ -403,6 +403,7 @@ private:
|
|||
bool isKnifeMode ();
|
||||
bool isGrenadeWar ();
|
||||
bool isDeadlyMove (const Vector &to);
|
||||
bool isSafeToMove (const Vector &to);
|
||||
bool isOutOfBombTimer ();
|
||||
bool isWeaponBadAtDistance (int weaponIndex, float distance);
|
||||
bool needToPauseFiring (float distance);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue