alien race offsets

This commit is contained in:
Platinum 2020-04-18 09:49:03 -07:00
parent 7f1e2314dd
commit 90400a798a
5 changed files with 25 additions and 0 deletions

View file

@ -96,6 +96,13 @@ namespace Rimworld_Animations {
isAnimating = true;
AlienRaceOffset offset = anim?.actors[actor]?.raceOffsets?.Find(x => x.defName == pawn.def.defName);
if (offset != null) {
anchor.x += offset.x;
anchor.z += offset.z;
}
pawn.jobs.posture = PawnPosture.Standing;
this.actor = actor;