(MSC) AG3 Survivor Smart Bots

If you liked this item, please rate it up on Steam Workshop page.

Author: [FoRcE]army_guy3

Last revision: 6 Feb, 2023 at 20:13 UTC

File size: 259.38 KB

On Steam Workshop

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

Download
Required items:

Click the title to search on this site.


Master Script ControllerSteam Workshop