Barotrauma

Barotrauma

54 次評價
Consent Required
   
獎勵
加入最愛
已加入最愛
移除最愛
檔案大小
發佈於
更新時間
439.332 KB
2022 年 3 月 22 日 下午 7:31
2022 年 6 月 13 日 上午 1:31
24 項更新註記 (檢視)

訂閱以下載
Consent Required

描述
Causes the AI to become hostile towards you if you perform certain treatments on them without their consent.

This is originally an addon for Neurotrauma that triggers the AI's combat retaliation if you take their organs or blood without permission, and you are not on their team. It can now be easily extended to include other items too, which can be user specified (see Configuration below) or added by a sub-mod (see API/Sub-modding below).


This mod uses Lua and therefore must be used with Lua For Barotrauma.

Lua For Barotrauma made by Evil Factory et al: https://steamcommunity.com/workshop/filedetails/?id=2559634234.

Neurotrauma made by Mannatu et al: https://steamcommunity.com/sharedfiles/filedetails/?id=2776270649.

Configuration
If you would like to see what items are affected, and add more of your own, see file `<Consent Required Mod Folder>/Lua/com/github/cintique/ConsentRequired/Config.lua`.

API/Sub-modding
This mod has an API; see the file `<Consent Required Mod Folder>/Lua/com/github/cintique/ConsentRequired/Api.lua`. Here is an example of how to include the API and add an item to the list of affected items:
local Api = require "com.github.cintique.ConsentRequired.Api" local myItemIdentifier = "badmedicine" Api.AddAffectedItem(myItemIdentifier)
This code can be run at any time (but it is best to do it during initalisation), no need to worry about load order.
27 則留言
guns 2024 年 10 月 21 日 上午 1:55 
As I and Ydrec found out the code is imitating CS language thus uses non-sandboxed functions in Lua.
guns 2024 年 10 月 21 日 上午 1:53 
@Сол @RocketLobster Enable CS scripting in your Lua settings (client-side Lua install). It doesn’t say it is needed on description, but it only works with CS scripting.
guns 2024 年 8 月 26 日 上午 2:53 
Awesome mod, I added it to the neurotrauma fork and changed it to reduce faction rep a bit less and ignore concent on those transport and objective NPCs since this mod makes them aggressive if you try to heal them.:SBpenguin:
Сол 2023 年 11 月 12 日 上午 7:17 
agree, mod broken @RocketLobster
HK-47 2023 年 7 月 25 日 上午 1:42 
?
HK-47 2023 年 7 月 25 日 上午 1:41 
Any vanilla version of this but for players where they can't just grab you without you giving them the right to
RocketLobster 2023 年 3 月 23 日 下午 6:17 
Hey just curious will there be an update for this mod for 1.0? It still works with Neurotrauma but from what I've noticed adding morphine (antidama1), fentanyl (antidama2), or opium to the affected items config doesn't change anything. As in bots won't call for help from security and then you can continue taking organs without any restrictions
Jacobin  [作者] 2023 年 1 月 21 日 下午 6:37 
Find the item identifiers for the stuff you want to add (for morphine I believe it is "antidama1", for opium it is "opium"), and add to the list with each identifier inside double quotes and a comma at the end of each line:

[code]
AffectedItems = {
-- ....
"organscalpel_eyes", -- Organ procurement scalpel: eyes
"antidama1",
"opium",
}
[/code]
Jacobin  [作者] 2023 年 1 月 21 日 下午 6:37 
@ComorbidDisorder

Navigate to <Consent Required Mod Folder>/Lua/com/github/cintique/ConsentRequired/Config.lua and you will find this:

[code]
AffectedItems = {
-- Neurotrauma
"surgerysaw", -- Surgical saw (amputations)
"organscalpel_liver", -- Organ procurement scalpel: liver
"organscalpel_lungs", -- Organ procurement scalpel: lungs
"organscalpel_kidneys", -- Organ procurement scalpel: kidneys
"organscalpel_heart", -- Organ procurement scalpel: heart
"organscalpel_brain", -- Organ procurement scalpel: brain
"emptybloodpack", -- Empty blood bag (takes blood)
-- NeuroEyes
"organscalpel_eyes", -- Organ procurement scalpel: eyes
}
[/code]
ComorbidDisorder 2023 年 1 月 21 日 下午 6:10 
That was exactly what I needed, but now I'm wondering what I need to type to add Morphine and the normal Scalpel to the list. I especially want to add morphine since you can bypass their consent by giving them morphine first.