Left 4 Dead 2

Left 4 Dead 2

13,194 ratings
Left 4 Bots (Improved A.I.)
5
3
2
2
2
102
76
62
33
31
28
26
25
15
14
12
11
9
7
7
6
6
5
5
4
4
4
3
495
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
353.495 KB
Nov 7, 2020 @ 3:47am
Jun 9, 2024 @ 1:44am
53 Change Notes ( view )

Subscribe to download
Left 4 Bots (Improved A.I.)

Description
This addon improves the survivor bots behavior to make them more human-like and a bit more useful during the game as well as improving their combat skills.
It is a mix of vanilla AI improvements (via game convars changes) and new features added via vscript.

Main features
  • Survivor bots can pick up and use defibrillators
  • Survivor bots can pick up throwable items (pipe bomb, bile jar and molotov) and throw them when needed (sometimes they will fu** it up, i warn you lol)
  • Survivor bots can pick up and deploy upgrades
  • Survivor bots can pick up and use melee weapons and the chainsaw (for M60 and GL you need to add the addon BOTS T3 or any other similar addon)
  • Survivor bots pick up med items more efficiently without waiting for humans to pick them up first (no more medkits left behind)
  • Survivor bots can scavenge and pour gascans and deliver cola bottles
  • Survivor bots can continue the map by themselves if you die (not all maps). Don't expect them to complete an expert campaign though
  • You can play a singleplayer versus match and practice as infected against a full survivor bot team (granted you enables the addons in versus mode in the game's "addonconfig.cfg" file)
  • You can order survivor bots to press buttons, open doors, activate things, pick up weapons, use the minigun (in The Sacrifice finale you can tell them to activate the generators all together so you can get the "Chaos Generator" achievement in singleplayer and you can also send bot Bill to the sacrifice generator for the "Kill Bill" achievement. It is also possible to get the "Sacrifizzle" achievement in singleplayer if you enable addons in versus mode)
  • You can order survivor bots to hold their position
  • You can order survivor bots to crown a witch
  • You can order survivor bots to lead the way to the saferoom (can be useful when playing a custom map for the first time and you can't find the path to the saferoom)
  • You can order survivor bots to heal themselves or to heal you or another team member
  • You can order survivor bots to throw their nades
  • Survivor bots will not heal themselves if they have 50+ HP (like they do in the start saferoom) unless there are enough medkits around for the teammates who need it and the bot to pick up after healing
  • Survivor bots will try to dodge the spitted spitter's acid
  • Survivor bots will try to shoot and destroy the tank's rock
  • Survivor bots react faster, aim better and will try to help more (not always with success though)
  • Survivor bots can startle witches (by accidentally shooting them) and set off car alarms just like the human survivors (if you want)
  • Survivor bots can give their items to human survivors when they aren't in fight
  • Human survivors can give their throwable items to any other survivor just like they do with pills and adrenaline
  • Human survivors can swap their throwable items with a survivor bot (you just give them your item to receive theirs back)
  • Last survivor bot entering the saferoom immediately closes it
  • Other features and more details can be found in the RELEASE NOTES

You can customize the vscripted features as you like by changing the ADDON SETTINGS[gist.github.com] ingame via chat command "!l4bsettings [setting] [value]" or by manually editing the file "Left 4 Dead 2\left4dead2\ems\left4bots\cfg\settings.txt".
Vanilla AI features are improved via game convars changes (like many other AI improvements do) that are loaded from the file "Left 4 Dead 2\left4dead2\ems\left4bots\cfg\convars.txt". You can edit this file as you like or you can disable it in the settings.
Bot orders can be issued via CHAT COMMANDS.
Most commands are also bound to a vocalizer line. You can change the bindings as you like by editing the file "Left 4 Dead 2\left4dead2\ems\left4bots\cfg\vocalizer.txt".

NOTE: The addon configuration files are re-loaded at the beginning of each map/chapter so you can edit them without the need to restart the game/server.


This addon is fully compatible with LEFT 4 FUN, LEFT 4 GRIEF and the current version of the Rayman1103's Admin System.
It is also compatible with sourcemod (some plugins may be incompatible though) and most of the other AI improvement addons (the convars ones, like Improved bots (simple), Competitive-bots+ and such. If you use those addons, just disable the L4B convars by setting the "load_convars" setting to "0").


PLEASE NOTE: THIS ADDON CANNOT TURN THE BOTS INTO PRO PLAYERS!
The addon does not (it can't) replace the vanilla AI, it just adds features to it.
This means that most of the issues that affect the vanilla AI will probably still be there even with this addon installed.

Sorry but this is all i can do.


How to install
All you have to do is to subscribe to this addon, subscribe to LEFT 4 LIB (mandatory) and you are done.
For dedicated servers simply upload the two .vpk files into the server's "Left 4 Dead 2/left4dead2/addons" directory and the local "admins.txt" file into the server's "Left 4 Dead 2/left4dead2/ems/left4bots/cfg" directory (see below).

How to add admins
Depending on the settings, only admins may be able to give orders to the bots.
Once installed, the first time you run the game (local server or singleplayer) you will be recognized as the host and automatically added to the file "Left 4 Dead 2\left4dead2\ems\left4bots\cfg\admins.txt".
You can add other admins by adding lines to the file, just make sure each line is in the format "STEAMID //NAME".

NOTE: The steam id can be found with any steam id finder websites on the internet and it's the one with this format: STEAM_x:x:xxxxxxxx. The ID usually starts with "STEAM_0", if that doesn't work just change the first 0 to 1 STEAM_1 (don't touch the rest).


Useful links
If you have questions, suggestions or you want to report bugs, please use the links above rather than the comment section below.


Like my mods?
Donations are not required but are greatly appreciated.
[ko-fi.com]
Popular Discussions View All (46)
741
Sep 18 @ 10:57am
PINNED: Bugs
smilzo
514
Aug 28, 2025 @ 2:23am
PINNED: Suggestions
smilzo
314
Oct 28 @ 12:13pm
PINNED: Questions
smilzo
2,403 Comments
12 hours ago 
I do like the bots can help with the gas cans in the vanilla maps but the code doesn’t seem to work that way in custom maps unfortunately
13 hours ago 
This mod is great, but I gotta say, it makes it makes missions like the gas canister collecting really easy. So it might be worth increasing difficulty if it happens to balance it out.
Nov 5 @ 5:55am 
:steamhappy::steamthumbsup:
Oct 22 @ 3:25pm 
anybody who think this mod sucks should consider that you can use chat commands (not console commands, and you can bind them to keys), here are the commands that is very very useful

bots wait (make them stand in place, functionally a turret)
bots warp (teleport all bots to your location, if you're standing inside a helicopter some of them might fall, so warp just several paces before entering the copter in Dark Carnival)

thanks to that i can comfortably play this like it's Doom.

still shame on the bots, the enemy AI in Half-Life 2 was amazing and the game released after Star Wars Republic Commando, Ghost Recon, and Mass Effect, all of them which have full contextual commands to your teammates.

The second iteration Left 4 Bots 2, which is arguably better, can do the command above too.
Oct 18 @ 5:18pm 
they are still really lobotomized im ngl
Oct 13 @ 1:39pm 
Does this also effect mods like Coach gets ptsd or Bill dies from old age mod where it won't work?
Oct 12 @ 5:02am 
这mod的bot更弱智了,人倒在痰边上不会躲痰硬踩,还有就是救被特感控住的主机欲望更低了,旁边被抓了先打小僵尸的来了,还有打克喜欢后退不看有没有挡着的,依旧被克炒菜,我说实话一带三个原版电脑还能打带这个是真红温,电脑是一定是要会第一救主机的,还有就是能不能加个电脑不准拿喷子的,两个电脑拿喷子打又打不中贡献率低得要死,被舌头拉了不知道推就拿喷子在那射舌头,真的没脑子
Oct 12 @ 3:49am 
good
Oct 11 @ 9:44pm 
very good mod
Sep 28 @ 12:18am 
Trash mod, AI even stupider than base game. Stuck in unfavourable position, don't save pinned teammates, make suicidal decisions etc.