patch for NALS facial animation using rendersubworker

This commit is contained in:
c0ffee 2024-05-03 19:47:25 -07:00
parent 6d174dbce4
commit d36c2b8314
5 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- hide node when animating -->
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationConditional">
<xpath>/Defs/PawnRenderTreeDef[defName="Humanlike"]/root/children/li[debugLabel="Head"]/subworkerClasses</xpath>
<success>Always</success>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/PawnRenderTreeDef[defName="Humanlike"]/root/children/li[debugLabel="Head"]</xpath>
<value>
<subworkerClasses />
</value>
</nomatch>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/PawnRenderTreeDef[defName="Humanlike"]/root/children/li[debugLabel="Head"]/subworkerClasses</xpath>
<value>
<li>Rimworld_Animations.PawnRenderSubWorker_HideWhenAnimating</li>
</value>
</li>
</operations>
</Operation>
</Patch>