Barotrauma
Consent Required
27 σχόλια
guns 21 Οκτ 2024, 1:55 
As I and Ydrec found out the code is imitating CS language thus uses non-sandboxed functions in Lua.
guns 21 Οκτ 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 Αυγ 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 Νοε 2023, 7:17 
agree, mod broken @RocketLobster
HK-47 25 Ιουλ 2023, 1:42 
?
HK-47 25 Ιουλ 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 Μαρ 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  [Δημιουργός] 21 Ιαν 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  [Δημιουργός] 21 Ιαν 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 Ιαν 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.
Jacobin  [Δημιουργός] 21 Ιαν 2023, 4:53 
@ComorbidDisorder

Are you using Windows? It may be located in "%LocalAppData%\Daedalic Entertainment GmbH\Barotrauma\WorkshopMods\Installed\2783280188".
ComorbidDisorder 21 Ιαν 2023, 0:08 
Sorry if this is a dumb question, but how to I find the config file for this mod? I've tried searching the Barotrauma folder, I've even tried just searching my entire PC and the file is nowhere to be found.
MasonMachineGuns 18 Σεπ 2022, 8:48 
ooookay then
Jacobin  [Δημιουργός] 17 Σεπ 2022, 19:16 
No.
MasonMachineGuns 17 Σεπ 2022, 7:02 
genuinely this is a no brainer for a mod like neurotrauma, if youre good at AI and stuff please get in touch with him and help him fix up the AI. Im bribing you with steam points
Jacobin  [Δημιουργός] 17 Σεπ 2022, 6:26 
Yeah that's fine, I don't mind if he integrates it.
MasonMachineGuns 17 Σεπ 2022, 6:22 
I have talked to Mannatuu on your behalf and this mod may become an option in the configuration.
Jacobin  [Δημιουργός] 5 Αυγ 2022, 21:49 
@Xiivait I am not the author of the main mod, please contact them about your thoughts instead.
Xiivait 5 Αυγ 2022, 5:32 
Please consider adding your fix to the main mod (unless you're looking for Steam points).
The fewer mods the better, otherwise people are hesitant to join (and since we are not English, it is more difficult to find people because Barotrauma is not very popular yet)
Anyway, thank you very much for the mod.
Guide Dog 17 Ιουν 2022, 19:36 
Just say yes.
Jacobin  [Δημιουργός] 13 Ιουν 2022, 1:32 
NullReferenceException crash may be fixed now
Jacobin  [Δημιουργός] 29 Μαϊ 2022, 20:17 
I'll revert to the last version. I don't know how to fix this NRE issue with Lua only and not hijacking converters (which would break other mods e.g. Neurotrauma), so for the meantime there will be the occasional crash if you try giving certain treatments to an NPC you've offended (so avoid using medicine on them I guess, Neurotrauma stuff may still work because they don't rely heavily on StatusEffects).
Acetylsalicylic Acid 29 Μαϊ 2022, 4:22 
The recent update has caused Neurotrauma to cause errors.
Afflictions fail to update in time and server occasionally freezes and turns all NPC's & Players invisible. Also gives the lualess affliction when server freezes.
I can provide error.
[SV LUA ERROR] C:/Users/[REDACTED]/AppData/Local/Daedalic Entertainment GmbH/Barotrauma/WorkshopMods/Installed/2776270649/Lua/Scripts/ondamaged.lua:(20,4-59): bad argument #1 to '!!next_i!!' (table expected, got userdata).

Disabling your mod caused the error to disappear and afflictions update in time.
Hara 23 Απρ 2022, 10:24 
my organs now
they are
YellowKnight 27 Μαρ 2022, 11:02 
You must...
Kameha 27 Μαρ 2022, 6:57 
Yes.
Doodle-Dip 24 Μαρ 2022, 6:40 
Organs you want?
Ask for consent, you must...