Left 4 Dead 2

Left 4 Dead 2

46 ratings
(MSC) AG3 Survivor Smart Bots
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Miscellaneous
File Size
Posted
Updated
259.384 KB
Jul 11, 2022 @ 3:41am
Feb 6, 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://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
76 Comments
the command to use a defibrillator on the bot does not work.
7usta1diot Mar 4 @ 6:38pm 
make the aim a bit more realistic than just aimbot for the bots
Mark Dec 20, 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 Jul 2, 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.
imbot Jun 10, 2023 @ 9:09pm 
if they see medkit and defib they start spam picking it up
[TF] Baka Baka Jun 3, 2023 @ 9:49am 
This mod is amazing! I'm playing RH8 DUO with nick, it's awesome!
Drekr Jun 2, 2023 @ 7:45am 
this bot is preventing them to heal themself

can u fix it?
[FoRcE]army_guy3  [author] May 30, 2023 @ 11:56am 
If someone wants to make a thumbnail, let me know. :P
devlos May 29, 2023 @ 11:17pm 
When are you gonna change that thumbnail army_guy3 , the only reason this does not have 100K subs is because off that thumbnail cause this shit is amazing tbh. :steamthumbsup:
tom Feb 6, 2023 @ 10:06pm 
ohhh ok, i understand