Left 4 Dead

Left 4 Dead

54 ratings
[L4D] Bot Config Loader
By Omixsat
Allow changing of bot convars via utilization of user-defined values. An L4D1 implementation of gamemodes.txt found in L4D2
   
Award
Favorite
Favorited
Unfavorite
Information
Simulate L4D2's gamemodes.txt, but as a file handled via plugin for L4D1.
This is the successor to my Competitive-Bots+ for L4D1. This now allows users to create and modify their preferred bot ConVars with ease.

**Initially posted in Dead 4 Mods

Can be used in game client and server
Prerequisites
  • Download[www.sourcemod.net] and install Sourcemod
  • Download[www.sourcemm.net] and install Metamod
  • Download[www.sourcemm.net] and install Game VDF
  • Set -insecure launch options in steam

How to do all of this metamod/sourcemod stuff? You can follow this Youtube tutorial:

P.S. Be sure to make yourself admin in sourcemod
Installation
Step 1: Build or download pre-built binaries

As the user, you have two choices here:

  • Build the latest l4d_botconfigloader.sp file[forums.alliedmods.net] to .smx format.
  • Download[www.sourcemod.net] the latest *.smx file.

Original link[forums.alliedmods.net] to Alliedmodders thread.

Once obtained or compiled, place the "l4d_botconfigloader.smx" in the ff. directory:
..\addons\sourcemod\plugins

I.E. If using a windows game client, the directory structure would look like this:
📁Local Disk (C:) └📁Program Files (x86) ⠀└📁Steam ⠀⠀└📁steamapps ⠀⠀⠀└📁common ⠀⠀⠀⠀└📁left 4 dead ⠀⠀⠀⠀⠀└📁left4dead ⠀⠀⠀⠀⠀⠀└📁addons └📁sourcemod └📁plugins └📄l4d_botconfigloader.smx



Step 2: Download or Create your own "BCL" (Bot Configuration Loader File)

You can create your own BCL_CFG file named L4D_BCL.cfg, but it should have the ff. content:

"GameModes" { "coop" { //Insert your custom ConVars Below this line for coop/campaign/single player mode } "versus" { //Insert your custom ConVars Below this line for versus mode } "survival" { //Insert your custom ConVars Below this line for survival mode } }

Or you can download CB+ BCL_CFG files. You will find 3 versions


As for the description of each BCL_CFG, you may refer to below:
  • CB+ Main CFG - Basically CB+ Survivor Edition CFG & CB+ Apocalypse Edition CFG combined into ONE convenient package. Choose this if you desire a balanced challenge

  • CB+ Survivor Edition CFG - Enhances all the survivor bots ONLY. Choose this if you prefer having better teammates instead.

  • CB+ Apocalypse Edition CFG - Enhances all infected AI. If you are SADISTIC and want to suffer more, you may choose this instead. Best used by veterans or well-experienced players who don't care about survivor bots or plainly dislike survivor bots


Step 3: Load your BCL_CFG file

For loading BCL_CFG files, please place the CFG of your choice into the ff. directory:
..\addons\sourcemod\configs

I.E. If using a windows game client, the directory structure would look like this:
📁Local Disk (C:) └📁Program Files (x86) ⠀└📁Steam ⠀⠀└📁steamapps ⠀⠀⠀└📁common ⠀⠀⠀⠀└📁left 4 dead ⠀⠀⠀⠀⠀└📁left4dead ⠀⠀⠀⠀⠀⠀└📁addons └📁sourcemod └📁configs └📄L4D_BCL.cfg
END: Congratulations!
The configurations you place inside the file should print onto the server console.
Make sure you pair the ConVars with the appropriate key values or else the problematic lines will prevent you from using them.

It should look like this:

P.S. Extra Bot Features and delicious gibs (if there are any)!
In the event that you'd like to tweak the bots further or just fixing the game in general, you may combine this plugin with the ff.:

15 Comments
Kyle Master 3 Jul @ 1:07am 
okay mine its not working in Left 4 dead 1
Dude 2 Jun @ 3:50am 
bots will pick the same tier 1 weapons on specific maps, for example on death toll they will always pick shotguns and on dead air thy always pick smg's, is there a way to fix this?
Plaguelord666 15 Dec, 2024 @ 12:54am 
Does sourcemod still work for l4d1?
Omixsat  [author] 26 Nov, 2024 @ 2:08am 
Simply put, each convar is structured as a key-value pair [stackoverflow.com]. Download the CFG file pack and open one of the CFG files.
xXx orange 3 Nov, 2024 @ 9:02pm 
The configurations you place inside the file should print onto the server console.
Make sure you pair the ConVars with the appropriate key values or else the problematic lines will prevent you from using them.

Could you expand on this? Does not make any sense to me
Omixsat  [author] 18 Oct, 2024 @ 11:26pm 
@ Rowdy : I haven't made the L4D2 configs just yet. I was supposed to thoroughly test the configurations I already made in a laptop(that required RMA due to battery issues), but sadly it was reformatted without my consent. I might go back into checking this soon, but not now as things have been a bit tedious lately.
Rowdy. 22 Jun, 2024 @ 9:48am 
Hey does anyone know where the L4D2 CFGs are? Cheers
Sucre 28 May, 2024 @ 9:17am 
евр
Nep Was Eaten By Me 15 Oct, 2022 @ 3:57am 
Thanks a lot! I noticed that survivor bots teleport less - wouldn't that be a problem for custom campaigns?
Juniper 27 Sep, 2022 @ 10:35am 
Nice, dude! I will definitely check this out once I have the time on my Linux server.

Cheers.