mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +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
2
.Deprecated/FuckMLA/FuckMLA.csproj
Normal file
2
.Deprecated/FuckMLA/FuckMLA.csproj
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.NET.Sdk"/>
|
39
.Deprecated/FuckMLA/HarmonyPatches.cs
Normal file
39
.Deprecated/FuckMLA/HarmonyPatches.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
using ABI_RC.Core;
|
||||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Systems.InputManagement;
|
||||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace NAK.FuckMLA.HarmonyPatches;
|
||||
|
||||
internal class RootLogicPatches
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(RootLogic), nameof(RootLogic.Awake))]
|
||||
private static void Postfix_RootLogic_Awake(ref RootLogic __instance)
|
||||
{
|
||||
__instance.ToggleMouse(MetaPort.Instance.isUsingVr);
|
||||
}
|
||||
}
|
||||
|
||||
internal class CVRInputModulePatches
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(CVRInputModule), nameof(CVRInputModule.Update_Look), typeof(Vector2))]
|
||||
private static bool Prefix_CVRInputModule_Update_Look()
|
||||
{
|
||||
return Cursor.lockState == CursorLockMode.Locked;
|
||||
}
|
||||
}
|
||||
|
||||
internal class MOUSELOCKALPHAPatches
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(MOUSELOCKALPHA), nameof(MOUSELOCKALPHA.Start))]
|
||||
private static bool Prefix_MOUSELOCKALPHA_Start(ref MOUSELOCKALPHA __instance)
|
||||
{
|
||||
Object.DestroyImmediate(__instance);
|
||||
return false;
|
||||
}
|
||||
}
|
26
.Deprecated/FuckMLA/Main.cs
Normal file
26
.Deprecated/FuckMLA/Main.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using MelonLoader;
|
||||
|
||||
namespace NAK.FuckMLA;
|
||||
|
||||
public class FuckMLA : MelonMod
|
||||
{
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
ApplyPatches(typeof(HarmonyPatches.RootLogicPatches));
|
||||
ApplyPatches(typeof(HarmonyPatches.CVRInputModulePatches));
|
||||
ApplyPatches(typeof(HarmonyPatches.MOUSELOCKALPHAPatches));
|
||||
}
|
||||
|
||||
private void ApplyPatches(Type type)
|
||||
{
|
||||
try
|
||||
{
|
||||
HarmonyInstance.PatchAll(type);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LoggerInstance.Msg($"Failed while patching {type.Name}!");
|
||||
LoggerInstance.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
32
.Deprecated/FuckMLA/Properties/AssemblyInfo.cs
Normal file
32
.Deprecated/FuckMLA/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
using MelonLoader;
|
||||
using NAK.FuckMLA.Properties;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyTitle(nameof(NAK.FuckMLA))]
|
||||
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
|
||||
[assembly: AssemblyProduct(nameof(NAK.FuckMLA))]
|
||||
|
||||
[assembly: MelonInfo(
|
||||
typeof(NAK.FuckMLA.FuckMLA),
|
||||
nameof(NAK.FuckMLA),
|
||||
AssemblyInfoParams.Version,
|
||||
AssemblyInfoParams.Author,
|
||||
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/FuckMLA"
|
||||
)]
|
||||
|
||||
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
|
||||
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
||||
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
||||
[assembly: MelonColor(255, 155, 89, 182)]
|
||||
[assembly: MelonAuthorColor(255, 158, 21, 32)]
|
||||
[assembly: HarmonyDontPatchAll]
|
||||
|
||||
namespace NAK.FuckMLA.Properties;
|
||||
internal static class AssemblyInfoParams
|
||||
{
|
||||
public const string Version = "1.0.0";
|
||||
public const string Author = "NotAKidoS";
|
||||
}
|
22
.Deprecated/FuckMLA/format.json
Normal file
22
.Deprecated/FuckMLA/format.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"_id": -1,
|
||||
"name": "FuckMLA",
|
||||
"modversion": "1.0.0",
|
||||
"gameversion": "2023r172",
|
||||
"loaderversion": "0.6.1",
|
||||
"modtype": "Mod",
|
||||
"author": "NotAKidoS",
|
||||
"description": "A simple mod that does three basic things:\n\n- Destroys MOUSELOCKALPHA, the script that locks your mouse on startup.\n- Forces mouse to be initially unlocked when launching the game in VR.\n- Fixes mouse rotating player when cursor is unlocked.",
|
||||
"searchtags": [
|
||||
"mouse",
|
||||
"lock",
|
||||
"no",
|
||||
"bad"
|
||||
],
|
||||
"requirements": [
|
||||
],
|
||||
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r21/FuckMLA.dll",
|
||||
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/FuckMLA/",
|
||||
"changelog": "- Initial CVRMG release",
|
||||
"embedcolor": "#ffc800"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue