This commit is contained in:
ineed bots 2024-01-12 13:15:35 -06:00
parent a8385f9010
commit 9136ef2809
2 changed files with 65 additions and 61 deletions

View File

@ -8,11 +8,11 @@ It aims to add playable AI to the multiplayer games of CoD4.
You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfare/downloads/iw3-bot-warfare-latest).
## <span style="color:red">Important to public dedicated servers</span>
The ```bots_main_firstIsHost``` DVAR is enabled by default!
The `bots_main_firstIsHost` DVAR is enabled by default!
This is so inexperienced users of the mod can access with menu without any configuration.
Make sure to disable this DVAR by adding ```set bots_main_firstIsHost 0``` in your server config!
Make sure to disable this DVAR by adding `set bots_main_firstIsHost 0` in your server config!
## Contents
- [Features](#Features)
@ -62,10 +62,10 @@ You can easily setup a local LAN dedicated server for you to join and play on. H
0. Make sure that [CoD4x server + client](https://cod4x.ovh/) is installed, updated and working properly.
- Download the [latest release](https://github.com/ineedbots/iw3_bot_warfare/releases) of Bot Warfare.
1. Locate your CoD4x server install folder.
2. Move the files/folders found in 'Add to root of CoD4x server' from the Bot Warfare release archive you downloaded to the root of your CoD4x server folder.
2. Move the files/folders found in `Add to root of CoD4x server` from the Bot Warfare release archive you downloaded to the root of your CoD4x server folder.
- The folder/file structure should follow as `.CoD4x server folder\main_shared\maps\mp\bots\_bot.gsc`.
3. The mod is now installed, now start your server, change the DVARs and start a map.
4. Now start your CoD4x client and connect to your server ('connect 127.0.0.1' in the console most likely) and play!
4. Now start your CoD4x client and connect to your server (`connect 127.0.0.1` in the console most likely) and play!
## Documentation
@ -96,7 +96,7 @@ You can easily setup a local LAN dedicated server for you to join and play on. H
| 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`. | 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 | 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 |
| bots_skill_axis_med | When `bots_skill` is set to `8`, the amount of medium difficulty bots to set on the axis team. The remaining bots on the team will be set to easy difficulty. | 0 |
| bots_skill_allies_hard | When `bots_skill` is set to `8`, the amount of hard difficulty bots to set on the allies team. | 0 |
@ -120,6 +120,12 @@ You can easily setup a local LAN dedicated server for you to join and play on. H
## Changelog
- v2.2.0
- Fixed some chat related script runtime errors
- Waypoints only load from csv now
- Fix bots possibly being stuck in sab
- Major cleanup
- v2.1.0
- Bot chatter system, bots_main_chat
- Greatly reduce script variable usage

View File

@ -14,17 +14,15 @@ The Bot Warfare mod comes with the Waypoint Editor out of the box, so its just a
Start your server with the Bot Warfare mod.
In the server console, type in ```set bots_main_debug 1```.<br>
In the server console, type in `set bots_main_debug 1`.<br>
![Setting the dvar](/bw-assets/console.png)
Now start a match with the map you want to edit with the `devmap <mapname>` command.<br>
![Starting a map](/bw-assets/console-map.png)
It should be noted that waypoints load in this following order;
1. checks the 'waypoints' folder (FS_Game\waypoints) for a csv file
2. loads the waypoints from GSC (maps\mp\bots\waypoints)
It should be noted that waypoints load from the 'waypoints' folder (<fs_game>\scriptdata\waypoints) for a csv file.
If all fail to load waypoints, there will be no waypoints and the bots will not know how to navigate the map.
If csv fails to load waypoints, then the bots will not know how to navigate the map.
Connect to the server with the CoD4x client, you'll be introduced to the Waypoint Editor.
@ -92,5 +90,5 @@ Once you feel like you are done, press the Save buttons. This will generate a [C
That is it! The waypoints should load next time you start your game!
Your waypoints CSV file will be located at ```<fs_game>/waypoints/<mapname>_wp.csv```. (main folder if fs_game is blank)<br>
Your waypoints CSV file will be located at `<fs_game>\scriptdata\waypoints\<mapname>_wp.csv`. (main folder if fs_game is blank)<br>
![Location](/bw-assets/saved.png)