fix: do not clean non-cmd buttons on IN_SCORE hook.

fix: reset search nodes when receiving team info message.
fix: clear bot args on every call to bot client command.
add: drone build scenario.
This commit is contained in:
dmitry 2020-07-08 13:03:27 +03:00
commit f51d3bf13b
5 changed files with 56 additions and 4 deletions

View file

@ -596,7 +596,7 @@ void BotSupport::calculatePings () {
}
int part = static_cast <int> (average.first * 0.2f);
int botPing = bot->m_basePing + rg.int_ (average.first - part, average.first + part) + rg.int_ (bot->m_difficulty / 2, bot->m_difficulty);
int botPing = bot->index () / 2 + bot->m_basePing + rg.int_ (average.first - part, average.first + part) + rg.int_ (bot->m_difficulty / 2, bot->m_difficulty);
int botLoss = rg.int_ (average.second / 2, average.second);
client.ping = getPingBitmask (client.ent, botLoss, botPing);