mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
15 lines
No EOL
409 B
C#
15 lines
No EOL
409 B
C#
using ABI_RC.Core.Savior;
|
|
using ABI_RC.Systems.MovementSystem;
|
|
using HarmonyLib;
|
|
|
|
namespace NAK.JumpPatch.HarmonyPatches;
|
|
|
|
class MovementSystemPatches
|
|
{
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(typeof(MovementSystem), "Update")]
|
|
private static void Prefix_MovementSystem_Update(ref bool ____isGrounded)
|
|
{
|
|
CVRInputManager.Instance.jump = CVRInputManager.Instance.jump && ____isGrounded;
|
|
}
|
|
} |