mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
added 5 new anims
This commit is contained in:
parent
eb18a5ce62
commit
82d1e2f614
10 changed files with 6548 additions and 19 deletions
|
@ -108,7 +108,16 @@ namespace Rimworld_Animations {
|
|||
|
||||
else
|
||||
{
|
||||
Quaternion addonRotation = Quaternion.AngleAxis(pawnAnimator.bodyAngle, Vector3.up);
|
||||
Quaternion addonRotation;
|
||||
if (AnimationSettings.controlGenitalRotation && ba.path.ToLower().Contains("penis"))
|
||||
{
|
||||
addonRotation = Quaternion.AngleAxis(pawnAnimator.genitalAngle, Vector3.up);
|
||||
}
|
||||
else
|
||||
{
|
||||
addonRotation = Quaternion.AngleAxis(pawnAnimator.bodyAngle, Vector3.up);
|
||||
}
|
||||
|
||||
if (AnimationSettings.controlGenitalRotation && pawnAnimator.controlGenitalAngle && ba?.hediffGraphics != null && ba.hediffGraphics.Count != 0 && ba.hediffGraphics[0]?.path != null && (ba.hediffGraphics[0].path.Contains("Penis") || ba.hediffGraphics[0].path.Contains("penis")))
|
||||
{
|
||||
GenDraw.DrawMeshNowOrLater(mesh: addonGraphic.MeshAt(rot: rotation), loc: vector + (ba.alignWithHead ? headOffset : Vector3.zero) + vector2.RotatedBy(angle: Mathf.Acos(f: Quaternion.Dot(a: Quaternion.identity, b: addonRotation)) * 2f * 57.29578f),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue