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:
jeefo 2024-03-11 15:26:11 +03:00
commit 6e09cee0ee
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
6 changed files with 54 additions and 37 deletions

View file

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