Barotrauma
Ocen: 450
Smarter Bot AI
9
8
3
7
3
5
8
2
2
7
3
3
4
4
4
2
3
3
3
2
2
2
2
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Rozmiar pliku
Zamieszczono
Zaktualizowano
562.265 KB
5 października 2024 o 22:41
18 czerwca o 12:37
Listy zmian: 59 ( zobacz )

Zasubskrybuj, aby pobrać
Smarter Bot AI

W 2 kolekcjach stworzonych przez Landbanana
TheoreticalBarotrauma
Przedmioty: 61
TheoreticalBarotraumaServer
Przedmioty: 49
Opis
Some changes to the bot AI that I think are good for gameplay. Feel free to comment any suggestions you might have! I've provided some videos of a few options since it's a bit hard to explain how some stuff works in text.

Almost fully server-side, and should be safe to add/remove at any time during a save. Clientside is only needed for the configuration GUI and Orders module, which is by default disabled.

Requires Lua for Barotrauma. Make sure to follow all install instructions!

All options are completely modular, and can be enabled/disabled/tweaked using the in-game config menu (button located on the "escape" key menu).

Current Changes
  1. Equip Items
    • Crew Loadout:
      Set what items you want the bots to automatically search for/equip in various inventory slots (can be differentiated by job).
    • Re-Equip Armor:
      Bots will check their inventory and re-equip any armor they might've taken off.

  2. Combat Tweaks
    • Pre-Spin Turrets:
      Bots will spin-up certain turrets (e.g. chaingun), letting them actually utilize them. Can also adjust spin-up noise volume.
    • Arrest Humans In Player Sub:
      Bots set to "Fight Intruders" will automatically arrest hostile humans in the player sub, if they have handcuffs and a stunning weapon.
    • Prevent Attacking Handcuffed:
      Bots should never attack people in handcuffs or paralyzed people.

  3. Cleaning Additions
    • Purchased Item Crates:
      Lets you set an auto-order on purchased crates, either deconstruct or ignore.
    • Deconstruct In Bulk:
      Let bots set to "Deconstruct Items" pick up stacks of items at a time.
    • Only Use Ship Deconstructor:
      Bots will no longer use deconstructors outside the player submarine, if the player submarine has a deconstructor, even if the queue is full.

  4. Orders
    (Client and Server side probably required, unless disabled as it is by default)
    • Avoid Wandering in Room:
      Marks the current hull you're in as a room that the AI should "Avoid Staying" in. This means that they should no longer randomly wander into the room, but will still complete any tasks that may require them to enter the room.
    • Perform:
      Tell the AI to use various instruments on board the submarine. This includes Accordions, Harmonicas, and Guitars, and bikehorns (indirectly).

  5. Smarter Pets
    • Eat Food In Inventory:
      Pets are able to eat any food items inside their personal inventory when hungry. Has an option to override the "protect owner" targeting that prevents pets from eating when their owner is nearby (only affects eating inventory items).
    • Bots Play When Idle:
      Idle human bots will play with any nearby visibly non-happy pet, checking for said pets at a customizable interval.
    • Cleanable Produce:
      AI can now pick up pet "produce" items like poop, chitin, and mucus balls. They will be placed in the same containers that garden produce would be.

  6. Operate Reactor Tweaks
    • Set Fuel Rod Amount:
      Set the amount of fuel rods a bot set to "Turn On Reactor" will attempt to keep inside the reactor.
    • Detect Autoreactor:
      Added an optional setting (enabled by default) to detect if an autoreactor controller (any signal received) is trying to control the reactor. If an autoreactor controller is detected, the bot will no longer interact with the reactor beyond just refuelling and repairing. The bot will also give some dialogue to indicate this.

  7. Use Talents
    • Assistant - "Inspiring Tunes":
      Assistant AI will play bikehorns as well as any other intrument in their inventory every so often, optionally only doing so if a nearby crewmate can be buffed. This talent gives nearby a buff to all skills when doing so.

    • Assistant - "Jenga Master":
      Assistant AI will go around the sub after a set delay (when idling only), interacting with any containers that do not have the "Jenga Master" buff. This increases the Max Stack Size of every interacted container, and stops once there are no more containers to buff.

    • Assistant - "Non-Threatening":
      Assistant AI will "play dead" by ragdolling if they are being attacked and their health is below a set minimum, preventing enemies from targeting them after 2 seconds. This does not happen if the hull they're in is on fire or flooded and they need a suit/mask.

    • Captain - "Steady Tune":
      Captain AI will play a harmonica in their inventory every so often, optionally only doing so if a nearby crewmate can be buffed. This talent gives nearby crewmates psychosis resistance when doing so.

    • Engineer - "Melodic Respite":
      Engineers will play guitar with this talent, giving a long-lasting boost to repair speed for nearby crewmates.

  8. Ladder Fix:
    The annoying bug where bots get stuck on ladders has (hopefully) been fixed. After being stuck for a set period of time, bots should "nudge" themselves to the next node in their pathing.

  9. Mute Singleplayer Bot Conversations:
    SINGLEPLAYER. Also, disabled by default. This disables all the random bot conversations that normally occur (same as the vanilla Server-Side setting in Server Settings). Also has a suboption to completely disable all bot chat messages and bubble popups.

  10. Smarter Load Items:
    Bots will now replace the batteries in charged items (flashlight, handheld sonar, etc.) and oxygen tanks with a fresh battery/tank. Note: empty items (those without a battery/tank) will not be filled, as only replacing works.

  11. Replenish Inventory:
    Bots will now seek out and refill their own oxygen tanks, batteries. welding fuel tanks, and ammunition. Can optionally be applied to the "Wait" order, or only when docked.

  12. Use Furniture
    • Auto Use When Idle:
      Bots are able to sleep, just like with chairs and sitting. Sleeping actually heals a little over time in vanilla, and if you're using Neurotrauma, sleeping can help heal concussions.
    • Stay In Bed If Hurt:
      Bots will stay inside a bed if they are idling, hurt, and it is safe to do so. NOTE: This does not mean that they seek out beds when hurt, however, just that they won't leave if they are already in one.

  13. Crew Stays in Sub
    Bots (and you!) will always spawn in the sub when docking at an outpost.

Russian Translation by Kirid


GitHub[github.com]
Popularne dyskusje Zobacz wszystkie (3)
114
3 października o 16:40
Suggestions
Landbanana
74
14 października o 10:00
Bug Reports
Landbanana
Komentarzy: 234
Zolo 15 października o 15:21 
Good mod however is currently causing CTDs after a random amount of time has passed while playing campaign as well as bot loadouts not saving
Dumb Ways to Die 11 października o 7:43 
Don't worked for me too ,how can i fix it ?
Rom30o_ 10 października o 14:56 
It would be great to be able to have bots use the fabricator to craft recipes exclusive to certain talents they have in their talent tree.
He who consumes 10 października o 2:20 
My assistant isn't replacing batteries or oxygen tanks no matter how much I tweak the Ai minimum threshold. How can I get him to replace my flashlight batteries in storage for me?
ggthe01 8 października o 22:36 
說真的,你應該和官方要錢,然後把這個丟給官方更新。
speeks 7 października o 8:45 
Is there a way to order bots to remain in their dive suits, even if it's dry?

(please)
Покажите трусики 7 października o 3:51 
Залупа ебаная
Singrave 6 października o 19:28 
i'm sorry. how to add it into multiplayer? :)
wo 3 października o 9:25 
Thank you
Rocky McRockerson 3 października o 7:48 
Did you follow the lua instructions?