mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Better interrupted animation checks
This commit is contained in:
parent
0af7372a43
commit
0d398b7656
2 changed files with 3 additions and 1 deletions
Binary file not shown.
|
@ -123,10 +123,12 @@ namespace Rimworld_Animations {
|
|||
base.CompTick();
|
||||
|
||||
if(Animating) {
|
||||
tickAnim();
|
||||
if (pawn?.jobs?.curDriver == null || (pawn?.jobs?.curDriver != null && !(pawn?.jobs?.curDriver is rjw.JobDriver_Sex))) {
|
||||
isAnimating = false;
|
||||
}
|
||||
else {
|
||||
tickAnim();
|
||||
}
|
||||
}
|
||||
}
|
||||
public void animatePawn(ref Vector3 rootLoc, ref float angle, ref Rot4 bodyFacing, ref Rot4 headFacing) {
|
||||
|
|
Loading…
Reference in a new issue