mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 15:19:14 +00:00
small update
This commit is contained in:
parent
47168c27d9
commit
ea9ea321c7
46
README.md
46
README.md
@ -70,22 +70,22 @@ You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfar
|
||||
### DVARs
|
||||
| Dvar | Description | Default Value |
|
||||
|----------------------------------|---------------------------------------------------------------------------------------------|--------------:|
|
||||
| bots_main | Enable this mod. | true |
|
||||
| bots_main_firstIsHost | The first player to connect will be given host. | false |
|
||||
| bots_main_GUIDs | A comma separated list of GUIDs of players who will be given host. | "" |
|
||||
| bots_main | Enable this mod. | 1 |
|
||||
| bots_main_firstIsHost | The first player to connect will be given host. | 0 |
|
||||
| bots_main_GUIDs | A comma separated list of GUIDs of players who will be given host. | |
|
||||
| bots_main_waitForHostTime | How many seconds to wait for the host player to connect before adding bots to the match. | 10 |
|
||||
| bots_main_menu | Enable the in-game menu for hosts. | true |
|
||||
| bots_main_debug | Enable the in-game waypoint editor. | false |
|
||||
| bots_main_kickBotsAtEnd | Kick the bots at the end of a match. | false |
|
||||
| bots_main_menu | Enable the in-game menu for hosts. | 1 |
|
||||
| bots_main_debug | Enable the in-game waypoint editor. | 0 |
|
||||
| bots_main_kickBotsAtEnd | Kick the bots at the end of a match. | 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_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></ul> | 0 |
|
||||
| bots_manage_fill_kick | If the amount of players/bots in the match exceeds `bots_manage_fill`, kick bots until no longer exceeds. | false |
|
||||
| bots_manage_fill_spec | If when counting players for `bots_manage_fill` should include spectators. | true |
|
||||
| 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_team | One of `autoassign`, `allies`, `axis`, `spectator`, or `custom`. What team the bots should be on. | autoassign |
|
||||
| bots_team_amount | When `bots_team` is set to `custom`. The amount of bots to be placed on the axis team. The remainder will be placed on the allies team. | 0 |
|
||||
| bots_team_force | If the server should force bots' teams according to the `bots_team` value. When `bots_team` is `autoassign`, unbalanced teams will be balanced. This dvar is ignored when `bots_team` is `custom`. | false |
|
||||
| bots_team_force | If the server should force bots' teams according to the `bots_team` value. When `bots_team` is `autoassign`, unbalanced teams will be balanced. This dvar is ignored when `bots_team` is `custom`. | 0 |
|
||||
| bots_team_mode | When `bots_team_force` is `true` and `bots_team` is `autoassign`, players/bots counting method. <ul><li>`0` - counts both players and bots.</li><li>`1` - only counts bots</li></ul> | 0 |
|
||||
| bots_skill | Bots' difficulty.<ul><li>`0` - Random difficulty for each bot.</li><li>`1` - Easiest difficulty for all bots.</li><li>`2` to `6` - Between easy and hard difficulty for all bots.</li><li>`7` - The hardest difficulty for all bots.</li><li>`8` - custom (look at the `bots_skill_<team>_<difficulty>` dvars</li></ul> | 0 |
|
||||
| bots_skill_axis_hard | When `bots_skill` is set to `8`, the amount of hard difficulty bots to set on the axis team. | 0 |
|
||||
@ -94,22 +94,22 @@ You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfar
|
||||
| bots_skill_allies_med | When `bots_skill` is set to `8`, the amount of medium difficulty bots to set on the allies team. The remaining bots on the team will be set to easy difficulty. | 0 |
|
||||
| bots_skill_min | The minimum difficulty level for the bots. | 1 |
|
||||
| bots_skill_max | The maximum difficulty level for the bots. | 7 |
|
||||
| bots_loadout_reasonable | If the bots should filter bad performing create-a-class selections. | false |
|
||||
| bots_loadout_allow_op | If the bots should be able to use overpowered and annoying create-a-class selections. | true |
|
||||
| bots_loadout_reasonable | If the bots should filter bad performing create-a-class selections. | 0 |
|
||||
| bots_loadout_allow_op | If the bots should be able to use overpowered and annoying create-a-class selections. | 1 |
|
||||
| bots_loadout_rank | What rank to set the bots.<ul><li>`-1` - Average of all players in the match.</li><li>`0` - All random.</li><li>`1` or higher - Sets the bots' rank to this.</li></ul> | -1 |
|
||||
| bots_loadout_prestige | What prestige to set the bots.<ul><li>`-1` - Same as host player in the match.</li><li>`-2` - All random.</li><li>`0` or higher - Sets the bots' prestige to this.</li></ul> | -1 |
|
||||
| bots_play_move | If the bots can move. | true |
|
||||
| bots_play_knife | If the bots can knife. | true |
|
||||
| bots_play_fire | If the bots can fire. | true |
|
||||
| bots_play_nade | If the bots can grenade. | true |
|
||||
| bots_play_take_carepackages | If the bots can take carepackages. | true |
|
||||
| bots_play_obj | If the bots can play the objective. | true |
|
||||
| bots_play_camp | If the bots can camp. | true |
|
||||
| bots_play_jumpdrop | If the bots can jump/drop shot. | true |
|
||||
| bots_play_target_other | If the bots can target other entities other than players. | true |
|
||||
| bots_play_killstreak | If the bots can call in killstreaks. | true |
|
||||
| bots_play_ads | If the bots can aim down sights. | true |
|
||||
| bots_play_aim | If the bots can aim. | true |
|
||||
| bots_play_move | If the bots can move. | 1 |
|
||||
| bots_play_knife | If the bots can knife. | 1 |
|
||||
| bots_play_fire | If the bots can fire. | 1 |
|
||||
| bots_play_nade | If the bots can grenade. | 1 |
|
||||
| bots_play_take_carepackages | If the bots can take carepackages. | 1 |
|
||||
| bots_play_obj | If the bots can play the objective. | 1 |
|
||||
| bots_play_camp | If the bots can camp. | 1 |
|
||||
| bots_play_jumpdrop | If the bots can jump/drop shot. | 1 |
|
||||
| bots_play_target_other | If the bots can target other entities other than players. | 1 |
|
||||
| bots_play_killstreak | If the bots can call in killstreaks. | 1 |
|
||||
| bots_play_ads | If the bots can aim down sights. | 1 |
|
||||
| bots_play_aim | If the bots can aim. | 1 |
|
||||
|
||||
## Changelog
|
||||
- v2.1.0
|
||||
|
@ -739,7 +739,34 @@ watchBotDebugEvent()
|
||||
{
|
||||
self waittill( "bot_event", msg, str, b, c, d, e, f, g );
|
||||
|
||||
if ( msg == "debug" && GetDvarInt( "bots_main_debug" ) )
|
||||
if ( GetDvarInt( "bots_main_debug" ) >= 2 )
|
||||
{
|
||||
big_str = "Bot Warfare debug: " + self.name + ": " + msg;
|
||||
|
||||
if ( isDefined( str ) && isString( str ) )
|
||||
big_str += ", " + str;
|
||||
|
||||
if ( isDefined( b ) && isString( b ) )
|
||||
big_str += ", " + b;
|
||||
|
||||
if ( isDefined( c ) && isString( c ) )
|
||||
big_str += ", " + c;
|
||||
|
||||
if ( isDefined( d ) && isString( d ) )
|
||||
big_str += ", " + d;
|
||||
|
||||
if ( isDefined( e ) && isString( e ) )
|
||||
big_str += ", " + e;
|
||||
|
||||
if ( isDefined( f ) && isString( f ) )
|
||||
big_str += ", " + f;
|
||||
|
||||
if ( isDefined( g ) && isString( g ) )
|
||||
big_str += ", " + g;
|
||||
|
||||
PrintLn( big_str );
|
||||
}
|
||||
else if ( msg == "debug" && GetDvarInt( "bots_main_debug" ) )
|
||||
{
|
||||
PrintLn( "Bot Warfare debug: " + self.name + ": " + str );
|
||||
}
|
||||
|
20
z_server.bat
20
z_server.bat
@ -13,10 +13,22 @@ set port=27020
|
||||
set ip=0.0.0.0
|
||||
::Mod name (default "")
|
||||
set mod=
|
||||
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS!
|
||||
set gamepath=%cd%
|
||||
:: current dir of this .bat file
|
||||
SET mypath=%~dp0
|
||||
SET mypath=%mypath:~0,-1%
|
||||
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS! %cd%
|
||||
set gamepath=%mypath%
|
||||
::IMPORTANT! Make sure the filename is unique for each server you clone!
|
||||
set g_log=logs\games_mp.log
|
||||
::Your plutonium install path (leave default!)
|
||||
set pluto_path=%localappdata%\Plutonium
|
||||
:: Gamemode; oneof t4sp, t4mp, t5sp, t5mp, iw5mp, t6mp, t6zm
|
||||
set pluto_game_mode=iw5mp
|
||||
:: Other things to send to cmd
|
||||
set cmd_extras=
|
||||
:: Exe dedi path (leave default!)
|
||||
set exe_path=bin\plutonium-bootstrapper-win32.exe
|
||||
|
||||
|
||||
title PlutoniumIW5 MP - %name% - Server restarter
|
||||
echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
|
||||
@ -24,8 +36,8 @@ echo Server "%name%" will load "%cfg%" and listen on port "%port%" UDP with IP "
|
||||
echo To shut down the server close this window first!
|
||||
echo (%date%) - (%time%) %name% server start.
|
||||
|
||||
cd /D %LOCALAPPDATA%\Plutonium
|
||||
cd /D %pluto_path%
|
||||
:server
|
||||
start /wait /abovenormal "%name%" "bin\plutonium-bootstrapper-win32.exe" iw5mp "%gamepath%" -dedicated +unattended -sv_config "%cfg%" -key "%key%" -net_ip "%ip%" -net_port "%port%" -rcon_password "%rcon_password%" -fs_game "%mod%" -g_log "%g_log%" +start_map_rotate
|
||||
start /wait /abovenormal /b "%name%" "%exe_path%" %pluto_game_mode% "%gamepath%" -dedicated +unattended -sv_config "%cfg%" -key "%key%" -net_ip "%ip%" -net_port "%port%" -rcon_password "%rcon_password%" -fs_game "%mod%" -g_log "%g_log%" %cmd_extras% +start_map_rotate
|
||||
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
|
||||
goto Server
|
||||
|
Loading…
x
Reference in New Issue
Block a user