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.
randsell 7 9 May, 2024 @ 12:38am
About spritedepth equipped to human character's limb
Please help me with the xml description of the depth of limb for human character equipment.

Normally, <...inheritlimbdepth="true"...> is set in the <sprite> tag under <Wearable> for items that change the character's sprite when equipped.
I understand this as inheriting the sprite depth for each limb set in HumanDefaultRagdoll.xml.
I thought that if you want to change this value, you can write it as <sprite … inheritlimbdepth="false" depth="value"...> and set a new value.
However, this does not seem to be the correct value for the depth of other limbs.
For example, the ragdoll depth for the head is 0.05 and 0.02 for the right arm in Vanilla. Normally, the head is displayed behind the right arm, and the same is true when inheritlimbdepth="true" is set.
However, the problem is that when <sprite ...heritlimb Depth="false" Depth="0.03"...> is set to the head's <Wearable>, the head equipment sprite is displayed in front of the right arm.

Is there something wrong with the way I write it?
Is my understanding of inheritlimbdepth wrong?

Ultimately, what I want to do is control the display order of sprites (like a headset & cap) equipped on the same limb, so if there is another way to solve this problem, I would appreciate it if you could let me know.

It would be helpful if you could teach me in plain English if possible.
< >
Showing 1-1 of 1 comments
I would also appreciate if this was easier to control or set manually
< >
Showing 1-1 of 1 comments
Per page: 1530 50