Barotrauma
55 평점
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://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
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.