cfg: update primary config with actual cvars and descriptions
This commit is contained in:
parent
9e67232c07
commit
5d6efef494
3 changed files with 30 additions and 16 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue