Rise limit of waypoints to 3072. Need compatability testing.

This change invalidates all 'learned' bot data, such as visibility, pathmatrices and experiences, so file versions of them are bumped.

Tweaked yb_quota_mode.
Allowed low-skill bots to throw grenades.
This commit is contained in:
jeefo 2019-05-05 01:01:12 +03:00
commit 8456bb57cb
7 changed files with 24 additions and 33 deletions

View file

@ -1925,7 +1925,7 @@ void Bot::setConditions (void) {
}
// check for grenades depending on difficulty
if (rng.getInt (0, 100) < m_difficulty * 25) {
if (rng.getInt (0, 100) < cr::max (25, m_difficulty * 25)) {
checkGrenadesThrow ();
}
@ -5633,7 +5633,7 @@ void Bot::checkBurstMode (float distance) {
}
void Bot::checkSilencer (void) {
if (((m_currentWeapon == WEAPON_USP && m_difficulty < 2) || m_currentWeapon == WEAPON_M4A1) && !hasShield ()) {
if ((m_currentWeapon == WEAPON_USP || m_currentWeapon == WEAPON_M4A1) && !hasShield ()) {
int prob = (m_personality == PERSONALITY_RUSHER ? 35 : 65);
// aggressive bots don't like the silencer