genital rotation, requires special ver. of RimNudeWorld. Enable in options

This commit is contained in:
Platinum 2020-04-28 20:42:53 -07:00
parent 89d93091b0
commit 1707afaa4d
9 changed files with 69 additions and 25 deletions

View file

@ -14,6 +14,7 @@ namespace Rimworld_Animations {
public Dictionary<int, string> SoundEffects = new Dictionary<int, string>();
public Dictionary<int, bool> quiver = new Dictionary<int, bool>();
public SimpleCurve GenitalAngle = new SimpleCurve();
public SimpleCurve BodyAngle = new SimpleCurve();
public SimpleCurve HeadAngle = new SimpleCurve();
public SimpleCurve HeadBob = new SimpleCurve();
@ -60,9 +61,14 @@ namespace Rimworld_Animations {
if (frame.headBob.HasValue)
HeadBob.Add((float)frame.atTick / (float)duration, frame.headBob.Value, true);
if (frame.genitalAngle.HasValue)
GenitalAngle.Add((float)frame.atTick / (float)duration, frame.genitalAngle.Value, true);
if (frame.soundEffect != null) {
SoundEffects.Add((int)frame.atTick, frame.soundEffect);
}
}
else {
if (frame.bodyAngle.HasValue)
@ -86,6 +92,9 @@ namespace Rimworld_Animations {
if (frame.headBob.HasValue)
HeadBob.Add((float)keyframePosition / (float)duration, frame.headBob.Value, true);
if (frame.genitalAngle.HasValue)
GenitalAngle.Add((float)keyframePosition / (float)duration, frame.genitalAngle.Value, true);
if (frame.soundEffect != null) {
SoundEffects.Add(keyframePosition, frame.soundEffect);
}

View file

@ -11,6 +11,8 @@ namespace Rimworld_Animations {
public float? bodyAngle;
public float? headAngle;
public float? genitalAngle;
public float? bodyOffsetZ;
public float? bodyOffsetX;