RimWorld

RimWorld

Vanilla Apparel Expanded
robopitek Nov 26, 2019 @ 11:02am
I found what repair "bald scarves" !!!
Ok so I decided to be hacker. So i enter to your mod files and added something.

Here is screenshot
https://steamuserimages-a.akamaihd.net/ugc/777363933069694888/8D790F9CA8E72B6E6942ED15A27ABC441026B7AE/
Here is files
<ThingDef ParentName="HatMakeableBase"> ]CH-> <defName>kupa1 (this is not joke, i named defName like this)</defName> ]CH-> <label>test szalik</label> <description>An artistically terrifying war mask. Hides the wearer's face and makes them more confident. Being made out of stone, it is very durable but also incredibly heavy.</description> <graphicData> ]CH-> <texPath>Things/Headgear/Scarf/Scarf</texPath> <graphicClass>Graphic_Single</graphicClass> </graphicData> <techLevel>Neolithic</techLevel> <tradeability>Sellable</tradeability> <generateCommonality>0.5</generateCommonality> <costStuffCount>30</costStuffCount> <stuffCategories> <li>Stony</li> </stuffCategories> <statBases> <MaxHitPoints>100</MaxHitPoints> <WorkToMake>4500</WorkToMake> <Mass>3.4</Mass> <StuffEffectMultiplierInsulation_Cold>0.05</StuffEffectMultiplierInsulation_Cold> <StuffEffectMultiplierInsulation_Heat>0.05</StuffEffectMultiplierInsulation_Heat> <ArmorRating_Sharp>0.25</ArmorRating_Sharp> <ArmorRating_Blunt>0.24</ArmorRating_Blunt> <ArmorRating_Heat>0.1</ArmorRating_Heat> <EquipDelay>1.2</EquipDelay> </statBases> <equippedStatOffsets> <PainShockThreshold>0.10</PainShockThreshold> <MoveSpeed>-0.10</MoveSpeed> </equippedStatOffsets> <thingCategories Inherit="False"> <li>Headgear</li> </thingCategories> <apparel> <bodyPartGroups> <li>Teeth</li> <-CH[ </bodyPartGroups> ]CH-> <wornGraphicPath>Things/Headgear/Scarf/Scarf</wornGraphicPath> ]-------------> <hatRenderedFrontOfFace>true</hatRenderedFrontOfFace> <---(this is it) <layers> <li>Overhead</li> </layers> <tags> <li>Neolithic</li> </tags> <defaultOutfitTags> <li>Soldier</li> </defaultOutfitTags> </apparel> <recipeMaker> <recipeUsers Inherit="False"> <li>CraftingSpot</li> </recipeUsers> </recipeMaker> <colorGenerator Class="ColorGenerator_StandardApparel" /> </ThingDef>

Note1: I copy and paste from your stone war mask from Vanilla Armour Expanded then I change something
Note2: "]CH->" - it says what I changed something after copying
Note3: I think this work like this because <hatRenderedFrontOfFace>true</hatRenderedFrontOfFace> is added.

Pros - Using sunglasses or scarf without get bald.

Downside - Scarf for example, is not fully rendered when the colonist's back is turned to me (but sunglasses work as we wanted, for example balistic googles from Vanilla Armour Expanded is work as we wanted too, in theory)

( Show Hair With Hats or Hide All Hats - 1.0 was turned OFF during testing)
Last edited by robopitek; Jan 3, 2020 @ 9:21am