mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
init
This commit is contained in:
parent
e81a4c0441
commit
2d0f9a128a
6 changed files with 154 additions and 0 deletions
15
JumpPatch/HarmonyPatches.cs
Normal file
15
JumpPatch/HarmonyPatches.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Systems.MovementSystem;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace NAK.Melons.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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue