RimWorld

RimWorld

[NL] Facial Animation - WIP
shipsail 14. feb. 2019 kl. 2:11
Can you insert this code for CnP & BnC?
private static bool MyRenderPawnInternal(Vector3 rootLoc, float angle, bool renderBody, Rot4 bodyFacing, Rot4 headFacing, RotDrawMode bodyDrawType, bool portrait, bool headStump, ref PawnRenderer __instance, ref Pawn ___pawn, ref PawnWoundDrawer ___woundOverlays, ref PawnHeadOverlays ___statusOverlays)
{


// if pawn is child return to origin (for CnP & BnC)
if (___pawn.ageTracker.CurLifeStageIndex < 3) return true;
//


DrawFaceGraphicsComp comp = ___pawn.GetComp<DrawFaceGraphicsComp>();
if (comp != null )
{
comp.DrawGraphics(rootLoc, angle, renderBody, bodyFacing, headFacing, bodyDrawType, portrait, headStump, ref __instance, ref ___pawn, ref ___woundOverlays, ref ___statusOverlays);
return false;
}
return true;
}
Sidst redigeret af shipsail; 14. feb. 2019 kl. 2:13
< >
Viser 1-3 af 3 kommentarer
Nals  [udvikler] 14. feb. 2019 kl. 3:24 
Thank you for your suggestion! I'll check your codes and mods with my mod for compatibility.
LimeTreeSnake 12. mar. 2019 kl. 8:50 
I'd love for such as well, it's a tad weird having babies with 2 heads. :D
Shinuxen 28. aug. 2020 kl. 0:41 
Oprindeligt skrevet af Nals:
Thank you for your suggestion! I'll check your codes and mods with my mod for compatibility.

Hello, there is a incompability with babies and children and also children school and learning. Pawns faces are changed to the old point eyes unless they reach maturity (18 years). Are you considering to make the children use Facial animation? It would be a nice touch and would not break "inmersion", thanks for you atention.
< >
Viser 1-3 af 3 kommentarer
Per side: 1530 50