mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
fixed sextypes for stand and carry
This commit is contained in:
parent
0d398b7656
commit
5c775b6714
3 changed files with 7 additions and 5 deletions
Binary file not shown.
|
@ -856,7 +856,7 @@
|
|||
<sounds>true</sounds>
|
||||
<sexTypes>
|
||||
<li>Anal</li>
|
||||
<li>Oral</li>
|
||||
<li>Vaginal</li>
|
||||
</sexTypes>
|
||||
<actors>
|
||||
<li>
|
||||
|
|
|
@ -122,7 +122,7 @@ namespace Rimworld_Animations {
|
|||
|
||||
base.CompTick();
|
||||
|
||||
if(Animating) {
|
||||
if(isAnimating) {
|
||||
if (pawn?.jobs?.curDriver == null || (pawn?.jobs?.curDriver != null && !(pawn?.jobs?.curDriver is rjw.JobDriver_Sex))) {
|
||||
isAnimating = false;
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ namespace Rimworld_Animations {
|
|||
}
|
||||
public void animatePawn(ref Vector3 rootLoc, ref float angle, ref Rot4 bodyFacing, ref Rot4 headFacing) {
|
||||
|
||||
if(!Animating) {
|
||||
if(!isAnimating) {
|
||||
return;
|
||||
}
|
||||
rootLoc = anchor + deltaPos;
|
||||
|
@ -149,13 +149,13 @@ namespace Rimworld_Animations {
|
|||
|
||||
public void tickAnim() {
|
||||
|
||||
if (!Animating) return;
|
||||
if (!isAnimating) return;
|
||||
|
||||
animTicks++;
|
||||
if (animTicks < anim.animationTimeTicks) {
|
||||
tickStage();
|
||||
} else {
|
||||
Animating = false;
|
||||
isAnimating = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -164,7 +164,9 @@ namespace Rimworld_Animations {
|
|||
stageTicks++;
|
||||
|
||||
if(stageTicks >= stage.playTimeTicks) {
|
||||
|
||||
curStage++;
|
||||
|
||||
stageTicks = 0;
|
||||
clipTicks = 0;
|
||||
clipPercent = 0;
|
||||
|
|
Loading…
Reference in a new issue