SAIN - Solarint's AI Modifications - Full AI Combat System Replacement 4.1.1

Do not ask when mod authors will update their mods or if they can upload older versions of their mods.
Bothering mod authors will lead to warnings and repeat offenses will lead to bans.
Due to an unusually high volume of traffic, our site may be experiencing intermittent slowdowns. If you notice any issues, log out of your account and browse anonymously so you can better utilize caching or try using forge.sp-tarkov.com to search for and download mods.

Bots that don't suck.

REQUIRES latest BigBrain by DrakiaXYZ
REQUIRES latest Waypoints by DrakiaXYZ

Report issues or bugs to here: SAIN Github Issue Tracker

Any issues must include a full list of your server and client mods, the version of SPT you are playing on, and either your Bepinex/LogOutput file or an exact description of the issue you are experiencing and the context of when it occurred. Just telling me "its broken" is not helpful what so ever.


[tabmenu]

HUGE Thanks to everyone in the Discord who helped test the Alpha builds of 2.0. Ya'll are the only reason this mod works as well as it does!

  • Version 4.1.1

    Fixed Vision Speed Multiplier being opposite what it should be. Causing bots to see very slowly on hard sain presets, and see quickly on easy presets.

    All old presets are going to be affected.

    Sorry ;( BSG changed something at some point, and I only realized now.


    Fixed a few cases of bots failing to calculate a path to their enemy.

  • Version 4.1.0 Hotfix

    Fixed bots rapidly swapping between targets to suppress.


    Fixed bots being unable to track close range targets moving perpendicular to them.


    Disabled smoothing when a bot has successfully aimed and a target and is starting to shoot.


    Fixed smoothing config settings not being applied.


    Fixed bots suppressing into walls and staring into walls in certain situations.


    Fixed error that can happen when changing preset.

  • Version 4.1.0

    for SPT 3.11.x

    Reworked Bot turning and smoothing calculations.

    Added new ballistics prediction for Bot Aim. They should account for distance and leading targets fairly accurately.

    Thank you Janky for the help in the math of all this.


    Improved performance, especially for large amounts of bots fighting across the map.

    Reworked Bot Cover Finder.

    Reworked Bot Suppression. A bot's personality now tells a bot how it should suppress enemies, some bots will be jumpy, some wont suppress at all.

    Improved Bot pathfinding and sprinting.

    Reduced how often bots will lean, and made their leans more accurate to how a person would lean into corners as they seek a target.

    Reworked how bots decide to seek and hold cover, or search for enemies.

    Improved bot group search behavior.

    Different Personality Types will search for enemies at different “paces”, some will carefully peek corners, others will aggressively swing angles.

    Improved simulated arm injuries on bots.

    Improved bot simulated recoil.

    Reworked how bots select different enemies.

    Reduced the amount of situations where a bot could be stuck in a loop of searching, then going back to cover, then searching again without ever making progress.


    Known issues:

    Doors are 45% cursed.

    Infinite mag bug. It's a bug in the EFT build that SPT 3.11 is running on, it's already been fixed by BSG.

    Bot busy hands.

    Tagilla is bored of using his hammer for a little while.

    Bots are still not the most intelligent about ammo conservation in all situations.


    All presets are out of date, many old settings were setup incorrectly due to de-obfuscated eft code being difficult to understand, check tool tips!

  • Version 4.0.4

    Fixed ADS Spam causing inter dimensional scavs that break your sound and cause desync with fika.
    Fixed a few bot reload bugs.

  • Version 4.0.3

    Full credit to @dwesterwick for the fixes here.

    Gameplay Changes:


    Fixed bots being unable to extract

    Bots will now use the new SAIN steering system while extracting (instead of only looking straight ahead)


    Code Changes:


    Fixed BotPathFollowerClass.WalkToPoint() not returning true if Bot.Mover.CanGoToPoint() returns true (which is the case with RunToPoint())

    Expose mustHaveCompletePath as an argument in WalkToPoint() and RunToPoint()

    Fixed NRE spam for GetEnemyToShoot() if priorityEnemy == null

    Fixed BotComponent.Bot NRE if BotOwner == null

    Fixed AddCornersToPath() exception when a path was not previously set for the bot

  • Version 4.0.2

    Changes to door opening to try to make it less broken. When a door is opened or closed, it will disable collision for 3 seconds on any nearby bots. It's still pretty awful, but BSG updated their ai door opener in a future patch, so just hold tight.
    Removed all of sain's mag refilling logic and reverted everything back to mostly vanilla. Bots should never run out of ammo now.
    Fixed bots being unable to move when trying to melee.
    Bots still get the infinite mag bug, and it looks like its a vanilla eft issue.
    Added some config options for suppression under Global Settings -> Mind
    Added slight random sway to bot look directions so they look less robotic. It increases or decreases depending on if they are moving, aiming down sights, or their arms are injured. Can be configured or disabled in GlobalSettings -> Steering.
    Slight adjustments to bot turn smoothing.
    Bots can now suppress any target at any time if they meet requirements, rather than just their focused enemy.
    Bots now check if any target is shootable rather than just their focus enemy. Should prevent bots from ignoring obvious enemies.

  • Version 4.0.1

    SPT 3.11.x


    Fixed error spam when out of raid.
    Bots now use the same movement smoothing and inertia as players.
    Added more control over turn smoothing and corrected a few issues with it (can be edited from globalsettings .json file of your preset)
    Increased smoothing for better visual results, but it now changes depending on if a bot is aiming, at peace, sprinting, ect.
    Decoupled bot character steering from movement direction, bot animations now look like players do.

  • Version 4.0.0

    SPT 3.11.3 Only.
    New:
    Silky Smooth bot turning.

    Added smoothing to bot movement, leaning, speed changes, and posed changes.

    Added new path visibility system that is multi-threaded. Bots should no longer stare into walls if their enemy is on the other side of it, but rather will look to the place that enemy would appear. (still needs some work, but is mostly functional)

    Improved bot reactions to grenades, including their own grenades (not perfect but the entire system should be redone)

    Rewrote how audible distance of footstep sounds is calculated, should be more closely aligned with how it sounds to players.

    Fixed flashlight detection not working.

    Moved all bots in combat to use sain's pathfinder for walking instead of just sprinting.

    Greatly increased the amount of suppressing fire from bots. (Not configurable yet)

    Added "Strafe Speed" Config option for bot settings. Depending on bot type and difficulty bots will strafe faster or slower.

    Rewrote how bots are ticked and initialized.

    Fixed a vanilla behavior not being removed from scavs and overwriting sain behavior.

    Added new multithreaded functions.
    - Enemy Place Job (for checking distance and visibility of last known positions)
    - Path Visibility Job (Finds the place a bot should look at, based on where their enemies last know position)

    Optimized everything based on Unity Profiling data.

    Added new Hearing sensor that should both run better and expand functionality.

    Added Bot deafening system from gunfire. If a shot goes off close to a bot, they will be partially deaf to quieter sounds such as footsteps.

    Added audio masking system where bots will be unable to hear a sound if they heard something louder than that sound very recently.

    The intent is to allow players to use voice-lines to cover up the sounds of them healing.

    Added new system for bullet fly-by detection on bots that tracks each bullet's real position to see if it comes close to them.
    Many small tweaks to bot decision making to resolve issues and improve behavior.


    Fixed:

    Everything.

    Multiple patches were targeting the wrong methods, and a few were entirely outdated.

    Fixed bots teleporting.

    Fixed integrated suppressors not counting as being suppressed for bot hearing.

    Simplified a bunch of systems that were not working correctly.

    And a lot more.

  • Version 3.3.1

    Small bug fixes from contributors:

    • Fix: Use HeadCommon for players without eyes aka infected by @gottyduke
    • Fix: Added a check to see if the bot is alive when trying to use healing by @DragonX86-dev
  • Version 3.3.0

    - Updated for 3.11


    No new functionality has been added, this is simply to update SAIN to work on 3.11. Bugs that were on 3.10 are most likely going to be in 3.11 until Solar gets the time to work on SAIN again. Please be patient.

    Thanks to all new contributors for helping, and an especially big thanks to Brie for updating most of the AI logic that was broken with 3.11. <3