mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
20 lines
609 B
C#
20 lines
609 B
C#
using ABI_RC.Systems.InputManagement;
|
|
using HarmonyLib;
|
|
using NAK.PhysicsGunMod.Components;
|
|
using UnityEngine;
|
|
|
|
namespace NAK.PhysicsGunMod.HarmonyPatches;
|
|
|
|
internal static class CVRInputManagerPatches
|
|
{
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(typeof(CVRInputManager), nameof(CVRInputManager.Update))]
|
|
private static void Postfix_CVRInputManager_Update(ref CVRInputManager __instance)
|
|
{
|
|
if (PhysicsGunInteractionBehavior.Instance == null)
|
|
return;
|
|
|
|
if (PhysicsGunInteractionBehavior.Instance.UserRotation)
|
|
__instance.lookVector = Vector2.zero;
|
|
}
|
|
}
|