mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
offset tweaks
This commit is contained in:
parent
2ee8975fd0
commit
414cf3dce4
4 changed files with 7 additions and 8 deletions
|
@ -96,11 +96,11 @@ namespace Rimworld_Animations {
|
|||
|
||||
isAnimating = true;
|
||||
|
||||
AlienRaceOffset offset = anim?.actors[actor]?.raceOffsets?.Find(x => x.defName == pawn.def.defName);
|
||||
AlienRaceOffset raceOffset = anim?.actors[actor]?.raceOffsets?.Find(x => x.defName == pawn.def.defName);
|
||||
|
||||
if (offset != null) {
|
||||
anchor.x += mirror ? offset.x * -1f : offset.x;
|
||||
anchor.z += offset.z;
|
||||
if (raceOffset != null) {
|
||||
anchor.x += mirror ? raceOffset.offset.x * -1f : raceOffset.offset.x;
|
||||
anchor.z += raceOffset.offset.y;
|
||||
}
|
||||
|
||||
pawn.jobs.posture = PawnPosture.Standing;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue