RimWorld

RimWorld

Facial Stuff 1.1
Mox 7 Jul, 2020 @ 12:15pm
Arms for prosthetics?
Atm if you replace a pawn's arms with prosthetics of any kinds, the hand don't get rendered by Facial Stuff. Apparently that's because prosthetic specifically don't have a hand component for Facial Stuff to render, but surely that could be accounted for, and rendered anyway.

if arm is biological then if hand exists render ethnic hand
else if prosthetic arm then render prosthetic arm
prosthetic arm could be grey for prosthetic and bionic, and ethnic for archotech.
< >
Showing 1-3 of 3 comments
Mox 7 Jul, 2020 @ 12:50pm 
Looking at the code PawnBodyGraphic has code for handling artificial hands, but and then HumanBipedDrawer checks whether they exist. Of course, as mentioned in OP, the problem is that under prosthetics, arms don't posses hands.
Mox 7 Jul, 2020 @ 1:18pm 
Potential solution might be in PawnExtensions? Namely on line 198, and 199:
BodyPartRecord leftArm = body.Find(x => x.customLabel == "left hand");
BodyPartRecord rightArm = body.Find(x => x.customLabel == "right hand");

Shouldn't the strings be replaced with ones for arms such that
BodyPartRecord leftArm = body.Find(x => x.customLabel == "left arm");
BodyPartRecord rightArm = body.Find(x => x.customLabel == "right arm");
?
Mox 7 Jul, 2020 @ 2:15pm 
I've fixed that, and recompiled, and now it works fine for me, so it seems like that was the issue! Sent you a pull request :)

https://github.com/Killface1980/RW_FacialStuff/pull/82
< >
Showing 1-3 of 3 comments
Per page: 1530 50