RimWorld

RimWorld

Combine Face and Hat Items
Would love this to cover Biotech's headsets
This version seems to work fine with 1.4, but it understandably doesn't affect Biotech's headsets. You really should be able to wear a headset with a hat, imo. I tried adding them myself to patches.xml but I don't know enough about modding (or how to edit the dll) to get it to work.
< >
Showing 1-3 of 3 comments
How weird. I managed to make Airwire Headsets become eye cover, but not the other headsets?
Okay, it's because the integrator headset reads from the default recon helmet, which is a full head, but the other two headsets have their own unique parent. I don't know enough about xml editing to replace a parent.

If you add this to the top of patches.xml, it'll make the airwire and array headsets work with hats, at least:

<Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationReplace"> <xpath>/Defs/ThingDef[defName="Apparel_ArrayHeadset"]/apparel/bodyPartGroups</xpath> <value> <bodyPartGroups> <li>Eyes</li> </bodyPartGroups> </value> </li> <li Class="PatchOperationReplace"> <xpath>/Defs/ThingDef[defName="Apparel_ArrayHeadset"]/apparel/layers</xpath> <value> <layers> <li>EyeCover</li> </layers> </value> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[defName="Apparel_ArrayHeadset"]/apparel</xpath> <value> <forceRenderUnderHair> true </forceRenderUnderHair> </value> </li> <li Class="PatchOperationRemove"> <xpath>/Defs/ThingDef[defName="Apparel_ArrayHeadset"]/apparel/hatRenderedFrontOfFace</xpath> </li> </operations> </Operation> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationReplace"> <xpath>/Defs/ThingDef[defName="Apparel_AirwireHeadset"]/apparel/bodyPartGroups</xpath> <value> <bodyPartGroups> <li>Eyes</li> </bodyPartGroups> </value> </li> <li Class="PatchOperationReplace"> <xpath>/Defs/ThingDef[defName="Apparel_AirwireHeadset"]/apparel/layers</xpath> <value> <layers> <li>EyeCover</li> </layers> </value> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[defName="Apparel_AirwireHeadset"]/apparel</xpath> <value> <forceRenderUnderHair> true </forceRenderUnderHair> </value> </li> <li Class="PatchOperationRemove"> <xpath>/Defs/ThingDef[defName="Apparel_AirwireHeadset"]/apparel/hatRenderedFrontOfFace</xpath> </li> </operations> </Operation>
Dioptrick 21 Nov, 2022 @ 8:46am 
is it possible to check this for integrator headset?
< >
Showing 1-3 of 3 comments
Per page: 1530 50