Barotrauma 潜渊症

Barotrauma 潜渊症

185 个评价
Revive Bots - Endless Crew Respawns
2
2
5
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
23.037 KB
2024 年 5 月 23 日 下午 3:48
2024 年 11 月 25 日 下午 3:13
25 项改动说明 ( 查看 )

订阅以下载
Revive Bots - Endless Crew Respawns

描述
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.
热门讨论 查看全部(2)
17
2024 年 11 月 28 日 上午 10:41
置顶: Bug reports
DieSchwarzeSpinne
9
9 月 27 日 下午 2:54
置顶: Suggestions
DieSchwarzeSpinne
120 条留言
NPC 11 月 1 日 下午 12:20 
ah ok good to know it may be future update
DieSchwarzeSpinne  [作者] 11 月 1 日 上午 11:48 
@NPC. Unfortunately no. But this will probably be added at a later date
NPC 11 月 1 日 上午 9:22 
Does this mod revive pets like mudrapers
drunk driving compilation #42 10 月 27 日 下午 5:00 
that's a ton of text that i don't have the attention span to understand, but you're the modder, you do what's best
DieSchwarzeSpinne  [作者] 10 月 25 日 上午 6:28 
@drunk driving compilation #42. You seem to forget that you would also need to reset the exp so the right level so new talent points do not require more exp than before. Then one would also need to consider the current exp. In case the current exp exeeds the new level threshold you would gain another talent point. In this case, would you just keep the talent point (And possibly use it for a talent that you did not have in the first place), or would you then lose 1 less talent? Furthermore, deleting the right talents is not as simple. I would need to figure out what talents are lower in the talent tree and only delete the leaves. And what happens when a whole talent tree is deleted? In this case the other talent trees become available again (As they only lock when starting a different tree). These are all things that need to be considered when I would implement losing a percentage.

It is not hard, but requires much more work than simply resetting both the talents and the exp to 0.
drunk driving compilation #42 10 月 24 日 下午 7:23 
\/ Doesn't seem too hard, take the current amount of talents and multiply by the precentage, then round to the nearest whole number of talents
either that, or do it by the total talent xp, then convert the remaining into talents
DieSchwarzeSpinne  [作者] 10 月 23 日 上午 6:37 
@drunk driving compilation #42. I guess it would be possible to lose all talents on death. Losing only a % would be a bit harder.
drunk driving compilation #42 10 月 22 日 下午 6:42 
any way of losing talents, or a % of talents on death?
DieSchwarzeSpinne  [作者] 10 月 10 日 上午 3:59 
@Samu333_Dorado_. Changes made using commands should be saved. So the next time you start the server, the changes should still be there.
Samu333_Dorado_ 10 月 9 日 下午 1:08 
I have a cuestion, if you use the commands to chance the rules of the revive of bots and close the server or the game iself, the chances i have made will stay or will chance back to default?