aim: remeber last edict for whom head spot was set

... so the bots will not shake their crosshair between chest and head when fighting acquired/current enemy
This commit is contained in:
jeefo 2024-03-09 22:41:48 +03:00
commit 1736bd9c8a
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
3 changed files with 11 additions and 1 deletions

View file

@ -659,6 +659,7 @@ public:
edict_t *m_doubleJumpEntity {}; // pointer to entity that request double jump
edict_t *m_radioEntity {}; // pointer to entity issuing a radio command
edict_t *m_enemy {}; // pointer to enemy entity
edict_t *m_enemyBodyPartSet {}; // pointer to last enemy body part was set to head
edict_t *m_lastEnemy {}; // pointer to last enemy entity
edict_t *m_lastVictim {}; // pointer to killed entity
edict_t *m_trackingEdict {}; // pointer to last tracked player when camping/hiding