Barotrauma

Barotrauma

Barotrauma Workshop
You can build your own submarines and monsters with in-game editors and share your creations with other players. Imagine and experiment.
lumiscent 3 13 May, 2023 @ 1:36am
2 head slots MOD ?
Hello everyone.
I find it cringey and broken that you can’t wear 2 peaces of head items but which covers different parts of it, like actually HEAD and FACE.

So here’s my question-request:
Is it possible to make a mod which allows to wear
1) 2 helmets
Or
2) special items with dedicated “flag” like (NT) surgeon mask, hardened oxygen mask (EhA) or vanilla bandit mask? If yes could you give me some examples or guides for that? As I understand now client lua will be necessary, fix some conflicts with overlapping items with “hide” and for second variant (?)made a flag, add it to everyone, set sprite depth… what problems it will cause?

Do not offer vanilla heads compatible with masks crafting mod
< >
Showing 1-2 of 2 comments
pks 7 15 May, 2023 @ 12:07pm 
The easiest and least messy way, probably, is to reuse Headset slot - which is pretty much useless and redundant item.

Modifying actual character slots might get messy, and lua-xpath does not support injecting modifications into character configs yet (I think).

So I suggest using lua-xpath to modify a range of items to be wearable in
<Wearable limbtype="Head" slots="Any,Headset,Head"...
instead of
<Wearable limbtype="Head" slots="Any,Head"...

They'd also need basic headset comm functionality, of course, but that's just copy-pasting a few lines.

I might try doing that meself
pks 7 15 May, 2023 @ 1:47pm 
Assigning helmets to headset slot works fine without any tinkering:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2976344110

If transfer to headset slot is hard (restricted to new slot), it does not seem to affect bots spawning in outposts much, but will remove a helmet worn by player in a savegame into a duffel bag.

Now, autoinjector, HUD etc. in helmets would require making basic helmets OP or adding these as separate items, like in "Advanced Headsets" by Dixon.

If same is done to all helmets and hats, a standard headset becomes just "one of hats". But I dunno how this might interfere with spawning - so far for bots, helmets spawn instead of headsets.

I can't think of anything useful or worth the effort beyond that.
Last edited by pks; 1 Jun, 2023 @ 6:35am
< >
Showing 1-2 of 2 comments
Per page: 1530 50