mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
Move many mods to Deprecated folder, fix spelling
This commit is contained in:
parent
5e822cec8d
commit
0042590aa6
539 changed files with 7475 additions and 3120 deletions
23
.Deprecated/JumpPatch/HarmonyPatches.cs
Normal file
23
.Deprecated/JumpPatch/HarmonyPatches.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Systems.MovementSystem;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace NAK.JumpPatch.HarmonyPatches;
|
||||
|
||||
class MovementSystemPatches
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(MovementSystem), nameof(MovementSystem.Update))]
|
||||
private static void Prefix_MovementSystem_Update(ref bool ____isGrounded, ref bool __state)
|
||||
{
|
||||
__state = CVRInputManager.Instance.jump;
|
||||
CVRInputManager.Instance.jump = CVRInputManager.Instance.jump && ____isGrounded;
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(MovementSystem), nameof(MovementSystem.Update))]
|
||||
private static void Postfix_MovementSystem_Update(ref bool __state)
|
||||
{
|
||||
CVRInputManager.Instance.jump = __state;
|
||||
}
|
||||
}
|
2
.Deprecated/JumpPatch/JumpPatch.csproj
Normal file
2
.Deprecated/JumpPatch/JumpPatch.csproj
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.NET.Sdk"/>
|
24
.Deprecated/JumpPatch/Main.cs
Normal file
24
.Deprecated/JumpPatch/Main.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using MelonLoader;
|
||||
|
||||
namespace NAK.JumpPatch;
|
||||
|
||||
public class JumpPatch : MelonMod
|
||||
{
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
ApplyPatches(typeof(HarmonyPatches.MovementSystemPatches));
|
||||
}
|
||||
|
||||
private void ApplyPatches(Type type)
|
||||
{
|
||||
try
|
||||
{
|
||||
HarmonyInstance.PatchAll(type);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LoggerInstance.Msg($"Failed while patching {type.Name}!");
|
||||
LoggerInstance.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
30
.Deprecated/JumpPatch/Properties/AssemblyInfo.cs
Normal file
30
.Deprecated/JumpPatch/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
using MelonLoader;
|
||||
using NAK.JumpPatch.Properties;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyTitle(nameof(NAK.JumpPatch))]
|
||||
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
|
||||
[assembly: AssemblyProduct(nameof(NAK.JumpPatch))]
|
||||
|
||||
[assembly: MelonInfo(
|
||||
typeof(NAK.JumpPatch.JumpPatch),
|
||||
nameof(NAK.JumpPatch),
|
||||
AssemblyInfoParams.Version,
|
||||
AssemblyInfoParams.Author,
|
||||
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/JumpPatch"
|
||||
)]
|
||||
|
||||
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
|
||||
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
||||
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
||||
[assembly: HarmonyDontPatchAll]
|
||||
|
||||
namespace NAK.JumpPatch.Properties;
|
||||
internal static class AssemblyInfoParams
|
||||
{
|
||||
public const string Version = "1.0.1";
|
||||
public const string Author = "NotAKidoS";
|
||||
}
|
23
.Deprecated/JumpPatch/format.json
Normal file
23
.Deprecated/JumpPatch/format.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"_id": 151,
|
||||
"name": "JumpPatch",
|
||||
"modversion": "1.0.1",
|
||||
"gameversion": "2022r170p1",
|
||||
"loaderversion": "0.6.1",
|
||||
"modtype": "Mod",
|
||||
"author": "NotAKidoS",
|
||||
"description": "Prevents you from jumping until you've been grounded for a frame.\nThis ensures Grounded parameter fires when hitting the ground while holding jump.",
|
||||
"searchtags": [
|
||||
"jump",
|
||||
"animation",
|
||||
"grounded",
|
||||
"simple"
|
||||
],
|
||||
"requirements": [
|
||||
"None"
|
||||
],
|
||||
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r4/JumpPatch.dll",
|
||||
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/JumpPatch/",
|
||||
"changelog": "- Return jump input after MovementSystem.Update. Fixes conflict with PRM jump-to-recover option.",
|
||||
"embedcolor": "#e56597"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue