Left 4 Dead 2

Left 4 Dead 2

66 ratings
(MSC) AG3 Survivor Smart Bots
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Miscellaneous
File Size
Posted
Updated
259.384 KB
11 Jul, 2022 @ 3:41am
6 Feb, 2023 @ 1:13pm
5 Change Notes ( view )

Subscribe to download
(MSC) AG3 Survivor Smart Bots

In 1 collection by [FoRcE]army_guy3
(MSC) Scripts
33 items
Description
MSC_ID: MSC_AG3_Survivor_Smart_Bots
Supports MSC_AUTOLOAD.

This is the 28th test script that runs on the Master Script Controller.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2203978515

This script improves the survivor bot AI. It is currently over 10,000 lines of code and over 250kb of data. It currently stands as my biggest l4d2 vscripts project as of this writing.

Improved Accuracy.
Priority Targeting
Tactical Reload
Dominating Special Priority Rescue
Smoker Tongue Targeting Algorithm
Charger Dodging Algorithm
Smart Supply Pickup
Seeker Algorithm
Tank Rock Shooting Algorithm
Engage Future Threat Witch Algorithms
Tactical Crouch
Realism Tactical Aiming
Smart Knockback Algorithm
Early Detection Spit/fire avoidance (Delta Bounding Detection Algorithm)
Smart NavMesh Break Down (Alignment limited by (10 * 10) point projection)
Bot Precision mode (Helper trace mode)
Bot Precision mode (Assumed hit mode)
Defib Human Players Algorithm (ALPHA)
Second Chance Defib Algorithm (ALPHA)
Second Chance Rescue Closet Algorithm (ALPHA)
Nozzle detection
Scavenger Backpack gas helper (ALPHA)
Scavenger Gas Deliver (Alpha)
Scavenger Gas Pour algorithm (ALPHA)
Survival Bots Mode (Modified settings for survival)
Accidental Explosive Detonation Prevention
Rescue Closet Smart Wait Algorithm
Tank Rock Dodging algorithm (ALPHA)
Tank Rock Redirect algorithm (ALPHA)


Chat Commands:
/bot_defib - Tells the survivor AI they can revive nonhuman players as well for the next 60 seconds.
/bot_pour - Tells the survivor AI they can beginning attempting to pour gas rather than dropping it near nozzle area.
/bot_precisionmode <value> - Tells the bots to use precision mode between 0 and 100. (Resets to default value on round restarts and map changes.)
/bot_fail - Tells the second chance bot system to trigger mission failure.


This is a very large script that I've been working on for quite a while that is based on my old l4d1 Smart Bots sourcemod plugin.

Thanks to the following for Resources, Feedback, and help with troubleshooting:
ReneTM
Rayman1103
This Shadowysn guy
Orinuse
Nescius
Mart
Solved
Eyal282
Nuki

Alpha Testing:
XNekoRose
Hyper_Warp
Solved



Keep mind this script is in alpha and is subject to change. Currently not much can be done with tank. Bots will still activate their stupid mode when a survivor is incapped. The script uses a tick think style to override aiming, This means that sometimes the game will override where the bots are looking making them shoot randomly in the wrong direction. A higher bot_precisionmode value can help in these cases.

Delta bounding is a new less effective algorithm to the previous (Delta Precision Algorithm), but fire can have 32+ deltas and comparing (insectswarm_count * 8 Deltas by SNBD * area_range) + (inferno_count * 32 Deltas by SNBD * area_range) caused the game to freeze for short intervals when bots calculated safe paths. Delta bounding only changes when the Deltas change count. Sadly this means the bots will still sometimes take damage getting out of danger areas.

The Smoker Tongue Targeting Algorithm currently has an issue with calculating smoker tongues with more than one bend point. This is a netprop vscripts limitation and I'm told by developers the issue will be fixed in future game updates. After the issue is fixed, I can finish programming the survivors to shoot at the whole tongue with multiple bend points.

Also keep in mind this script has to run a lot of background processing algorithms very rapidly for each survivor bot, Weaker systems may experience slight fps drops.


These scripts take a lot of time and effort to produce. If you like them and/or want to see more, you can show your appreciation by throwing some money my way at:
https://www.patreon.com/ag3_killstreak
78 Comments
RΞBΞCCA ⁧⁧ ✔ 18 Jan @ 7:09pm 
it works, didn't use it for very long but they're beasts at fighting and avoiding damage. the wonky stuff was when they can't decide whether they want the defib or the heatlhpack and get stuck switching them till you move. they also crouch whenever they're in your line of sight to avoid friendly fire. decent, but maybe too crazy at kicking butt lol
Mekalygie 8 Jun, 2024 @ 2:18pm 
Hi! I just wanted to say how grateful I am for this mod! While it's not perfect, it is already so much better than the vanilla bots. Thanks to you, I have finally been able to successfuly play and beat the campaigns on Expert for the first time in over a decade of playing this game!
You are very good at what you do, please keep working on this game, and thank you so much for doing this!
Граф Трахула 17 Apr, 2024 @ 11:38pm 
the command to use a defibrillator on the bot does not work.
BunnyMonster 4 Mar, 2024 @ 6:38pm 
make the aim a bit more realistic than just aimbot for the bots
Market Pluh 20 Dec, 2023 @ 10:48pm 
this is almost perfect if the bots dont pick up defib over medkit
so here's my suggestion: bots only pick defib when a player is dead
or the bots have a defib pocket
Black Wolf 2 Jul, 2023 @ 9:54pm 
please fix: they prefer to pick up defibs rather than medkits, sometimes though they'll pick the medkits back but immediately re-pick the defib, painful to deal with.
RiceIsNice 10 Jun, 2023 @ 9:09pm 
if they see medkit and defib they start spam picking it up
Baka Baka 3 Jun, 2023 @ 9:49am 
This mod is amazing! I'm playing RH8 DUO with nick, it's awesome!
L_M 2 Jun, 2023 @ 7:45am 
this bot is preventing them to heal themself

can u fix it?
[FoRcE]army_guy3  [author] 30 May, 2023 @ 11:56am 
If someone wants to make a thumbnail, let me know. :P