diff --git a/README.md b/README.md index 9dadf82..baac07e 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfar | bots_main_chat | The rate bots will chat at, set to 0 to disable. | 1.0 | | bots_manage_add | Amount of bots to add to the game, once bots are added, resets back to `0`. | 0 | | bots_manage_fill | Amount of players/bots (look at `bots_manage_fill_mode`) to maintain in the match. | 0 | -| bots_manage_fill_mode | `bots_manage_fill` players/bots counting method. | 0 | +| bots_manage_fill_mode | `bots_manage_fill` players/bots counting method. | 0 | | bots_manage_fill_watchplayers | Bots will not be added until one player is in the game | 0 | | bots_manage_fill_kick | If the amount of players/bots in the match exceeds `bots_manage_fill`, kick bots until no longer exceeds. | 0 | | bots_manage_fill_spec | If when counting players for `bots_manage_fill` should include spectators. | 1 | diff --git a/maps/mp/bots/_bot.gsc b/maps/mp/bots/_bot.gsc index fe39e3a..cfba4d9 100644 --- a/maps/mp/bots/_bot.gsc +++ b/maps/mp/bots/_bot.gsc @@ -1097,7 +1097,7 @@ addBots_loop() fillMode = getdvarint( "bots_manage_fill_mode" ); - if ( fillMode == 2 || fillMode == 3 ) + if ( fillMode == 2 || fillMode == 3 || fillMode == 5 ) { setdvar( "bots_manage_fill", getGoodMapAmount() ); } @@ -1160,7 +1160,7 @@ addBots_loop() } // use bots as balance - if ( fillMode == 4 ) + if ( fillMode == 4 || fillMode == 5 ) { diffPlayers = abs( alliesplayers - axisplayers ); amount = fillAmount - ( diffPlayers - bots ); diff --git a/maps/mp/bots/_menu.gsc b/maps/mp/bots/_menu.gsc index eaa414a..88361e7 100644 --- a/maps/mp/bots/_menu.gsc +++ b/maps/mp/bots/_menu.gsc @@ -770,6 +770,10 @@ addOptions() case 4: _temp = "bots used as team balance"; break; + + case 5: + _temp = "bots used as team balance, adjust to map"; + break; default: _temp = "out of range"; @@ -1362,6 +1366,11 @@ man_bots( a, b ) setdvar( "bots_manage_fill_mode", 4 ); self iprintln( "bot_fill will now use bots as team balance." ); break; + + case 4: + setdvar( "bots_manage_fill_mode", 5 ); + self iprintln( "bot_fill will now use bots as team balance, adjusting to map." ); + break; default: setdvar( "bots_manage_fill_mode", 0 );