边缘世界 RimWorld

边缘世界 RimWorld

Facial Stuff 1.1
Mox 2020 年 7 月 7 日 下午 12:15
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.
< >
正在显示第 1 - 3 条,共 3 条留言
Mox 2020 年 7 月 7 日 下午 12:50 
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 2020 年 7 月 7 日 下午 1:18 
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 2020 年 7 月 7 日 下午 2:15 
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
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50