Barotrauma
55 oy
Consent Required
   
Ödül
Favorilere Ekle
Favorilere Eklendi
Favorilerden Çıkar
Dosya Boyutu
Gönderilme
Güncellenme
439.332 KB
22 Mar 2022 @ 19:31
13 Haz 2022 @ 1:31
24 Değişiklik Notu ( görüntüle )

İndirmek için abone ol
Consent Required

Açıklama
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://psteamcommunity.yuanyoumao.com/workshop/filedetails/?id=2559634234.

Neurotrauma made by Mannatu et al: https://psteamcommunity.yuanyoumao.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 Yorum
guns 21 Eki 2024 @ 1:55 
As I and Ydrec found out the code is imitating CS language thus uses non-sandboxed functions in Lua.
guns 21 Eki 2024 @ 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 26 Ağu 2024 @ 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:
Сол 12 Kas 2023 @ 7:17 
agree, mod broken @RocketLobster
HK-47 25 Tem 2023 @ 1:42 
?
HK-47 25 Tem 2023 @ 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 23 Mar 2023 @ 18: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  [yaratıcı] 21 Oca 2023 @ 18: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  [yaratıcı] 21 Oca 2023 @ 18: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 21 Oca 2023 @ 18: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.