Hl2DM Native Bots v4
--------------------
The latest Update to HL2Dm introduced embedded code for the ability to use native BOTS.
A bit late in the day, but does perhaps shows that valve have future plans for the now 20 year old game.  
Thought Id attempt to configure and use them, but when trying them out, I was always forgetting where I was and whats what. 
In the end I put together an admin pre-launch script, together with an in-game HUD menu, to control the environment and playing experience.
Worked quite well, so added a bit of spit n polish and put it on here so that anyone can use it.
Along with the default provided valve maps, you can choose any other map you have previously played and have installed.
In addition, From V4 you can now also use the maps resident on the HL2DM community web-server.
(It would of been a hard job collecting all those maps, so thanks to that community for all their efforts.)
Within the main menu you can select to play the maps resident on your own system, or use the web-server with over 10,000 maps! 
The Bots need a navigation file to use for each map.
If it is the first time the map is played, a prompted process informs what responses are needed to complete the simple process of creating one. 
The latest valve update also increased the max players to "100", so yes, you can have up to 100 Bots playing at once !!
The BOTS and weapons are HD versions, and you can choose between a 'Normal' and 'High Kill + Low gravity' environment.
The Tool is also useful for just cruising new maps, investigating and testing maps, with or without the Bots etc.
The Snapshots shows the Admin and HUD selections available.
Enjoy..
-----------------------------------------------------------------------------------------------
Download the Zip file and Extract into the 'Custom' Folder :- "*\SteamApps\Common\Half-Life 2 Deathmatch\hl2mp\custom"
Click on the "HL2DM_Run_Bots.cmd" to start. On the first run, an icon will be placed on your Desktop for future easy access.
All the files are Script or Text files. You can easily view /add / edit to your needs.
NO additional 3rd party Plugins needed to run the BOTS.
The Game runs off-line so you cannot connect to on-line servers from within this MOD. 
-----------------------------------------------------------------------------------------------
** If using 'WINDOWS 11' make sure that the "terminal settings" are set to "Windows Console Host"
** Else, the menus may not display correctly. !
** Type "terminal settings" in the Settings Search Box to check.
-----------------------------------------------------------------------------------------------
The Folder "A_Bots" is moved back and forth from the "A_Bots_Storage" to the "custom" folder.
Along with the files  "A_Bots_Models.vpk" and A_Bots_Weapons_HD.vpk.
This is so that it does not interfere with other mods that may also be resident in the custom folder.
If you get Access Denied ", or a failed running of the script, it is probably because you have an explorer window or an application open using the "A_Bots" file structure.
This appears to be a protection feature prevalent more in Win 11. Close out and try again.
Right clicking on the 'cmd' file and selecting 'Run as Administrator" will probably also overcome any issues. 
You can only run one instance at a time, a message will appear to let you know.
Selecting "quit" from the admin menu, will ensure that any files in the 'custom' folder are tidied up.
----------------------------------------------------------------------------------------------- 
If you would like to use the included HD Models permanently for your HL2DM game, copy the "A_Bots_Models.vpk" from the "A_Bots_Storage" folder and rename to "HL2DM_HD_Models.vpk" or a name of your choice..
I have other packs for rebels on the Gamebanana site :- https://gamebanana.com/members/submissions/mods/1923966 
If you download any, move or rename the "A_Bots_Models.vpk" file and use the new downloaded rebels pack as intended.  
-----------------------------------------------------------------------------------------------
Added Keyboard Functions include : -
The Weapons are  bound to the number keys. Get ALL weapons with the  = [Equals] key.
The 'V' key cycles through three 'Field of View' settings.  The 'Z' key is a toggle zoom.
View the console output when started for more info.
-----------------------------------------------------------------------------------------------
There are quirks/bugs in the steam code:-
If you go into spectator mode, one bot will constantly cycle through all the player models.
Not all expected NextBots commands appear to function correctly. 
No multiplayer teams.
 -----------------------------------------------------------------------------------------------
The Main Menu is mainly self explanatory.
The local and Web Server maps are in separate selections.
The local resident files are probably familiar files, whilst the web-server are new.
When the webserver files are updated, the list is modified and the names of your resident maps are removed.
This keeps the total number down, as the web-sever has over 10,000 maps and therefore on initial setup can take a few seconds to sort out. !
(It is best to choose the selection U -- 'Update "Remote Maps" listing' to get and sort the latest maps & files.)
 -----------------------------------------------------------------------------------------------

    	============ Map Menu ============
 
		1 : Lockdown
		2 : Overwatch
		3 : Powerhouse
		4 : Resistance
		5 : Runoff
		6 : Steamlab
		7 : Underpass
		
	============ Action Menu - Maps ============

	P : Play the PREVIOUS Map.
	F : Show FAVORITES - Last 9 maps.
	L : List and Choose Local Disk Maps.
	W : List and Choose Web Server Maps.

	============ Action Menu - Admin ===========

	E : EDIT the Bots Config File.
	N : Change NUMBER of Bots SPAWNED.
	H : Toggle High Kill - Low Gravity.
	U : Update "Remote Maps" listing.
	Q : QUIT.
	
 -----------------------------------------------------------------------------------------------	

Set "Old School = Yes"  
