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>
|
<sounds>true</sounds>
|
||||||
<sexTypes>
|
<sexTypes>
|
||||||
<li>Anal</li>
|
<li>Anal</li>
|
||||||
<li>Oral</li>
|
<li>Vaginal</li>
|
||||||
</sexTypes>
|
</sexTypes>
|
||||||
<actors>
|
<actors>
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -122,7 +122,7 @@ namespace Rimworld_Animations {
|
||||||
|
|
||||||
base.CompTick();
|
base.CompTick();
|
||||||
|
|
||||||
if(Animating) {
|
if(isAnimating) {
|
||||||
if (pawn?.jobs?.curDriver == null || (pawn?.jobs?.curDriver != null && !(pawn?.jobs?.curDriver is rjw.JobDriver_Sex))) {
|
if (pawn?.jobs?.curDriver == null || (pawn?.jobs?.curDriver != null && !(pawn?.jobs?.curDriver is rjw.JobDriver_Sex))) {
|
||||||
isAnimating = false;
|
isAnimating = false;
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,7 @@ namespace Rimworld_Animations {
|
||||||
}
|
}
|
||||||
public void animatePawn(ref Vector3 rootLoc, ref float angle, ref Rot4 bodyFacing, ref Rot4 headFacing) {
|
public void animatePawn(ref Vector3 rootLoc, ref float angle, ref Rot4 bodyFacing, ref Rot4 headFacing) {
|
||||||
|
|
||||||
if(!Animating) {
|
if(!isAnimating) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
rootLoc = anchor + deltaPos;
|
rootLoc = anchor + deltaPos;
|
||||||
|
@ -149,13 +149,13 @@ namespace Rimworld_Animations {
|
||||||
|
|
||||||
public void tickAnim() {
|
public void tickAnim() {
|
||||||
|
|
||||||
if (!Animating) return;
|
if (!isAnimating) return;
|
||||||
|
|
||||||
animTicks++;
|
animTicks++;
|
||||||
if (animTicks < anim.animationTimeTicks) {
|
if (animTicks < anim.animationTimeTicks) {
|
||||||
tickStage();
|
tickStage();
|
||||||
} else {
|
} else {
|
||||||
Animating = false;
|
isAnimating = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,9 @@ namespace Rimworld_Animations {
|
||||||
stageTicks++;
|
stageTicks++;
|
||||||
|
|
||||||
if(stageTicks >= stage.playTimeTicks) {
|
if(stageTicks >= stage.playTimeTicks) {
|
||||||
|
|
||||||
curStage++;
|
curStage++;
|
||||||
|
|
||||||
stageTicks = 0;
|
stageTicks = 0;
|
||||||
clipTicks = 0;
|
clipTicks = 0;
|
||||||
clipPercent = 0;
|
clipPercent = 0;
|
||||||
|
|
Loading…
Reference in a new issue