cfg: update primary config with actual cvars and descriptions

This commit is contained in:
jeefo 2023-07-19 13:30:55 +03:00
commit 5d6efef494
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
3 changed files with 30 additions and 16 deletions

View file

@ -76,7 +76,7 @@ void BotConfig::loadMainConfig (bool isFirstLoad) {
if (needsToIgnoreVar (ignore, key) && !strings.matches (value, cvar->string)) {
// preserve quota number if it's zero
if (strings.matches (cvar->name, "yb_quota") && cv_quota.int_ () <= 0) {
if (cv_quota.name () == cvar->name && cv_quota.int_ () <= 0) {
engfuncs.pfnCvar_DirectSet (cvar, value);
continue;
}

View file

@ -1659,7 +1659,7 @@ bool Bot::findNextBestNode () {
selected = busyIndex;
}
// worst case... find atleast something
// worst case... find at least something
if (selected == kInvalidNodeIndex) {
selected = findNearestNode ();
}
@ -1704,7 +1704,7 @@ void Bot::findValidNode () {
else if (m_navTimeset + getEstimatedNodeReachTime () < game.time ()) {
constexpr int maxDamageValue = PracticeLimit::Damage;
// increase danager for both teams
// increase danger for both teams
for (int team = Team::Terrorist; team < kGameTeamNum; ++team) {
int damageValue = practice.getDamage (team, m_currentNodeIndex, m_currentNodeIndex);
damageValue = cr::clamp (damageValue + 100, 0, maxDamageValue);