mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 06:49:22 +00:00
depricated bunch of mods i will never touch or are native now
This commit is contained in:
parent
1ed32799a8
commit
7f4237bf95
29 changed files with 0 additions and 0 deletions
34
.DepricatedMods/IKAdjustments/HarmonyPatches.cs
Normal file
34
.DepricatedMods/IKAdjustments/HarmonyPatches.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using ABI_RC.Core.InteractionSystem;
|
||||
using ABI_RC.Systems.IK;
|
||||
using ABI_RC.Systems.IK.SubSystems;
|
||||
using HarmonyLib;
|
||||
using NAK.IKAdjustments.Systems;
|
||||
|
||||
namespace NAK.IKAdjustments.HarmonyPatches;
|
||||
|
||||
internal static class IKSystemPatches
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(IKSystem), nameof(IKSystem.Start))]
|
||||
private static void Postfix_IKSystem_Start(ref IKSystem __instance)
|
||||
{
|
||||
__instance.gameObject.AddComponent<IKAdjuster>();
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(BodySystem), nameof(BodySystem.ResetCalibration))]
|
||||
private static void Postfix_IKSystem_ResetIkSettings()
|
||||
{
|
||||
IKAdjuster.Instance.ResetAllOffsets();
|
||||
}
|
||||
}
|
||||
|
||||
internal static class CVR_MenuManagerPatches
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(CVR_MenuManager), nameof(CVR_MenuManager.ToggleQuickMenu), typeof(bool))]
|
||||
private static void Postfix_CVR_MenuManager_ToggleQuickMenu(bool show)
|
||||
{
|
||||
if (show) IKAdjuster.Instance.ExitAdjustMode();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue