Revive Bots – Endless Crew Respawns
A small mod for your Barotrauma Campaign which allows Bots to respawn the next round after they have died.
Revives dead Bots after each level transition and applies your prefered punishments on them. Current options are
- A kind of ‘Reaper’s Tax’ called ‘Bug Burden’
- A permanent skill loss, just like the skill loss players recieve
- The removal of genes in their genesplicer
- Preventing bots from transforming into husks
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 GmbHBarotraumaWorkshopModsInstalled3253027507’
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.
Open your console using (F3). There you have to use the following command:
Current settings and their possible values and their default values are:
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’ 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%
‘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.
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.
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.
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.
Mod requires Lua for Barotrauma to work.
Hosts require Serverside-Lua.
Clients do not require Clientside-Lua. It is optional but supported (For example for the autocomplete for console commands).
Clientside Lua is required.(See Lua for Barotrauma Workshop page for instructions on how to activate it)
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.)
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.