Barotrauma

Barotrauma

avvos_StarfoxMod
Avvoltio  [developer] 3 Jun, 2022 @ 8:16pm
For People Looking for a Workaround for [HEADID]
Ok I got it, You have one of your heads look like this inside Human.xml

<Head id="1" sheetindex="0,0" gender="male" tags="head1"/>
<Head id="2" sheetindex="1,0" gender="male" tags="head2"/>
...

where [tags="head1"] is the new thing that's added to each head

and right underneath the heads it looks like this

</Heads>
<Vars>
<Var var="NEWHEAD" tags="head1,head2,..."/>
<Var var="GENDER" tags="female,male" />
</Vars>

Where the "NEWHEAD" is the thing you write


Now go to The Human ragdoll and use [NEWHEAD] Variable, Or whatever you named it and it's going to return head1 for me.

This helps with indexing the filepaths for heads/bodies and helps you make a better fullbody mods for barotrauma

Now inside defaultragdoll.xml it has filepaths that look like this

texture="%ModDir%/Characters/Human/Bodies/Human_[GENDER]_[NEWHEAD].png"

and 20 or so bodies to go with them
Hope this helps!
Last edited by Avvoltio; 3 Jun, 2022 @ 8:32pm
< >
Showing 1-2 of 2 comments
Mereel 7 Jul, 2022 @ 7:42pm 
Think a version without the pre-colored heads is possible maybe, also ever planning on giving them just a completely bare nude body to make it more compatible with clothing mods or just sticking with this one? Still great mod and many thanks!
Avvoltio  [developer] 7 Jul, 2022 @ 11:47pm 
Maaaybe, it's gonna be quite a bit of work cause I got so many heads
< >
Showing 1-2 of 2 comments
Per page: 1530 50