mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
genital rotation, requires special ver. of RimNudeWorld. Enable in options
This commit is contained in:
parent
89d93091b0
commit
1707afaa4d
9 changed files with 69 additions and 25 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -11,6 +11,8 @@ namespace Rimworld_Animations {
|
|||
public float? bodyAngle;
|
||||
public float? headAngle;
|
||||
|
||||
public float? genitalAngle;
|
||||
|
||||
public float? bodyOffsetZ;
|
||||
public float? bodyOffsetX;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue