mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
alien race offsets
This commit is contained in:
parent
7f1e2314dd
commit
90400a798a
5 changed files with 25 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue