Left 4 Dead 2

Left 4 Dead 2

Left 4 Bots (Improved A.I.)
Showing 1-10 of 53 entries
< 1  2  3  4  5  6 >
Update: 9 Jun @ 1:44am

- Fixed a bug introduced with the previous version that made the commands no longer work after map transition

Update: 8 Jun @ 5:20am

- Changed the addon loading method to make it load even with other addons using the scriptedmode and scriptedmode_addon scripts (like Dark Messiah E3 custom map)

Update: 10 Oct, 2023 @ 2:23am

- Overhauled requirement check script
- Little workaround for vocalizer issue with 5+ survivor bots (you are correctly identified as the source of the vocalizer command but the destination bot might still be inccorect)

Update: 18 Aug, 2023 @ 11:13pm

- Minor changes to make it work with the new Left 4 Lib

GitHub Repo: https://github.com/smilz0/Left4Bots/tree/V1

Update: 3 Jun, 2023 @ 9:03am

- Fixed a bug introduced with the previous update

Update: 26 May, 2023 @ 5:02am

- Fixed some random crashes when playing mutations with no bots in certain campaigns.

- Added a workaround for a game issue that makes the game freeze for a moment when entering the saferoom while the witch is chasing you.

Update: 4 Mar, 2023 @ 3:25am

- Removed the visibility check of the target spot in the "bots throw itemname" command. Now the closest bot to the spot (with that item) is selected, regardless the bot can actually see the spot or not.

- shove_si_within no longer applies to boomers (to avoid making them explode for bashing too much).

- throw_molotov = 0 is no longer hardcoded for the Dead Center finale. A default "settings_c1m4_atrium.txt" with "throw_molotov = 0" will be created instead.

- Added the following settings:
signal_max_distance (default value: 2500)
signal_min_distance (default value: 150)
signal_min_interval (default value: 5.0)
signal_chat (default value: 1)
signal_ping (default value: 0)
With these settings, the bots will be able to signal the presence of useful pickup items such as weapons, ammo, laser sights etc. to the human team mates.
The bots will only signal an item if that item might be useful to at least one human survivor (so no signal in a full bots team) and only when they pick up that item, not when the item is spotted (sadly no item spotted event triggers for the bots).
signal_min_distance and signal_max_distance are the minimum and maximum distance from the human team mate (who might need that item) in order to signal the item.
signal_min_interval is the minimum wait time (in seconds) for repeating signals (2 or more signals for the same item type, regardless the source bot).
The signal will be in the form of vocalization (like "Pills here" etc.).
If signal_chat is non 0, they will also chat it.
In addition, if signal_ping is non 0 and "Left 4 Fun" addon is installed and enabled, they will also mimic the L4F's "scripted_user_func ping" command on that item.
If you want to disable this feature altogether just set signal_max_distance to 0.

Update: 27 Feb, 2023 @ 8:39am

- Added the setting "handle_l4d1_survivors" (default: 1). Allow (1) / Disallow (0) the addon's AI to handle the survivors in the L4D1 team. It is meant to be used in those maps where the main team is the L4D2 one and the L4D1 survivors are spawned to help do something with the main team (like in The Passing). The addon will automatically create settings override files for the 2 official maps The Passing 1 and 3 with just "handle_l4d1_survivors = 0". You can do the same for the custom maps that need it.

- Fixed a bug that let you duplicate a throwable item by using the give/swap feature (with RMB) immediately after you throw the item you are holding. Now the feature is disabled (for everyone) for 1.5 seconds every time a throwable is fired.

Update: 25 Feb, 2023 @ 6:42am

- Fixed an issue with the "Last Stand" finale that was making the bots go pick up the gascans too early

- Added the setting "shove_si_within" (default: 70). Bots will shove special infected (all except the charger, tank and witch) that are within this range.

- Added the ability to use the "bots" keyword in the "witch" command (bots witch). The addon will automatically select the first available bot holding a shotgun to crown the witch you are looking at. The vocalizer line bound to the command will already work as "bots witch" if no bot was selected with "Look".

- "bots throw" (without the itemname parameter) no longer checks if the bot can see the target spot (like before). The trace check is only performed if the itemname parameter is added.

Update: 17 Feb, 2023 @ 9:39am

- Added the setting "hold_items" (default: 1). Enables/Disables holding carry items (gnome, gascans ecc..) when you tell the bots to pick up that item with the "use" command.

- Added the setting "special_shove_chance" (default: 95). Chance that the bot will try to dead stop the hunter and jockey (Even with 100, there is still chance that the bot will not shove. For example when the target of the hunter/jockey was another survivor but the bot got in the way).

- Added the setting "dodge_charger" (default: 1). Enables/Disabled bots try to dodge a charge. The bot will only try to dodge if there is enough space to move left or right and only if the direction of the charge, the moment it starts, is towards him.

- Added the setting "shoot_smokers_tongue" (default: 1). Enables/Disables bots trying to shoot (the bot will crouch and shoot) the smoker's tongue when a survivor is being strangled and the smoker isn't visible. (NOTE: This isn't perfect and may slow down the rescue even more, depending on the situation. If you don't like it, disable it)

- Added the setting "fall_velocity_warp" (default: 10000). If the bot's falling velocity is >= this, the bot will be automatically teleported near a random team mate. 10000 is meant to disable the feature. To enable it you can set a value like 560 (cvar fall_speed_safe) or 720 (fall_speed_fatal).

- Added the settings "team_min_medkits" (default: 4) and "team_min_defibs" (default: 0). These values represent the minimum number of medkits and defibs (in the entire team) the bots will look for when choosing what to pick up. The bots will first try to have the minimum number of medkits and then look for the required defibs. For example: if you set team_min_medkits = 3 and team_min_defibs = 1, the bots will look for at least 3 medkits first, then 1 of them will replace his medkit with a defib once he finds it. If their inventory slot is empty they will always pick up anything. Unfortunately the base AI will still give priority to the medkit, so it will try to pick the medkit and then the defib over and over again. Just carry them far away to make them stop.

- Added the setting "bg_chance" (default: 50). Chance that the bot will say one of it's chat lines at the end of the campaign. Like gg_chance but in this case is for when the bot was dead or incapped at the escape. (NOTE: Now you can customize the chat lines the bots will say by editing the gg.txt file and bg.txt file - See below)

- Added the following settings:
file_admins (default: "admins.txt"): Name of the file containing the admins list
file_convars (default: "convars.txt"): Name of the file with the cvar changes
file_itemstoavoid (default: "itemstoavoid.txt"): Name of the file with the list of items to avoid
file_vocalizer (default: "vocalizer.txt"): Name of the file with the vocalizer mapping
file_gg (default: "gg.txt"): Name of the file containing the chat lines to say when the bot escaped successfully
file_bg (default: "bg.txt"): Name of the file containing the chat lines to say when the bot was dead or incapped at the escape

- Now it is possible to have a different settings override for each map/difficulty combination. The addon will first load the base "settings.txt" file, then will look for override files in this order: 1. "settings_mapname_difficulty.txt", if it does not exists then 2. "settings_difficulty.txt", if it does not exists then 3. "settings_mapname.txt". With this settings override, and the file_* settings described above, you can make totally different configurations for each map/difficulty combination.

- Added the setting "no_scavenge" (default: 0). If non 0 the bots scavenge (gascans and cola) will be disabled.

- Removed the file "noscavenge.txt" as it is no longer needed. You can make a different settings_mapname.txt override file with just "no_scavenge = 1" in it. (NOTE: The addon will automatically make such files for each map name contained in your "noscavenge.txt", then it will truncate the "noscavenge.txt" file. At this point you can safely delete it).

- Added an optional parameter to the "throw" command to specify the item to throw ("pipe", "molotov", "bile". Example: "bots throw pipe"). When this parameter is used, only the first bot who owns that item will throw the item. There is also an additional check on the visiblity of the target position, the bots who can't trace to the spot you are looking at will also not throw. (NOTE: if this parameter is omitted, there will be no trace check, like before). Now you can bind a generic "say bots throw itemname" to quickly order the bots to throw that item where you are looking at, instead of having a bind for each bot.

- Added the ability to use the generic "bots" in the "heal" ("bots heal targetname") and "healme" (bots healme) commands. The addon will automatically choose the closest bot to the target with a medkit. If the target is a bot and has a medkit, he will just heal himself.