add: bot rotation feature

if yb_rotate_bots is enabled, bot will stay on server between yb_rotate_stay_min and yb_rotate_stay_max cvar, and then will be kicked off the server, another bot will be connected with a different (hopefully) name due to quota balancing.
This commit is contained in:
jeefo 2023-03-25 04:36:21 +03:00
commit 40a81e3378
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 28 additions and 4 deletions

View file

@ -981,7 +981,8 @@ public:
float m_timeLastFired {}; // time to last firing
float m_difficultyChange {}; // time when auto-difficulty was last applied to this bot
float m_kpdRatio; // kill per death ratio
float m_healthValue; // clamped bot health
float m_healthValue; // clamped bot health
float m_stayTime; // stay time before reconnect
int m_blindNodeIndex {}; // node index to cover when blind
int m_flashLevel {}; // flashlight level
@ -1023,6 +1024,7 @@ public:
bool m_jumpReady {}; // is double jump ready
bool m_canChooseAimDirection {}; // can choose aiming direction
bool m_isEnemyReachable {}; // direct line to enemy
bool m_kickedByRotation {}; // is bot kicked due to rotation ?
edict_t *m_doubleJumpEntity {}; // pointer to entity that request double jump
edict_t *m_radioEntity {}; // pointer to entity issuing a radio command