Barotrauma

Barotrauma

163 ratings
Revive Bots - Endless Crew Respawns
2
2
5
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
23.037 KB
23 May, 2024 @ 3:48pm
25 Nov, 2024 @ 3:13pm
25 Change Notes ( view )

Subscribe to download
Revive Bots - Endless Crew Respawns

Description
A small mod for your Barotrauma Campaign which allows Bots to respawn the next round after they have died.

What does this mod do?
Revives dead Bots after each level transition and applies your prefered punishments on them. Current options are
  1. A kind of 'Reaper's Tax' called 'Bug Burden'
  2. A permanent skill loss, just like the skill loss players recieve
  3. The removal of genes in their genesplicer
  4. Preventing bots from transforming into husks



Customization

Can I customize the mod?
Yes! The mod adds a config.lua file in its folder. This file contains settings you can adjust yourself. You can also change these settings using an ingame command (F3) called 'changeReviveBotsSetting'. Changes to the config.lua file (Both manually and using the command) should persist, even after updates. If this is not the case, please report it here!

You can edit the mod manually in '%LocalAppData%\Daedalic Entertainment GmbH\Barotrauma\WorkshopMods\Installed\3253027507'
Keep in mind that changes to files other than config.lua will automaticly revert when the mod is updated!

You can also suggest some changes in the 'Suggestions'-Discussion and maybe I will add the changes in the official release.

How to use 'changeReviveBotsSetting'
Open your console using (F3). There you have to use the following command:

changeReviveBotsSetting <Setting> <Value>

Current settings and their possible values and their default values are:
Setting
Possible Values
Default Value
Description
loseGeneOnDeath
true/false
true
If set to true, Bots will lose the genes placed in their genesplicer on death
giveBugBurden
true/false
true
If set to true, Bots will recieve 'Bug Burden' when reviving
enableSkillReduction
true/false
false
If set to true, Bots will permanently lose some of their skill levels
disableHuskTransform
true/false
false
If set to true, Bots will not transform into husks after dying
bugBurdenAmount
0-100
100
Changes the strength of 'Bug Burden' bots will recieve on reviving
skillReductionAmount
0-100
20
How much their skill levels drop to their jobs default skill levels in percent

Here are some example commands:
  • changeReviveBotsSetting loseGeneOnDeath false
    (This disables the loss of genes on death. Bots will respawn with all their genes. But only if their body is not destroyed)
  • changeReviveBotsSetting giveBugBurden true
    (This enables the punishment. Bots will recieve 'Bug Burden' when they revive)
  • changeReviveBotsSetting enableSkillReduction true
    (This enables the punishment. Bots will permanently lose some of their skill levels)
  • changeReviveBotsSetting disableHuskTransform false
    (This allows bots to transform into husks after dying again)
  • changeReviveBotsSetting bugBurdenAmount 50
    (This sets the amount of 'Bug Burden' the Bots recieve to 50. Now Bots will recieve 50 instead of 100 'Bug Burden'. But only if 'giveBugBurden' is also set to true)
  • changeReviveBotsSetting skillReductionAmount 80
    (This sets how much skills the bot will lose to 80%. But only if 'enableSkillReduction' is also set to true)

You have to have the 'ManageSettings'-Permission to use this command.

The command supports the vanilla auto complete (By pressing TAB) if you have clientside-lua installed.



Bug Burden

What is 'Bug Burden'?
'Bug Burden' is a new Affliction created by this mod.
It has multiple effects:
  • Decreases Vitality(The Health of the BOT) by [10%-50%]
  • Decreases Movmentspeed by [10%-50%]
  • Gives a Skill-Penalty up to half of the BOTs gained Skills
These debuffs lessen with the strength of 'Bug Burden'. [10%-50%] means:
'Bug Burden' of Strength 1 will reduce the mentioned stat by 10%
'Bug Burden' of Strengt 100 will reduce the mentioned stat by by 50%

How do I get rid of 'Bug Burden'?
'Bug Burden' also gets healed slowly. It heals 0.028 per second. So the decreased Vitality, Speed and Skills will return after time passes. A revived BOT will be fully healed after ~1hour. You can also cure him at the Medical Clinic in an outpost.

I don't like the way 'Bug Burden' works
If you don't like its effects, they can be changed to your preference by editing the 'Afflictions.xml'.
Keep in mind that all changes to the mods file will be overwritten the next time the mod updates.



Other Information

What happens to their items?
Bots that revive will spawn with all the items which are left in their corpse.
Just like genes disappear when a player dies, genes are removed and deleted upon the respawn of bots, if the bot had a gene splicer with genetic material in it.(This can be changed by following the steps mentioned above)

In case their corpse is deleted (Eaten by monsters, turned into a husk, despawned after some time) the bot will NOT respawn with their items(Also their genesplicer). You'll have to take the items out of his corpse/dufflebag.

It is recommended to always safe their body when they die. In case their corpse is intact they'll respawn with all the items. And if not, you still have all their items in a dufflebag.

My bot transformed into a husk and lost their items
Due to how husk spawning works the bot is deleted when he transforms into a husk and cannot be revived using the old revive system. The bot will respawn with their default items and you can loot their items from the husks body.

Requirements
Mod requires Lua for Barotrauma to work.
Multiplayer
Hosts require Serverside-Lua.
Clients do not require Clientside-Lua. It is optional but supported (For example for the autocomplete for console commands).
Singleplayer
Clientside Lua is required.(See Lua for Barotrauma Workshop page for instructions on how to activate it)



Issues

Open Issues

When you take over a bot using /setclientcharacter and then switch back the bot you took over will be considered "dead" and will recieve all penalties you enabled for dead bots (Such as recieving "Bug Burden", losing Genes and skill reduction.)

Recently Closed Issues
Thanks to One4ae4ek the bug that caused the mod to crash when a bots body was destroyed, should be fixed now. This issue was caused because Barotrauma changed how job specific items were given to new bots.

Thanks to 水月 the bug that caused bots not to be revived when 'enableSkillReduction' was set to true, should be fixed now. This issue was caused because Barotrauma changed how job skill levels are stored.

Thanks to JustNU the bug that caused bots not to be revived when using the mod in singleplayer and at least one bot had a gene splicer equiped should be fixed now. Keep an eye out for if this bug still happens.
Popular Discussions View All (2)
17
28 Nov, 2024 @ 10:41am
PINNED: Bug reports
DieSchwarzeSpinne
7
30 Nov, 2024 @ 2:02pm
PINNED: Suggestions
DieSchwarzeSpinne
103 Comments
radar defender 1 Jul @ 4:38am 
oh okay that explains then thanks, have a nice day :)
DieSchwarzeSpinne  [author] 1 Jul @ 1:27am 
@radar defender. Yes, I assume you just host the server yourself? Like one of you just presses host game and the others join? Then the one hosting has to select the Lua for Barotrauma Executable when starting the server. You can refer to the Lua for Barotrauma workshop page to see exactly how to host a server with lua.
radar defender 30 Jun @ 8:47pm 
well yes i installed lua for barotrauma and my friend too, or do you mean that a server should have it too?
DieSchwarzeSpinne  [author] 29 Jun @ 3:03pm 
@radar defender. Did you install Lua for Barotrauma correctly? You need to use clientside lua when playing singleplayer (Look at the workshop for Lua for Barotrauma to see how to install that). In case you play multiplayer you need to have this mod and lua for barotrauma installed in the host.

To check if everything works you can open the console and look for the logs the mod creates. If there are no messages, the mod is not installed correctly
radar defender 29 Jun @ 11:21am 
i installed it apllied and my asisstant still didn`t respawn please advice
瀚星之翎 27 Jun @ 6:13am 
thx:steamhappy:
DieSchwarzeSpinne  [author] 27 Jun @ 6:04am 
@瀚星之翎. This is indeed an issue that can happen when the bots drop the items they hold in their hands when they die. I plan to add this later, but unfortunately I do not have time to work on this mod right now.
Aragog 26 Jun @ 1:16pm 
Got 11 suits for the 8 bots I have, most died from getting crushed by pressure anyways as they put the suits off because "of course the endworm would only attack us once, I'm completely safe" (dies immediately) Thank you for this mod. A lot of idiot bots where saved :steamthumbsup:
瀚星之翎 26 Jun @ 8:55am 
Due to the death of robots in combat with enemies, valuable firearms held in hand may fall off, and handheld items are often lost during resurrection. Can you create a function that prevents handheld items from falling off during death?
Husk cultist 18 Jun @ 7:08am 
now i wont be mad when my bot dies to a fucking hammer head baby because it was busy repairing a useless wall