Skip to content

Commit

Permalink
fillmode 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ineed bots committed May 16, 2024
1 parent a13fae7 commit fa9796f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
4 changes: 2 additions & 2 deletions maps/mp/bots/_bot.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}
Expand Down Expand Up @@ -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 );
Expand Down
9 changes: 9 additions & 0 deletions maps/mp/bots/_menu.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit fa9796f

Please sign in to comment.