mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-19 21:12:52 +00:00
fillmode 5
This commit is contained in:
parent
a13fae7a99
commit
fa9796f3ee
@ -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_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_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 | 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_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_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 |
|
| bots_manage_fill_spec | If when counting players for `bots_manage_fill` should include spectators. | 1 |
|
||||||
|
@ -1097,7 +1097,7 @@ addBots_loop()
|
|||||||
|
|
||||||
fillMode = getdvarint( "bots_manage_fill_mode" );
|
fillMode = getdvarint( "bots_manage_fill_mode" );
|
||||||
|
|
||||||
if ( fillMode == 2 || fillMode == 3 )
|
if ( fillMode == 2 || fillMode == 3 || fillMode == 5 )
|
||||||
{
|
{
|
||||||
setdvar( "bots_manage_fill", getGoodMapAmount() );
|
setdvar( "bots_manage_fill", getGoodMapAmount() );
|
||||||
}
|
}
|
||||||
@ -1160,7 +1160,7 @@ addBots_loop()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// use bots as balance
|
// use bots as balance
|
||||||
if ( fillMode == 4 )
|
if ( fillMode == 4 || fillMode == 5 )
|
||||||
{
|
{
|
||||||
diffPlayers = abs( alliesplayers - axisplayers );
|
diffPlayers = abs( alliesplayers - axisplayers );
|
||||||
amount = fillAmount - ( diffPlayers - bots );
|
amount = fillAmount - ( diffPlayers - bots );
|
||||||
|
@ -771,6 +771,10 @@ addOptions()
|
|||||||
_temp = "bots used as team balance";
|
_temp = "bots used as team balance";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 5:
|
||||||
|
_temp = "bots used as team balance, adjust to map";
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
_temp = "out of range";
|
_temp = "out of range";
|
||||||
break;
|
break;
|
||||||
@ -1363,6 +1367,11 @@ man_bots( a, b )
|
|||||||
self iprintln( "bot_fill will now use bots as team balance." );
|
self iprintln( "bot_fill will now use bots as team balance." );
|
||||||
break;
|
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:
|
default:
|
||||||
setdvar( "bots_manage_fill_mode", 0 );
|
setdvar( "bots_manage_fill_mode", 0 );
|
||||||
self iprintln( "bot_fill will now count everyone." );
|
self iprintln( "bot_fill will now count everyone." );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user