mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
fix nonsexual act reverse
This commit is contained in:
parent
a3bb31bf4f
commit
f9ebe8263f
4 changed files with 25 additions and 4 deletions
Binary file not shown.
|
@ -99,8 +99,6 @@ namespace Rimworld_Animations {
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (offsetX != AnimationSettings.offsets[def.defName + curPawn.def.defName + bodyTypeDef + ActorIndex].x || offsetZ != AnimationSettings.offsets[def.defName + curPawn.def.defName + bodyTypeDef + ActorIndex].y) {
|
||||
AnimationSettings.offsets[def.defName + curPawn.def.defName + bodyTypeDef + ActorIndex] = new Vector2(offsetX, offsetZ);
|
||||
|
||||
|
|
|
@ -21,6 +21,11 @@ namespace Rimworld_Animations {
|
|||
return;
|
||||
}
|
||||
|
||||
if(!AnimationSettings.PlayAnimForNonsexualActs && NonSexualAct(__instance))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Pawn pawn = __instance.pawn;
|
||||
|
||||
Building_Bed bed = __instance.Bed;
|
||||
|
@ -129,6 +134,22 @@ namespace Rimworld_Animations {
|
|||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static IEnumerable<String> NonSexActRulePackDefNames = new String[]
|
||||
{
|
||||
"MutualHandholdingRP",
|
||||
"MutualMakeoutRP",
|
||||
};
|
||||
|
||||
public static bool NonSexualAct(JobDriver_SexBaseInitiator sexBaseInitiator)
|
||||
{
|
||||
if(NonSexActRulePackDefNames.Contains(sexBaseInitiator.Sexprops.rulePack))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(JobDriver_SexBaseInitiator), "End")]
|
||||
|
|
|
@ -11,7 +11,8 @@ namespace Rimworld_Animations {
|
|||
|
||||
public class AnimationSettings : ModSettings {
|
||||
|
||||
public static bool orgasmQuiver, rapeShiver, soundOverride = true, hearts = true, controlGenitalRotation = false, applySemenOnAnimationOrgasm = false, fastAnimForQuickie = false;
|
||||
public static bool orgasmQuiver, rapeShiver, soundOverride = true, hearts = true, controlGenitalRotation = false, applySemenOnAnimationOrgasm = false, fastAnimForQuickie = false,
|
||||
PlayAnimForNonsexualActs = true;
|
||||
public static bool offsetTab = false, debugMode = false;
|
||||
public static float shiverIntensity = 2f;
|
||||
|
||||
|
@ -29,6 +30,7 @@ namespace Rimworld_Animations {
|
|||
Scribe_Values.Look(ref fastAnimForQuickie, "RJWAnimations-fastAnimForQuickie");
|
||||
Scribe_Values.Look(ref rapeShiver, "RJWAnimations-rapeShiver");
|
||||
Scribe_Values.Look(ref hearts, "RJWAnimation-sheartsOnLovin");
|
||||
Scribe_Values.Look(ref PlayAnimForNonsexualActs, "RJWAnims-PlayAnimForNonsexualActs");
|
||||
Scribe_Values.Look(ref applySemenOnAnimationOrgasm, "RJWAnimations-applySemenOnOrgasm", false);
|
||||
Scribe_Values.Look(ref soundOverride, "RJWAnimations-rjwAnimSoundOverride", true);
|
||||
Scribe_Values.Look(ref shiverIntensity, "RJWAnimations-shiverIntensity", 2f);
|
||||
|
@ -70,7 +72,7 @@ namespace Rimworld_Animations {
|
|||
listingStandard.CheckboxLabeled("Enable Orgasm Quiver", ref AnimationSettings.orgasmQuiver);
|
||||
listingStandard.CheckboxLabeled("Enable Rape Shiver", ref AnimationSettings.rapeShiver);
|
||||
listingStandard.CheckboxLabeled("Enable hearts during lovin'", ref AnimationSettings.hearts);
|
||||
|
||||
listingStandard.CheckboxLabeled("Play animation for nonsexual acts (handholding, makeout)", ref AnimationSettings.PlayAnimForNonsexualActs);
|
||||
listingStandard.CheckboxLabeled("Enable Animation Manager Tab", ref AnimationSettings.offsetTab);
|
||||
|
||||
listingStandard.Label("Shiver/Quiver Intensity (default 2): " + AnimationSettings.shiverIntensity);
|
||||
|
|
Loading…
Reference in a new issue