fillmode 5

This commit is contained in:
ineed bots 2024-05-16 10:27:43 -06:00
parent a13fae7a99
commit fa9796f3ee
3 changed files with 12 additions and 3 deletions

View File

@ -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.<ul><li>`0` - counts both players and bots.</li><li>`1` - only counts bots.</li><li>`2` - exactly `0` but auto adjusts `bots_manage_fill` to map.</li><li>`3` - exactly `1` but auto adjusts `bots_manage_fill` to map.</li><li>`4` - bots are used for balancing teams.</ul> | 0 |
| bots_manage_fill_mode | `bots_manage_fill` players/bots counting method.<ul><li>`0` - counts both players and bots.</li><li>`1` - only counts bots.</li><li>`2` - exactly `0` but auto adjusts `bots_manage_fill` to map.</li><li>`3` - exactly `1` but auto adjusts `bots_manage_fill` to map.</li><li>`4` - bots are used for balancing teams.</li><li>`5` - exactly `4` but auto adjusts `bots_manage_fill` to map.</li></ul> | 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 |

View File

@ -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 );

View File

@ -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 );