This commit is contained in:
ineed bots 2023-11-28 14:07:10 -06:00
parent fb829af4c9
commit 7b936f74fc
77 changed files with 10 additions and 436 deletions

30
.gitignore vendored
View File

@ -1,30 +1,6 @@
# Ignore everything in repository root
/*
# Files to not ignore
!/.gitignore
!/.vscode
!/.editorconfig
!/.gitattributes
!/z_server.bat
!/z_server_updater.bat
!/z_server_watchdog.bat
!/z_server_wine.sh
!/README.md
!/out
*.zip
!/.astylerc
!/z_deploy.bat
!/deploy.bat
!/deploy.js
!/main/
!/main_shared/
/main/*
!/main/server.cfg
*.log
*.stat
logs/
demos/
missingasset.csv

View File

Before

Width:  |  Height:  |  Size: 611 KiB

After

Width:  |  Height:  |  Size: 611 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -1,4 +1,4 @@
# T4M Bot Warfare Waypoint Editor
# T4 Bot Warfare Waypoint Editor
First things first, Bot Warfare uses the [AStar search algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm) for creating paths for the bots to find their way through a map.
The AStar search algorithm requires a [set of waypoints](https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)) defining where all the paths are in the map.
@ -15,19 +15,18 @@ The Bot Warfare mod comes with the Waypoint Editor out of the box, so its just a
Start your game, and load up the Bot Warfare mod. Now open your console with tilde(~).
In the console, type in ```set bots_main_debug 1```.<br>
![Setting the dvar](/main_shared/bw-assets/console.png)
![Setting the dvar](/bw-assets/console.png)
Now start a match with the map you want to edit.
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)
3. checks online at [this repo](https://github.com/ineedbots/t4m_waypoints) for the waypoints
If all fail to load waypoints, there will be no waypoints and the bots will not know how to navigate the map.
## The Editor
![The editor](/main_shared/bw-assets/editor.png)<br>
![The editor](/bw-assets/editor.png)<br>
This is the Waypoint Editor. You can view, edit and create the waypoint graph.
- Each red number you see in the world is a waypoint.
- The green string you see is the type of that waypoint.
@ -65,10 +64,10 @@ Each button has a secondary modifier button, and can be pressed shortly after pr
Okay, now that you know how to control the Editor, lets now go ahead and create some waypoints.
Here I added a waypoint.<br>
![Adding a waypoint](/main_shared/bw-assets/editor-addwp.png)
![Adding a waypoint](/bw-assets/editor-addwp.png)
And I added a second waypoint.<br>
![Adding another waypoint](/main_shared/bw-assets/editor-addwp2.png)
![Adding another waypoint](/bw-assets/editor-addwp2.png)
There are several types of waypoints, holding a modifier button before pressing the add waypoint button will create a special type of waypoint.
- Types of waypoints:
@ -80,7 +79,7 @@ There are several types of waypoints, holding a modifier button before pressing
- climb - bots will look at the angles you were looking at when you made the waypoint and climb (use this for ladders and mantles)
Here I linked the two waypoints together.<br>
![Linking waypoints](/main_shared/bw-assets/editor-link.png)
![Linking waypoints](/bw-assets/editor-link.png)
Linking waypoints are very important, it tells the bots that they can reach waypoint 1 from waypoint 0, and vice versa.
@ -91,6 +90,4 @@ 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>
![Location](/main_shared/bw-assets/saved.png)
You can share your waypoints publicly (and can be loaded by other users of Bot Warfare remotely) by making a Pull Request to the [T4M_Waypoints repo](https://github.com/ineedbots/t4m_waypoints).
![Location](/bw-assets/saved.png)

View File

@ -1,303 +0,0 @@
//******************************************************************************
// Color Codes
//******************************************************************************
// Colors for text. Do not clear the comment in front of the color codes.
// Useful for your server name, motd msgs - Information and ref use only
//
// ^1 = Red
// ^2 = Green
// ^3 = Yellow
// ^4 = Blue
// ^5 = Cyan
// ^6 = pink/Magenta
// ^7 = White
// ^0 = Black
//******************************************************************************
// Public Information
//******************************************************************************
sets sv_hostname "^1Bot ^3War^5fare ^724/7 Dome 10x"
sets _admin "My Name"
sets _website "My URL"
sets _location "My Location"
sets _irc ""
sets _mod ""
sets _modver ""
sets _modupdate ""
set scr_motd "^1Bot ^3War^5fare"
set sv_maxclients "64"
//******************************************************************************
// Common Server Settings
//******************************************************************************
// Password Settings
set sv_privatepassword ""
set g_password ""
set scr_xpscale_ "10"
// Player slots setup
set sv_privateclients "0"
// Players
set scr_player_maxhealth "100"
set scr_player_suicidespawndelay "0"
set scr_player_healthregentime "5"
set scr_player_forcerespawn "1"
set scr_player_sprinttime "4"
set g_allowvote "1"
set scr_teambalance "0"
// Teams
set scr_team_fftype "0"
set scr_team_teamkillspawndelay "10"
set scr_team_kickteamkillers "0"
// Ping
set sv_minping "0"
set sv_maxping "0"
// Log Settings
set g_logsync "1"
set logfile "1"
set sv_log_damage "1"
// Network options
set com_hunkmegs "250"
set net_noipx "1"
// Client Download Settings. (0=off/1=on) Used for MODs and custom maps
set sv_allowdownload "1"
seta sv_wwwdownload "1"
seta sv_wwwbaseurl "http://rawcdn.githack.com/ineedbots/www_host/main/t4/"
seta sv_wwwdldisconnected "1"
// Rate
set sv_maxrate "25000"
// FPS
set sv_fps "20"
// Drop inactive players
set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "180"
set g_inactivityspectator "180"
// AntiFlooding Settings
set sv_floodprotect "1"
set sv_reconnectlimit "3"
// Anti Cheat Settings
set sv_disableclientconsole "0"
set cl_autocmd "0"
set sv_cheats "0"
set sv_pure "0"
set g_banips ""
set g_no_script_spam "0"
// Temporary Ban duration, in seconds
set sv_kickbantime "3600"
// In-game voice communication system
set sv_voice "1"
set sv_voicequality "0"
set voice_deadchat "0"
set voice_global "0"
set voice_localecho "0"
set winvoice_mic_mute "1"
//******************************************************************************
// Gameplay
//******************************************************************************
set scr_game_allowkillcam "1"
set scr_game_onlyheadshots "0"
set scr_game_deathpointloss "0"
set scr_game_suicidepointloss "0"
set scr_team_teamkillpointloss "1"
set scr_game_spectatetype "1"
set scr_game_forceuav ""
set scr_game_hardpoints "1"
//******************************************************************************
// Hardpoints (Kill Streaks - 1 = allow, 0 = disallow)
//******************************************************************************
set scr_hardpoint_allowartillery "1"
set scr_hardpoint_allowuav "1"
set scr_hardpoint_allowdogs "1"
//******************************************************************************
// Misc
//******************************************************************************
set sv_allowanonymous "0"
set g_antilag "1"
set g_compassshowenemies "0"
//******************************************************************************
// Gametypes
//******************************************************************************
// DEATHMATCH
set scr_dm_scorelimit "150"
set scr_dm_timelimit "15"
set scr_dm_roundlimit "1"
set scr_dm_numlives "0"
set scr_dm_playerrespawndelay "0"
set scr_dm_waverespawndelay "0"
// TEAM DEATHMATCH
set scr_tdm_scorelimit "600"
set scr_tdm_timelimit "15"
set scr_tdm_roundlimit "1"
set scr_tdm_numlives "0"
set scr_tdm_playerrespawndelay "0"
set scr_tdm_waverespawndelay "0"
// CAPTURE THE FLAG
set scr_ctf_scorelimit "8"
set scr_ctf_timelimit "15"
set scr_ctf_roundlimit "1"
set scr_ctf_numlives "0"
set scr_ctf_playerrespawndelay "0"
set scr_ctf_waverespawndelay "0"
set scr_ctf_roundswitch "0"
set scr_ctf_touchreturn "1"
set scr_ctf_idleflagreturntime "0"
set scr_ctf_enemycarriervisible "0"
// WAR
set scr_twar_scorelimit "5"
set scr_twar_timelimit "10"
set scr_twar_roundlimit "2"
set scr_twar_numlives "0"
set scr_twar_roundswitch "1"
set scr_twar_capturetime ""
set twar_finalfightflagrespawnpenalty "3"
set twar_finalfighttimelimit "5"
set twar_momentumenabled "1"
set twar_momentumkillplayer "5"
set twar_momentumblitzkriegtime "30"
set twar_momentumflagcap "20"
set twar_momentumradar "10"
set twar_momentumartillery "10"
set twar_momentumdogs "10"
set twar_momentummax "70"
// DOMINATION
set scr_dom_scorelimit "300"
set scr_dom_timelimit "30"
set scr_dom_roundlimit "1"
set scr_dom_numlives "0"
set scr_dom_playerrespawndelay "0"
set scr_dom_waverespawndelay "0"
// SABOTAGE
set scr_sab_scorelimit "3"
set scr_sab_timelimit "20"
set scr_sab_roundlimit "5"
set scr_sab_numlives "0"
set scr_sab_playerrespawndelay "0"
set scr_sab_waverespawndelay "0"
set scr_sab_roundswitch "1"
set scr_sab_bombtimer "45"
set scr_sab_planttime "5"
set scr_sab_defusetime "5"
set scr_sab_hotpotato "0"
// SEARCH & DESTROY
set scr_sd_scorelimit "4"
set scr_sd_timelimit "2.5"
set scr_sd_roundlimit "0"
set scr_sd_numlives "1"
set scr_sd_playerrespawndelay "0"
set scr_sd_waverespawndelay "0"
set scr_sd_roundswitch "2"
set scr_sd_bombtimer "45"
set scr_sd_planttime "5"
set scr_sd_defusetime "5"
set scr_sd_multibomb "0"
// KING OF THE HILL (HEADQUARTERS)
set scr_koth_scorelimit "300"
set scr_koth_timelimit "15"
set scr_koth_roundlimit "1"
set scr_koth_numlives "0"
set scr_koth_playerrespawndelay "0"
set scr_koth_waverespawndelay "0"
set scr_koth_roundswitch "0"
set koth_autodestroytime "0"
set koth_spawntime "0"
set koth_kothmode "0"
set koth_capturetime "10"
set koth_destroytime "5"
set koth_delayplayer "0"
set koth_spawndelay "0"
//******************************************************************************
// UI
//******************************************************************************
set scr_hardcore "0"
set ui_hud_obituaries "1"
set ui_hud_showobjicons "1"
//******************************************************************************
// Map Rotation
//******************************************************************************
//set sv_maprotation "gametype dm map mp_downfall gametype dm map mp_dome gametype dm map mp_airfield gametype dm map mp_castle gametype dm map mp_courtyard gametype dm map mp_makin_day gametype dm map mphangar gametype dm map mp_suburban gametype dm map mp_makin gametype dm map mp_asylum gametype dm map mp_rondhouse gametype dm map mp_seelow gametype dm map mp_outskirts gametype dm map mp_roundhouse gametype dm map mp_shrine"
set sv_maprotation "gametype dom map mp_dome"
//******************************************************************************
// Additional DVAR's
//******************************************************************************
// There are simply too many DVAR's for AGrcon to explicitly list and index
// for you. All additional DVARs (such as weapon configs and player configs) are
// listed below.
// WEAPONS / ATTACHMENTS
// CLASS CONFIGs
// PERKS CONFIG
set perk_weapreloadmultiplier "0.5"
set perk_grenadetossbacktimer "2500"
set perk_vehiclereloadreduction "0.7"
set perk_parabolicangle "180"
set perk_weapratemultiplier "0.75"
set perk_flakjacketmaxdamage "75"
set perk_extrabreath "5"
set perk_fireproof "55"
set perk_sprintmultiplier "2"
set perk_weapspreadmultiplier "0.65"
set perk_overheatreduction "0.7"
set perk_bulletpenetrationmultiplier "2"
set perk_altmeleelerptime "40"
set perk_grenadedeath "frag_grenade_short_mp"
set perk_turretrotspeedmultiplier "1.25"
set perk_explosivedamage "25"
set perk_altmeleedamage "200"
set perk_bulletdamage "40"
set perk_flakjacket "75"
set perk_armorvest "75"
set perk_parabolicicon "specialty_parabolic"
set perk_parabolicradius "400"
// _bot
set bot_main "1"
set bots_main_GUIDs ""
set bots_manage_add "12"
set bots_manage_fill "12"
set bots_manage_fill_spec "0"
set bots_manage_fill_mode "0"
set bots_manage_fill_kick "1"
set bots_team "autoassign"
set bots_team_amount "0"
set bots_team_force "1"
set bots_team_mode "0"
set bots_skill "0"
set bots_skill_axis_hard "0"
set bots_skill_axis_med "0"
set bots_skill_allies_hard "0"
set bots_skill_allies_med "0"
set bots_loadout_reasonable "1"
set bots_loadout_allow_op "0"
set bots_main_firstIsHost "0"

View File

@ -1,26 +0,0 @@
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z

View File

@ -1,68 +0,0 @@
# T4M Bot Warfare v2.1.0
Bot Warfare is a GSC mod for the T4M project.
It aims to add playable AI to the multiplayer games of World at War.
You can find the more information at the Git Repo: https://github.com/ineedbots/t4m_bot_warfare
**Important to public dedicated servers**
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!
## Installation
0. Make sure that PlutoniumT4 is installed, updated and working properly.
1. Extract all the files from the Bot Warfare release archive you downloaded to anywhere on your computer.
2. Run the 'install.bat'. This copies the mod to your WaW mods folder.
3. The mod is now installed, now run your game.
- If you are a dedicated server, you will need to set the DVAR 'fs_game' to 'mods/mp_bots'
- If you are not a dedicated server, open the 'Mods' option from the main menu of the game and select 'mp_bots' and then 'Launch'.
4. The mod should be loaded! Now go start a map and play!
## Menu Usage
- You can open the menu by pressing the primary grenade and secondary grenade buttons together.
- You can navigate the options by the pressing the ADS and fire keys, and you can select options by pressing your melee key.
- Pressing the menu buttons again closes menus.
## Changelog
- v2.1.0
- Bot chatter system, bots_main_chat
- Greatly reduce script variable usage
- Improved bots mantling and stuck
- Fix some runtime errors
- Bots sprint more
- Improved bots sight on enemies
- Bots do random actions while waiting at an objective
- Improved bots from getting stuck
- Better bot difficulty management, bots_skill_min and bots_skill_max
- v2.0.1
- Reduced bots crouching
- Increased bots sprinting
- Improved bots mantling, crouching and knifing glass when needed
- Fixed possible script runtime errors
- Improved domination
- Bots use explosives more if they have it
- Bots aim slower when ads'ing
- Fixed bots holding breath
- Fixed bots rubberbanding movement when their goal changes
- Added bots quickscoping with snipers
- Added bots reload canceling and fast swaps
- Bots use C4
- Improved revenge
- Bots can swap weapons on spawn more likely
- v2.0.0
- Initial reboot release
## Credits
- iAmThatMichael - https://github.com/iAmThatMichael/T4M
- INeedGames(me) - http://www.moddb.com/mods/bot-warfare
- PeZBot team - http://www.moddb.com/mods/pezbot
- Ability
- Salvation
Feel free to use code, host on other sites, host on servers, mod it and merge mods with it, just give credit where credit is due!
-INeedGames/INeedBot(s) @ ineedbots@outlook.com

View File

@ -1,2 +0,0 @@
xcopy mp_bots "%LOCALAPPDATA%"\Activision\CoDWaW\mods\mp_bots\ /Y
pause

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB