Barotrauma 潜渊症

Barotrauma 潜渊症

419 个评价
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
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
562.265 KB
2024 年 10 月 5 日 下午 10:41
6 月 18 日 下午 12:37
59 项改动说明 ( 查看 )

订阅以下载
Smarter Bot AI

在 Landbanana 的 2 个合集中
TheoreticalBarotrauma
61 件物品
TheoreticalBarotraumaServer
49 件物品
描述
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]
热门讨论 查看全部(3)
113
19 分钟以前
Suggestions
Landbanana
72
10 月 1 日 下午 4:15
Bug Reports
Landbanana
224 条留言
wo 11 分钟以前 
Same problem as below
Diyar 10 月 2 日 上午 5:46 
mod doesnt work
Tadrok 9 月 30 日 下午 2:06 
Don't worked for me. Maybe because i am on linux?
Smiley Boi =) 9 月 27 日 下午 8:34 
The infinite struggle with loadouts will one day be solved, no doubt. Otherwise great mod.
Shved 9 月 25 日 上午 9:34 
It would be great to add the ability to automatically disassemble empty gun ammo crates:steamsad:
Rocky McRockerson 9 月 24 日 上午 8:13 
Can anyone confirm if this make bots do cpr more often?
Dirigible 9 月 20 日 下午 6:46 
Spin-ups incredibly loud for anyone else? I have the lower volume setting enabled, but when I load into the game, it's blisteringly loud. Seems to go away if I just kick them off the turret and let them take over again though. It's like a free prank
Yuan 9 月 6 日 上午 4:06 
rest in piss loadouts
Вахтер Общаги 9 月 2 日 上午 10:58 
Pls make mod for unlimited crew
JMars Creed 9 月 1 日 上午 10:29 
does thsi make the ai on station raids actually defend themself?