RimWorld

RimWorld

[NL] Facial Animation - WIP
shipsail 14 Feb, 2019 @ 2:11am
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;
}
Last edited by shipsail; 14 Feb, 2019 @ 2:13am
< >
Showing 1-3 of 3 comments
Nals  [developer] 14 Feb, 2019 @ 3:24am 
Thank you for your suggestion! I'll check your codes and mods with my mod for compatibility.
LimeTreeSnake 12 Mar, 2019 @ 8:50am 
I'd love for such as well, it's a tad weird having babies with 2 heads. :D
Shinuxen 28 Aug, 2020 @ 12:41am 
Originally posted by 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.
< >
Showing 1-3 of 3 comments
Per page: 1530 50