AI Limit 1.8.0

Please do not ask when mod authors will update their mods to 3.10 or if they can upload older versions of their mods.
Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.

Disable AI (temporarily) based on distance to the player and user defined bot limit within that distance. Only the closest bots (distance wise) are enabled based on a max value you set in bepinex config.

Compatibility

Should work with spt-aki 3.5.4 and above with the newest versions



Installation


1. Download the file and unzip it into your SPT-AKI folder.

2. Verify that your Spt-aki/Bepinex/Plugins folder now has a dvize.AILimit.dll file in it.



Using the Plugin

1. Press the F12 Key to bring up the Bepinex Plugin Config Menu (At any point in the Tarkov game)

2. Configure the Bot Limit and the Distance to your cpu needs.

3. Click anywhere off screen

4. Profit.


How is this different from AI Disabler (thanks Nexus4880)'s mod?

For instance, i could set the AI Distance limit to 400 and the bot limit to 5.

Within that max distance of 400, my version will only enable the closest 5 bots.

Once you kill the bots close to you, it could activate bots up to your maximum much further away.

  • Version 1.8.0

    SPT 3.9.0


    Reminder that questing bots has its own implementation of AI Limit.

  • Version 1.7.1

    SPT 3.8.0


    Forgot to add a setting for ground zero. Thanks kickyflips

  • Version 1.7.0

    SPT 3.8.0


    Updated to allow map bot distance changes even in-raid instead of having to wait for next raid.

  • Version 1.6.2

    Updated to only search for changes in bots after the set number of in "Delay frames before recheck" bots setting.

    Basically will check if any new bots have spawned and calculate distances and sorting after every 300 frames by default (AI Limit used to do this every frame).


    Performance improvement of about 10 fps to old version of ai limit (according to one tester)

  • Version 1.6.1

    Updated for SPT 3.7.1 (just in case)


    i think last version worked fine but whatever

  • Version 1.6.0

    Build for 3.7.0 release.


    should have fixed it not working on next raid (i think).

  • Version 1.5.0

    Build for SPT 3.6.0 and 3.6.1 Only

  • Version 1.4.9

    SPT 3.5.8 and 3.5.7


    Added clearing the AI decision queue before disabling


    (hopefully helps with stutters when re-enabling and garbled sound).

  • Version 1.4.8

    1. Fixed the issue with bots moving passed the set distance limit. Thanks Nooky and Xantri!
    2. Fixed the issue with the location being detected wrong. Thanks Xantri
    3. Adjusted the default Factory limit to 60m
  • Version 1.4.7

    Test version of AI Limit that will support AI Mods like SAIN and Big Brain.

    1. It actually disables the gameobject so if a bot is 'disabled' they will not be visible in game. - you will have to figure out your magic number but remember that the closest X number of bots within your set distance will always be visible. You don't want too high of a number, but you don't want too low of a distance number either :). A bot that is re-enabled will cause some stuttering.
    2. Now has distances you can set per map and changing the settings need to be done prior to raid (probably)
  • expand your AI LIMIT Distances Further :

    I use 400.

  • Great mod. Thank you for giving me a great gaming experience.

    • What version of SPT are you on?

  • Waiting for 3.10. Great mod!

    Thumbs Up 1
  • Самый полезный и работающий мод!!! ждем обновы для spt 3.10

    Thumbs Up 1
  • Hi! How can I transfer this most needed mod of all to the SPT 3.10 version myself? Which files should be edited? I would like to upgrade to patch 15, but without a bot limit, it makes no sense to me...

    Thumbs Up 1
    • я пытался.. выдает ошибку в начале рейда.. :)

    • да, тоже самое. И я понятия не имею, какие изменения в клиенте игры привели к таким последствиям, потому что их масса.

  • good job!!!

    one of the most useful mods I have used. finally I could play street now!!! :D :D :D

    Happy 1
  • Thanks for this mod man, i'd have to spend hundreds of $ to upgrade and be able to play with stable fps without AI Limit

    Thumbs Up 1
  • :thumbup: Great mod! Literally cant play Streets without it. But is there a way for me to activate some bots like scav snipers when they are disabled by the mod? I set distance limit to 300 meters and can only see their weapons from 300m+ while there's a quest that requires killing snipers from 350m+. Forgive me if I'm being greedy.

  • will this work with sain ?

    • it should, but not with sain + questing bots

    • Is the conflict with questing bots then? or just SAIN + questing bots, because I only run QB but am interested in running this mod in conjunction.

    • Its with QB. AI LImit might interfere with bots questing which is why he implemented his own. It should still work but just realize that you would only have bots questing within the distance you set for ai limit (and you would have to disable QB's ai limit which is a custom implementation meant for it)

  • Amazing work with the mod, huge performance boost.


    Just wanted to clarify some things, probably a stupid question.


    Let's say I set the AI Distance limit to 400 on Streets, and from what I've understood all bots outside the 400m range are disabled. Though as I move around the map, do the bots previously disabled become reenabled as they begin entering my 400m range?


    If that's true, then let's say since my bot limit is set to 10 by default, and I kill 2 bots within the first minutes of the raid. When more bots "enter" my 400m range, will it only activate 2 bots to meet the 10 bot limit?


    Thanks in advance.

    • Yes, it will only activate 2 more bots to the 10 limit.

  • Thanks for the mod Props, can't play SPT without it!


    I have a question, is it ok to enable global minimum spawn distance from player in Swag n Donuts when i also use AI Limit? Or can AI Limit handle that alone when both mods are active?


    Trying to avoid bots spawning next to me while avoiding conflicts between the 2 mods.

    • I would recommend using both as ailimit won't prevent close spawning, it would just disable the bots (which might seem janky) if its set too close

  • Does this mod still work on 3.8.3?

  • oh man, this mod is a god send.
    i am running a 14900 and 4090 for my rig.
    sain, swag+donut is causing a fps drop to around 30fps in interchange using live-like setting.
    i just couldnt disable sain coz the ai is doing amazing things with it. (jump peek...etc)
    with ur mod, i got an amazing boost back to 90+ fps.
    you are doing good work here!

    if i think there is something more this mod can do, is to make a more optimised range suggestion.
    there is a huge different when u are at the corner and the centre of a map.
    still, many thanks for your mod!

    • hmm.. thats a good suggestion. I'll think about it. Worst case, just set a bot limit you can always handle and it shouldn't matter too much though

  • so i should not use "starting pmc only" in donuts if i want to use AI Limit because they despawn the pmc's and they wont respawn ?


    did i get that right ?

    • you should be able to use starting pmc.

  • Can I use it with SWAG? Will there be any conflict?

    • no conflict

  • This mod just allowed me to play with buttery smooth FPS
    Changing from 50-60FPS(65 if Luck) to a stable 70-85FPS
    Lovely, must have

  • Whenever I want to use this mod with Swag/Donuts or BetterSpawn I get almost zero bots in map.


    Any tips on how to enable both at the same time?

    • put your ai limit distance further as disabled bots will be invisible. Also, swag donuts despawn feature should be used if you want to keep bots around you - also depends on what scenario you picked for spawning in bepinex config f12 menu

    • Well, after trying different setting I can't seem to make both work. There's a huge difference in number of bots when AI Limit is on or off.


      I used to use AI limit with SVM but now you can't alter the number of bots with SVM.


      Still digging on the best config.

  • so if i use Ultra high bot count

    and i want still to have a lot of bots near me

    what settings should i use?


    THANKS ALOT <3

    • If you use custom spawn mod. Make them spawn close to you and set that distance as ai limit distance.

    • just using donuts

  • Does this support Ground Zero map in 3.8?

  • I notice high fps drops on client side using this mode, tho server load isnt increase much. Why it maybe so? Also I opened your solution in VS2022 and have a lot errors in it, how do I modify, rebuild it for myself? Thank you!

  • I have this weird issue:

    I tried setting the AILimit to 0 and found out, that ALL bots are now invisible. I don't know if it's a mod conflict or not, but when I set it to 1 and stand in between what should be multiple bots, they start flickering in and out as these bots get disabled one after another for moving away from me.

    Are there known mod conflicts?
    I have installed: Boops Quest API

    SAIN

    DrakiaXYZ Waypoints
    dvize.Donuts

    DrakiaXYZ Big Brain

    skwizzy Looting Bots

    • That is normal behavior, don't set it to zero. it should be set at a reasonable distance they should be viewable per map

    • Oh, I meant the Bot Limit set to 0, not the distance. I took a break from SPTarkov for a while, but I vividly remember that when I set the Bot Limit to 0, that they would just stand still and not act at all. Now they just turn invisible

    • It had to be done that way because at one point it wasn't working with SAIN. now sain has it built in so it doesn''t matter.. In any case, don't worry because its normal now.

    • Ah, now I understand. I was thinking I messed something up during the installation. Thank you for the quick response

  • how to set it up correctly? and another question, does he just take out the enemies or turn off their brain?

  • First, thx a lot for the mod. I wonder what the mod does to AI that are ouside of the range? Do these still spawn but are they frozen and only enabled when you get close enough them? Ie do still 20 bots spawn on certain maps, but only a part is activated becasuse they are withiin range?

  • Small question. Let's say that my game runs at a steady 60 FPS and my recheck delay is set to 300. Does that mean that every 5 seconds the game will loop through all the bots and reactive or deactivate them based on the distance? Or do the "frames" mean something else in this context?

    • Thats exactly what it means. It will loop through all bots again after x amount of frames to determine whether or not to reactivate or deactivate bots.


      It then puts this into a disabled list where it constantly disables those bots but skips all of the other checks until we recheck after x amount of frames.

      Heart 1
    • Great, thanks for clarifying!

    • Forgot to mention that unity is 60 fps internally for its game update cycle.... regardless of what your fps is rendering at. theres a separate fixedupdate that i think you were worried about where if you were fps were to vary..

    • Ahh, yes, that's what I was unsure about. I haven't really worked with Unity much, so I didn't know about that. Thanks!

  • Just tried some raids in different maps and definetely there's a big increase in performance.


    Sadly, mods like Swag + Donuts don't seem to be 100% compatible. Anything outside the AI radius seems to make the raid almost dead.

    • Yeah, you'll have to tweak it to fit your system. I mean thats the point though about disabling ai outside the radius.. so you get performance :)

  • Hi, first thanks for the mod it makes the game absolutely playable on streets - the only map where probably because of the navmesh if I were to guess the performance is awful.


    That being said I do have a specific question - can this mod be used specifically with looting bots [not questing bots - that mod is highly problematic to say the least] so just looting bots?


    Also am I getting the settings right?: the distance is the max hard cap distance up to which bots can be active - and the number limits the max number of active bots within that distance.

    • it should be able to be used with looting bots, but it will obviously limit the range they are active.


      yes you got the settings right

    • I use this mod along with Looting bots, Better Spawns Plus, SAIN and Waypoints. No issues at all. Works really well together.


      You definitely will need to do some tweaking to get everything working the way you want though.

  • Sorry for the stupid question, what is the max number of meters in this mod?

    • should be whatever the map size is. .. so basically as far as you want

  • Is this compatible with SWAG, SAIN, Questing/Looting Bots and Waypoints by Drax? I feel like it wouldnt be but I have to check lol. If this was compatible a guy could really get some crazy raids going. Thanks!

    • not with questing looting bots, that has ai limit built in.


      compatible with everything else though

      Thumbs Up 1
  • Hi Props, can I port your mod to another project (StayInTarkov)? I notice you don't have a license so I want to make sure that's cool by you.

  • I think it isn't working after first raid again with the 3.7.1 version, I am unsure if it will work ii raid but during my second raid when I set distance to 1 an PMC run passed me from at least 10 meter away, and it was stuttering again, still I really appreciate it as it really helps my game become smooth again