Featured SAIN 2.0 - Solarint's AI Modifications - Full AI Combat System Replacement 2.2.1

Bots that don't suck.

REQUIRES latest BigBrain by DrakiaXYZ
REQUIRES latest Waypoints by DrakiaXYZ

[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 2.2.1

    2.2.1 -

    Fixed bots sometimes failing to react to being shot when they can't see their enemy when they were previously at a peaceful state (No Enemy or No threats heard)

    Fixed incompatibility when using both Jiro's Battery System and Realism Mod.

    Adjusted some numbers that were resulting in bots being a bit too easy than intended.

    2.2.0 -

    Looting bots integration (requires latest looting bots version)

    Bots will extract when their inventory is full and they have picked up enough loot to satisfy them. (Can be configured in Global Settings => Looting Bots

    Bots will see you slightly faster or slower depending on your speed and pose, if you are sprinting they will see you much faster.

    Bots will see targets slower if their target is above them, and faster if they are above their target.

    Reworked GUI. Added ability to rename presets in the gui. Editing a default preset now automatically creates a new copy.

    (still a bit jank, working on it)

    Optimized and greatly improved Cover finding for bots.

    Reworked Headshot protection entirely. It's much more consistent and reliable. Now On by default.

    Reworked bot recoil entirely. It has a more direct impact on their aim.

    Bots who can't currently see their enemy but are being shot at will fire blindly toward the source. (especially at night)

    Tweaks and adjustments all over the code.

    Nerfed bots AD/AD strafing sometimes. it's smoother and less frequent.

    Adjusted and added new voicelines for bots in squads.

    PMCs will react better to hearing enemies.

    Scavs will talk and respond to your voicelines if you are a scav.

    Bots can rush their enemy in more situations, like if their enemy is heavily injured, or prone and healing up.

    Bots with machine guns will lay down more suppressing fire.

    Bots will go prone with under fire and far from any cover if it protects them more.

    Bot movement and steering is smoother and less jittery.

    Fixed bots leaving flashlight on during the day.

    Added optimizations for bots that are far from the player.

    Fixes issues when using SAIN and Project Fika

    Added Performance Mode in General settings.

    Added tons of new config options in personality settings.

    Fixed bots using surgery at bad times (mostly)

    Greatly reduced chances of bots getting busy hands bug.

    And so much more.

    Known Issues:

    Bot aim is a jittery when shooting at close range.

    Performance in this version should be better overall, but feedback is required on more PCs on the actual difference.

  • Version 2.1.12

    This version will only work with SPT 3.8.0

    • Fixed major issue that caused bots to not get proper position info on the Player.
      • This was the cause of a lot of strange, unintentional behavior. Bots feel better than ever to fight. This should fix bots healing when in line of sight of the player, among many other issues.
    • Bots can be suppressed now. Suppressed bots won't lean out of cover and will usually wait in cover until a while after they have been suppressed.
    • Bots will shift between cover less often overall.
    • Rats will no longer shift between cover.
    • Added option in personality settings to enable or disable cover shifting.
    • Added advanced config options to modify shift cover behavior. (Global Settings / Cover)
  • Version 2.1.11

    This version will only work with SPT 3.8.0

    Update for SPT 3.8.0

    • Resolve issue where bots on Ground Zero can cause massive framerate drops
  • Version 2.1.10

    This version will only work with SPT 3.8.0

    Update for SPT 3.8.0

    • Updates necessary to work with SPT 3.8.0
    • Improved fallback behavior for bots
  • Version 2.1.9

    This version will only work with SPT 3.7.4 - 3.7.6
    REQUIRES Latest Big Brain and WayPoints updates for 3.7.4 - 3.7.6 as well
    This mod REQUIRES 7-zip to extract: 7-zip.org

    • Allow disabling bot extracting globally
    • Further improvements to bot extracting

    If updating from 2.1.6 or earlier you must delete SAIN-3.7.1.dll from BepInEx/Plugins/

  • Version 2.1.8

    This version will only work with SPT 3.7.4 - 3.7.6
    REQUIRES Latest Big Brain and WayPoints updates for 3.7.4 - 3.7.6 as well

    • Improved bot extract handling, bots will now update their chosen extract in the event it's inaccessible, and will be able to use triggered extracts if the trigger has been done. Thanks DanW!
    • Bots will now investigate IR light sources if they have NVGs on, the same way they investigate visible flashlights/lasers
    • Catch/fix a few exceptions
    • Limit bots reloading to once every 5 seconds, to avoid potential slowdowns when a weapon has bad data
    • Fix flashlight dazzle, it now properly checks the enemy player, and is more limited in how much scatter it adds.
      • This should resolve the issue where a bot starts missing you when THEY have a flashlight, and you aim at them
      • The dazzle effect is now less pronounced, bots are still relatively accurate even if you're aiming a flashlight at them
    • Player scav bots no longer spawn with boss brains
    • This version of SAIN is only compatible with SPT 3.7.4-3.7.6, not prior versions


    If updating from 2.1.6 or earlier you must delete SAIN-3.7.1.dll from BepInEx/Plugins/

  • Version 2.1.7

    This version will only work with SPT 3.7.5
    REQUIRES Latest Big Brain and WayPoints updates for 3.7.5 as well

    • Separate preset version from SAIN version, unless I make a breaking change to presets, they should no longer throw warnings
    • Allow disabling bot talk patching via Global Settings -> General Settings
    • New handling of extract timer, should work with shortened raids introduced in SPT 3.7.4
    • Allow external mods to trigger a forced extract on a bot
    • Remove all pause functionality (Pausing causes too many issues to be worth maintaining that functionality)
    • Remove SPT version number from SAIN dll filename
    • This version of SAIN is only compatible with SPT 3.7.4-3.7.5, not prior versions


    You must delete SAIN-3.7.1.dll from BepInEx/Plugins/

    The filename for the plugin has changed, this means you will need to manually delete the file `BepInEx/Plugins/SAIN-3.7.1.dll`

  • Version 2.1.6

    This version will only work with SPT 3.7.3-3.7.4
    REQUIRES Latest Big Brain and WayPoints updates for 3.7.3-3.7.4 as well

    • Fix squads not being created properly
    • Tweak to Searching to help with the run/skid/run/skid behaviour (Thanks Saber!)
    • Resolve an issue that stopped SAIN from working when SPT was in debug mode
    • Switch to 7-zip archives for releases
  • Version 2.1.5

    This version will only work with SPT 3.7.1, 3.7.2, 3.7.3 REQUIRES Latest Big Brain and WayPoints updates for 3.7.1/3.7.2/3.7.3 as well


    Updated for 3.7.1

    Also supports 3.7.2, 3.7.3

  • Version 2.1.4

    This version will only work with SPT 3.7.0 REQUIRES Latest Big Brain and WayPoints updates for 3.7.0 as well

    • Fixed Grenades sometimes spamming the console with errors.
    • Fixed (?) some Scavs getting assigned Boss Brains, leading to bizarre and broken behavior.
    • Fixed bots sometimes tracking the player through walls for a few seconds after losing line of sight.
    • Revamped how bots look at sounds they heard, they now look in the direction of the path to the sound instead of directly at its source, looks more natural when looking at a bot, and makes them slightly better to react if an enemy pops up there.
      • If Using DebugOverlay, it now displays a value which shows what a bot is told to steer toward for more information.
    • Fixed bots sometimes being too accurate when turning toward an enemy.
    • Fixed bots checking their own position when checking if a friendly squad member is close, leading to talking at unintended times.
    • Adjusted Bot dynamic lean. They will hold leaning angles for longer, and change lean less frequently.
    • Added New Boss on Streets to SAIN Settings to configure them.
    • Fixed bots sometimes jerking around when aiming at an enemy. ( I Think)
  • Please note that due to how Woltlab works, I'm unable to get notifications when people post comments on this mod. This means it may take me a few days to get back to people's comments.

    • Anyway to have randomized difficulty for AI instead of one flat global AI? I've been asking since this first released and there was a magical moment when you could take what this had and use one of Props AI mods to give the AI random levels of skill rather than random personalities. The golden age of bot AI. Will we ever see that return?

  • what settings should i change to make factory not be impossible difficulty? i have tweaked my difficulty to my liking on other maps but whenever i go into factory every single bot has insane reactions and aim and just magdumps me and usually headshots me. on any other map the enemies are way more tame

  • Anyone knows how to solve this ?

    ">

  • Great mod! Thanks to the author for making the game more enjoyable!

    However, I'm having some problems with the mod, every time I play the game, a large number of AIs are refreshed, and even though I adjusted the game's preset number of AI refreshes to "small", after I've gone through the trouble of clearing out the AIs in my neighbourhood, they quickly refreshed again. I'm not quite sure if this is caused by a mod, and if so, where should I set it?


    Then after using SAIN, "THAT'S LIT - LOGICAL AI VISION" doesn't seem to work, the ai can spot me very easily and shoot me from a long distance with only my head showing. It's also worth mentioning that the ai are much less accurate, and it's not as easy for me to start the next game when I'm attacked by them first.


    PS: 1. When I play "Customs", there are always at least 15-20 ai in my vicinity of 300 metres, even though I have set the number of ai to "less" before the game.


    2. Strangely enough, sniper scavs don't seem to want to attack me, they can't spot me instantly, whereas any other enemy has the eyesight of a sniper and the senses of a spider!


    3. lastly please forgive me if I'm disturbing you, as I'm a Chinese player I need to use translation software to understand the settings menu, but the translation software still doesn't help me understand the meaning of some of the settings items very well, so if I'm mentioning something that you may have already written down in your settings please forgive me for my presumption, sorry!


    Lastly, thanks again for the great mod, it really makes the game a different and better experience for me anyway!

    1. Hello, I am extremely confused here. How do I apply SAIN settings to donut bots? There are 5 presets in the SAIN F6 menu, Baby bots, Less difficult, Default, I like pain and Death Wish. Now how do I apply this to the donut bots settings? Donut has AsOnline, Easy, Normal, Hard and Impossible.
    • If you look at the bot type settings in SAIN, they each have values for the different difficulty levels you see in Donuts. the presets affect the skills of each of these difficulties.

  • Hello.


    Would it be possible to add these settings to your mod?


    bot's hearing distance for walking or slow walking speeds

    a % chance of using a light (if its equipped on gun)

  • 2024-05-09-09-51-362-8-1-7-363-0-0-0-1-0-0-1-0-1-15-04-0

  • have a problem uftRn6tlxIU.jpg?size=517x516&quality=96&sign=57622dc3ede10670e8a666ccdd1260af&type=album tarkov street

  • Hi there, thanks for the mod!


    Would it be possible to have a 'sometimes' option for headshot protection, instead of only 'yes' and 'no'? this would simulate different players having different aiming habits (center of mass vs aim for the head)

  • Hi, this is more of a feature request. I noticed that your plugin is trying to create bot squads and that it is ensuring that the player is excluded from becoming the leader of the squad. However, if you can make that actually happen behind a flag perhaps it will help with the friendly PMC mod so that bots follow you automatically. The thing is, the way BSG made the follow command is that when they start following you they are just moving cover to cover and walking slow. Not very appealing to have to wait for the bot as you move around the map. But with your mod, it seems that it will make them run to the leader's position, thus ending up with a similar situation of that of boss and boss followers.

  • Hi, does this mod comp with latest "Realism 1.1.2" release?

  • Hi, IDK if it is a problem of this mod, or any other mod... But I tried the game with mods in "developer mode" and "Eod version" too... and Bots are spawning in with a lot of loot, like on eod version scav have a lot of heal stuff and found like 2 Moonshines on them, meanwhile on developer mode PMC bots are spawning with rig full of magazines with 7n40, 856a1 etc, but a ton of them, like 6 magazines... IDK what to modify to make it more balanced.j295N6m   

    • If you could help me would be nice... it not, I'm going to do a thread if I can.

  • This mod is sooooo good , it's make bot more interesting ,but is any setting can make bot use burst fire in long rang or in mounted weapons

  • New version is great for me and great work! the only problems right now that i see are bots will sometimes prioritize doors mid fight and go try to open it and run away, makes them dead easy to kill (not sure if this is the rat personality or bots are messed up in priority). also bots will start surgery out in the open not like a player retreating then going to a corner. is there anyway i can tweak them fix these behaviors or would i need to wait for an update? thank you for your work solarint. also did you make headshot protection op i barely get headshot now but i get lit up almost every raid, which feels so perfect! ^^

  • maybe some clarifiction have the msg "Selected Preset Version: 2.2.1 but current Sain Preset Version is 2.2.0, default bot config values may be set incorrectly due to updates to SAIN" this msg appeared after i upgradet to the newest version of SAIN in the F6 settings

  • Hi.
    I already have 20lvl and i still dont found ai pmc over lvl 18. Can i change it? All the pmc's have shitty eq and gives me useless dog tags

  • No idea what happened but bots in new version feel weird. Their accuracy is worse, they are slower and dont shoot enough. They kinda stopped being a threat. Had to downgrade back to previous version to enjoy the game again.

  • 2.2.1 for SPT 3.8.0


    Installing the latest version causes this message, in the f12 settings it says that version 2.2.0

    is this normal? how to fix it?

    YDqMTpb.png


    M1oZlxh.png

    • i have the same msg but only in the F6 settings ....

    • I have this in the F6 as well, not sure what is happening but i changed to baby bots to see how they were and there was no noticable difference. They all rushed me and killed me pretty quick.

    • Currently have the same issue. My last preset was Death Wish and when I went to check my settings it was on default, but the bots didn't feel like default.

  • Aiming Upgrade by time

    What is the function of this setting?

  • The head-shot protection may be a little too good now. I haven't taken even a single hit to the head, not even by mistake or spread. When sprinting right up to a guy, I could see him twitching his aim away from head actively back and forth.

    Could you perhaps add a configurable chance that they still shoot the head if they end up aiming there?

    • I got cracked in the head on Customs running to Crackhouse from the sniper.

    • I have head-shot protection enabled and yesterday a pmc killed me head-ears from stronghold while I was running in the open outside.

  • May I ask if I want to tune the ai's reaction and marksmanship to be more accurate, the higher the value the more powerful it is?

  • If the ai uses a low penetration bullet, it will lock my head and other body parts except my chest, and my armor will last a little longer, even if I only wear a Level 2 armor.


    Is it possible for the ai to be more inclined to attack my legs when using a high-damage, low-penetration bullet, and more inclined to attack my chest when using other bullets?

  • Getting about half the framerate and my frametime graph looks like a rollercoaster on the new version. Had to roll back to 2.1.12

    • im getting some nasty fps drop aswell with this version where i sit at 28-34 fps. at start its fine with 65+ fps when a fight happen but something is happening were fps just tank and aint coming back. im on a semi old computer by now.

      Spec

      cpu - i7-9700k stock clocks

      ram - 32gb 3200mhz ddr4 ram

      gpu - rx 7800xt 16gb

      psu - corsair rm750x white v2

      mobo - Asus rog strix z370-h gaming with the newest bios


      Mods

      Swag+Donuts - v3.3.5
      Sain 2.0 - v2.2.1
      Waypoints - Expanded Navmesh - v1.4.3

      BigBrain - v0.4.0

      Server Value Modifier [svm] - v1.8.1

    • i use 5800X cpu,and install 30 MODs

      but i modified the bot nomber of swag

      i have 40~50fps in tarkovstreets

      if your fps lower ,i guess you need to reduce the number of bots

    • I can confirm that there is some fps problem with 2.2.1 version, before update i had stable ~70 fps, after update I had 50 fps and when fights happen, especially when using scopes it goes down to 20-30 fps

      i5-12600K CPU

      64GB ram

  • I really appreciate the work that's been put into this, SAIN is absolutely a game changer. Makes AI from simple annoyances into legitimate threats that need to be negotiated carefully.


    There is only one gripe I have-- while I don't have a problem with accuracy of the bots, per se, I do feel that their time to aim at targets once they spot you is very fast, even with faster CQC reactions globally disabled. If you and an ally are at opposite sides of a hallway, for example, firing at an enemy coming down the hall...


    qvurVRj.png


    When one of you retreats into cover to hide from enemy fire, the AI takes seemingly no time at all to train their aim dead-center on their next target.


    0uJHKso.png


    This seems to happen regardless of range; when we're sprinting behind cover at a large distance, when they're switching between targets more than 120 degrees apart, and even when we break LOS and pop out of different cover, the AI is extremely quick to get a bead on their targets.


    I've looked through the config and fiddled with various values, but it's hard to tell if they're changing what I describe through experimentation. Are there any specific bot config values I should be changing if I want bots to take longer to get a good sight picture on their targets, as well as reduce how long they maintain that focus once their target has broken LoS?

    • Theres not really a way to prevent this without nerfing their turning in general, which is already heavily nerfed from 2.1.12, I'll try to think of a way to implement something like this, but its currently quite simple because without completely rewriting how bots are told to turn, I can only control the degrees per sec to turn from 1 point to another. But maybe I can figure something out.

    • Ah I understand. I suppose the turn-speed is currently hardcoded then?


      I'm not sure how aiming is handled internally, but perhaps an alternative would be aim-spread which increases based on how much the bot has turned recently?

    • Yeah, when they spot you, they aim and shoot almost instantly.

  • Since using version 2.2.1, I found that under the same or even higher settings, the performance of bots is not as good as 2.1.12. For example, bots have become simpler and less aggressive. In the past, PMCs would form a team and rush to my spawn point. Now, More of a passive fire at me. And the previous bots would cause a lot of damage to me in a short period of time. Now even if I am crouching still, it is difficult for the robots to hit me, let alone seriously injure me.

    • second this, something is off about them. they arent reacting or very slowly even from short distance. pmcs will just walk backwards and shoot kinda like scavs way back in the day. also seems retreating is bugged or something because i always find ai retreating then running back and forth not knowing what to do. not sure if last part is because i dont have aggression up or something. but for now im gonna go back and test old version

    • I think one of the optimizations I did was too drastic, they default to a basic behavior while they "think" essentially, since I slow down the code to prevent frame-rate stutters, but its only intended to be for a very short period, usually less than half a second in 99% of situations, I'll see if I can tweak it more.

      Thumbs Up 2
    • Although the bots in 2.1.12 are very aggressive, I often suffer violent attacks near the spawn point, and the damage caused by the bots is very high, but it is also very fun for me. Although I will die at the spawn point most of the time, this This radical gameplay brings more fun. Or maybe it's just me, I just want you to get the feedback you deserve.

  • Hello,
    I use:
    - BigBrain

    - SAIN
    - BetterSpawnPlus (in which I toggled same faction hostility = 0)


    Yet, sometimes, BEARs (my faction) still attack me.
    Is it possible than BigBrain / SAIN overrides BSP' command that BEARs don't attack me?


    (mod load order is SAIN before BSP, if that matters?)


    Thanks

    • As far as I know, there is only a 20% chance that PMCs of your own faction don't shoot you. Generally, I think the best bet is to shoot everything that moves. I don't know if that value can be changed.

  • I clean installed the latest version but its telling me that the presets are for 2.2.1 but SAIN.dll is 2.2.0
    I deleted the one in plugins folder

    • Same here, tips?

    • When you press F6, click on save all changes to the top right, and it will be fixed.

    • Its not it then shows custom config for 2.2.0

    • You can ignore it, just a mistake on my part.

      Thumbs Up 2
  • This is just an awesome update! You guys are great! You are forever in my heart! <3

  • Whatever performance updates were supposed to happen are def not happening. With the new update installed my FPS Tanks like incredibly hard. Without the mod everything goes back to being really smooth but with it I get an insane drop off.

    • What are your specs and what fps are you getting on average? Also, any further details and in-game situations where fps drop is more prevalent?

      Remember that when posting about this kind of stuff It always helps to be more specific :)

    • yeah he made an error. Probably tried to install a mod without dependencies updates or tried to copy the files over without doing a clean install. Here is what performance looks like with semi-default settings.
      Imgur proof of my instance

    • Nope I did not make an error, ill try to get more info the site is a little slow so redownloading things is a little tough but I always install the dependencies.

      My PC Specs are as follows.

      ProcessorAMD Ryzen 7 5800X 8-Core Processor
      Video CardAMD Radeon RX 6800 XT
      Operating SystemWindows 10
      RAM48 GB


      When I can Ill try to record video proof but when I last tried it I had only SAIN and its dependencies and ran a new profile game on Factory and it just tanked hard.

    • Yeah, i had to roll back, something is fucky

  • What does GlobalAggression do?