Compare commits

..

No commits in common. "6de9fc6be79cd39e8df8453a8c249a493959f91a" and "61439a0a1d2a800e258d0fe353956277ea762f80" have entirely different histories.

3 changed files with 7 additions and 7 deletions

View file

@ -78,7 +78,7 @@ namespace Rimworld_Animations {
Vector3 vector2 = a + ((offset2 != null) ? offset2.GetOffset(renderFlags.FlagSet(PawnRenderFlags.Portrait), pawn.story.bodyType, pawn.story.headType) : Vector3.zero); Vector3 vector2 = a + ((offset2 != null) ? offset2.GetOffset(renderFlags.FlagSet(PawnRenderFlags.Portrait), pawn.story.bodyType, pawn.story.headType) : Vector3.zero);
vector2.y = (ba.inFrontOfBody ? (0.3f + vector2.y) : (-0.3f - vector2.y)); vector2.y = (ba.inFrontOfBody ? (0.3f + vector2.y) : (-0.3f - vector2.y));
float num = ba.angle; float num = ba.angle;
if (((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead ? pawnAnimator.headFacing : pawnAnimator.bodyFacing) == Rot4.North) if (rotation == Rot4.North)
{ {
if (ba.layerInvert) if (ba.layerInvert)
{ {
@ -86,7 +86,7 @@ namespace Rimworld_Animations {
} }
num = 0f; num = 0f;
} }
if (((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead ? pawnAnimator.headFacing : pawnAnimator.bodyFacing) == Rot4.East) if (rotation == Rot4.East)
{ {
num = 0f - num; num = 0f - num;
vector2.x = 0f - vector2.x; vector2.x = 0f - vector2.x;
@ -97,7 +97,6 @@ namespace Rimworld_Animations {
Vector3 orassanv = Vector3.zero; Vector3 orassanv = Vector3.zero;
bool orassan = false; bool orassan = false;
/*
if ((pawn.def as ThingDef_AlienRace).defName == "Alien_Orassan") if ((pawn.def as ThingDef_AlienRace).defName == "Alien_Orassan")
{ {
orassan = true; orassan = true;
@ -112,7 +111,7 @@ namespace Rimworld_Animations {
{ {
orassan = true; orassan = true;
orassanv = new Vector3(0, 0, 1.23f); orassanv = new Vector3(0, 0, 0.23f);
if (pawnAnimator.headFacing == Rot4.North) if (pawnAnimator.headFacing == Rot4.North)
{ {
orassanv.z -= 0.1f; orassanv.z -= 0.1f;
@ -136,9 +135,9 @@ namespace Rimworld_Animations {
{ {
orassanv.x = 0.1f; orassanv.x = 0.1f;
} }
else //south else
{ {
orassanv.z += 0.1f; orassanv.z -= 0.1f;
orassanv.y += 1f; orassanv.y += 1f;
if (ba.bodyPart.defName.Contains("right")) if (ba.bodyPart.defName.Contains("right"))
@ -153,7 +152,8 @@ namespace Rimworld_Animations {
orassanv = orassanv.RotatedBy(pawnAnimator.headAngle); orassanv = orassanv.RotatedBy(pawnAnimator.headAngle);
} }
} }
*/
if ((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead) if ((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead)
{ {