improve: use ScoreAttrib message to detect if bot is a VIP or not. (#356)

This should resolve problems with bot behavior, when plugins changes VIP player model to something else.
This commit is contained in:
jeefo 2022-08-03 23:59:57 +03:00 committed by GitHub
commit b606b78cda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 11 deletions

View file

@ -1235,7 +1235,6 @@ void Bot::newRound () {
m_navTimeset = game.time ();
m_team = game.getTeam (ent ());
m_isVIP = false;
resetPathSearchType ();
@ -1243,7 +1242,6 @@ void Bot::newRound () {
m_states = 0;
clearTasks ();
m_isVIP = false;
m_isLeader = false;
m_hasProgressBar = false;
m_canChooseAimDirection = true;