Compare commits

...

4 Commits

Author SHA1 Message Date
c0ffee 6de9fc6be7 orassan patch may break other races 2022-10-28 14:54:33 -07:00
c0ffee 2a4db3cc75 tweaks again for orassan 2022-10-28 14:37:11 -07:00
c0ffee ccb0a11d24 slight tweaks for orassan 2022-10-28 14:00:47 -07:00
c0ffee 88cf51e0cb fixing orassan offsets 2022-10-28 13:18:49 -07:00
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);
vector2.y = (ba.inFrontOfBody ? (0.3f + vector2.y) : (-0.3f - vector2.y));
float num = ba.angle;
if (rotation == Rot4.North)
if (((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead ? pawnAnimator.headFacing : pawnAnimator.bodyFacing) == Rot4.North)
{
if (ba.layerInvert)
{
@ -86,7 +86,7 @@ namespace Rimworld_Animations {
}
num = 0f;
}
if (rotation == Rot4.East)
if (((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead ? pawnAnimator.headFacing : pawnAnimator.bodyFacing) == Rot4.East)
{
num = 0f - num;
vector2.x = 0f - vector2.x;
@ -97,6 +97,7 @@ namespace Rimworld_Animations {
Vector3 orassanv = Vector3.zero;
bool orassan = false;
/*
if ((pawn.def as ThingDef_AlienRace).defName == "Alien_Orassan")
{
orassan = true;
@ -111,7 +112,7 @@ namespace Rimworld_Animations {
{
orassan = true;
orassanv = new Vector3(0, 0, 0.23f);
orassanv = new Vector3(0, 0, 1.23f);
if (pawnAnimator.headFacing == Rot4.North)
{
orassanv.z -= 0.1f;
@ -135,9 +136,9 @@ namespace Rimworld_Animations {
{
orassanv.x = 0.1f;
}
else
else //south
{
orassanv.z -= 0.1f;
orassanv.z += 0.1f;
orassanv.y += 1f;
if (ba.bodyPart.defName.Contains("right"))
@ -152,8 +153,7 @@ namespace Rimworld_Animations {
orassanv = orassanv.RotatedBy(pawnAnimator.headAngle);
}
}
*/
if ((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead)
{