Left 4 Dead 2

Left 4 Dead 2

Left 4 Bots (Improved A.I.)
 This topic has been pinned, so it's probably important
smilzo  [developer] Nov 21, 2020 @ 3:14am
Addon commands
Chat/vocalizer command
Description
!l4bsettings [option] [value]

No vocalizer command
Admins can change the addon settings while in the game with this command
bots canceldefib

"Hurry" (PlayerHurryUp)
Cancels any pending defib command to revive dead survivors. It can be useful when someone dies but you want the team to keep rushing or if a survivor dies in an unreachable position and the bot with the defib gets stuck trying to get there
[botname] deploy

No vocalizer command
Force the given bot to deploy the upgrade pack he is carrying
bots die

No vocalizer command
Incaps all the bots alive (only available to admins).
[botname] give

"I'm here" (PlayerAnswerLostCall) while looking at the bot
Force the given bot to give you one of his items
bots go

"Go" (PlayerEmphaticGo)
In The Sacrifice finale it makes the bots activate the 3 generators
bots heal

No vocalizer command
Tells all the bots to heal themselves
[botname] heal [target]

"Suggest heal" (iMT_PlayerSuggestHealth) while looking at the bot
Tells the bot to heal the target teammate or himself (if target is omitted)
NOTE: target must be the character name not the nickname
NOTE2: "Suggest heal" vocalizer always make the bot heal himself
[botname] healme

"Heal me" (AskForHealth2) while looking at the bot
Tells the bot to heal you (it's equivalent to "botname heal me").
bots lead

"Lead" (PlayerLeadOn)
Starts the bots scavenge / In The Sacrifice finale it makes the bots go to the generators or push the bridge button
[botname] lead

"Lead" (PlayerLeadOn) after selecting the bot with "Look" (PlayerLook) while looking at the bot
Tells the selected bot to lead the way (run to the saferoom)
NOTE: it might not work in all the maps, especially in the last map of a campaign where there is no end saferoom. Sometimes they can get stuck if they can't path to the saferoom, in this case cancel the order with any of the following commands: "Follow me" / "Help" / "Move on" / "Stay together" / "Hurry up" (or whatever you remapped this to in the vocalizer.txt file)
NOTE2: keep in mind that while the bots move to execute the order they don't shoot the infected and do not pickup weapons. This command is intended to be used for a short time just to find the way when you are lost. After you found the way and/or there are many infected around and/or things to pickup, it is a good idea to cancel the order.
NOTE3: this doesn't make the bots push the buttons / activate things, they just move towards the saferoom.
NOTE4: keep in mind that their path finding system isn't great, they always go for the shortest path. Sometimes they might think that it's a good idea to jump off a ledge to reach the saferoom. This addon can't fix that so use this command carefully.
bots move

"Follow me" (PlayerFollowMe) / "Stay together" (PlayerStayTogether) / "Move on" (PlayerMoveOn) / "Help" (PlayerHelp) / "Hurry up" (PlayerHurryUp)
Cancels any previous order
[botname] swap

No vocalizer command
Use this to swap the item you are holding with the item (of the same inventory slot) of the given bot. The item can be any item from the throwable/medkit/pill inventory slots
[botname] tempheal

No vocalizer command
Like the 'heal' command but the bot will use his temporary healing items (pills / adrenaline)
bots tempheal

No vocalizer command
Like the 'heal' command but the bots will use their temporary healing items (pills / adrenaline)
[botname] throw

No vocalizer command
Makes the given bot throw it's throwable item towards the direction you are looking.
NOTE: Make sure there is no obstacle in front of the bot
bots throw

No vocalizer command
Makes all the bots throw their throwable items towards the direction you are looking.
NOTE: Make sure there is no obstacle in front of the bots
[botname] use [holdtime]

"Go" (PlayerEmphaticGo) after selecting the bot with "Look" (PlayerLook) while looking at the object
Makes the given bot press the use button on the iteractive object you are looking at. The optional parameter [holdtime] is the number of seconds to hold down the use button, if omitted the default button's holdtime value will be used
bots wait

"Wait" (PlayerWaitHere)
Tells the bots to hold their position
[botname] warp

No vocalizer command
Teleports the given bot to your position
bots warp

No vocalizer command
Teleports all the bots to your position
[botname] witch

"Witch" (PlayerWarnWitch) while looking at the witch after selecting the bot with "Look" (PlayerLook) while looking at the bot
Tells the selected bot to crown the witch
Last edited by smilzo; Jan 16, 2022 @ 5:09am