mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[HeadBobbingFix] Rename from DesktopCameraFix
confusing name for some
This commit is contained in:
parent
164de9ea68
commit
13927f1d67
8 changed files with 46 additions and 46 deletions
|
@ -1,23 +0,0 @@
|
||||||
{
|
|
||||||
"_id": -1,
|
|
||||||
"name": "DesktopCameraFix",
|
|
||||||
"modversion": "1.0.0",
|
|
||||||
"gameversion": "2022r170",
|
|
||||||
"loaderversion": "0.5.7",
|
|
||||||
"modtype": "Mod",
|
|
||||||
"author": "NotAKidoS",
|
|
||||||
"description": "Fixes Desktop camera pivoting in place. Please view the README for more info: [README](https://github.com/NotAKidOnSteam/NAK_CVR_Mods/blob/main/DesktopCameraFix/README.md)",
|
|
||||||
"searchtags": [
|
|
||||||
"desktop",
|
|
||||||
"camera",
|
|
||||||
"pivot",
|
|
||||||
"fix"
|
|
||||||
],
|
|
||||||
"requirements": [
|
|
||||||
"None"
|
|
||||||
],
|
|
||||||
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r10/DesktopCameraFix.dll",
|
|
||||||
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/DesktopCameraFix/",
|
|
||||||
"changelog": "- Initial Release",
|
|
||||||
"embedcolor": "#9b59b6"
|
|
||||||
}
|
|
|
@ -3,7 +3,7 @@ using ABI_RC.Systems.MovementSystem;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace NAK.DesktopCameraFix.HarmonyPatches;
|
namespace NAK.HeadBobbingFix.HarmonyPatches;
|
||||||
|
|
||||||
class PlayerSetupPatches
|
class PlayerSetupPatches
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ class PlayerSetupPatches
|
||||||
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.HandleDesktopCameraPosition))]
|
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.HandleDesktopCameraPosition))]
|
||||||
public static void Postfix_PlayerSetup_HandleDesktopCameraPosition(bool ignore, ref PlayerSetup __instance, ref MovementSystem ____movementSystem, ref int ___headBobbingLevel)
|
public static void Postfix_PlayerSetup_HandleDesktopCameraPosition(bool ignore, ref PlayerSetup __instance, ref MovementSystem ____movementSystem, ref int ___headBobbingLevel)
|
||||||
{
|
{
|
||||||
if (!DesktopCameraFix.EntryEnabled.Value)
|
if (!HeadBobbingFix.EntryEnabled.Value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// this would be much simplier if I bothered with transpilers
|
// this would be much simplier if I bothered with transpilers
|
|
@ -1,15 +1,15 @@
|
||||||
using ABI_RC.Core.Player;
|
using ABI_RC.Core.Player;
|
||||||
using MelonLoader;
|
using MelonLoader;
|
||||||
|
|
||||||
namespace NAK.DesktopCameraFix;
|
namespace NAK.HeadBobbingFix;
|
||||||
|
|
||||||
public class DesktopCameraFix : MelonMod
|
public class HeadBobbingFix : MelonMod
|
||||||
{
|
{
|
||||||
public static readonly MelonPreferences_Category Category =
|
public static readonly MelonPreferences_Category Category =
|
||||||
MelonPreferences.CreateCategory(nameof(DesktopCameraFix));
|
MelonPreferences.CreateCategory(nameof(HeadBobbingFix));
|
||||||
|
|
||||||
public static readonly MelonPreferences_Entry<bool> EntryEnabled =
|
public static readonly MelonPreferences_Entry<bool> EntryEnabled =
|
||||||
Category.CreateEntry("Enabled", true, description: "Toggle DesktopCameraFix entirely.");
|
Category.CreateEntry("Enabled", true, description: "Toggle HeadBobbingFix entirely. You need full headbobbing enabled for the mod to take effect.");
|
||||||
|
|
||||||
public override void OnInitializeMelon()
|
public override void OnInitializeMelon()
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@ public class DesktopCameraFix : MelonMod
|
||||||
|
|
||||||
void OnEntryEnabledChanged(bool newValue, bool oldValue)
|
void OnEntryEnabledChanged(bool newValue, bool oldValue)
|
||||||
{
|
{
|
||||||
if (newValue) PlayerSetup.Instance.SetViewPointOffset();
|
if (newValue) PlayerSetup.Instance?.SetViewPointOffset();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ApplyPatches(Type type)
|
void ApplyPatches(Type type)
|
|
@ -1,20 +1,20 @@
|
||||||
using DesktopCameraFix.Properties;
|
using MelonLoader;
|
||||||
using MelonLoader;
|
using NAK.HeadBobbingFix.Properties;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
|
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
|
||||||
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
|
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
|
||||||
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
|
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
|
||||||
[assembly: AssemblyTitle(nameof(NAK.DesktopCameraFix))]
|
[assembly: AssemblyTitle(nameof(NAK.HeadBobbingFix))]
|
||||||
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
|
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
|
||||||
[assembly: AssemblyProduct(nameof(NAK.DesktopCameraFix))]
|
[assembly: AssemblyProduct(nameof(NAK.HeadBobbingFix))]
|
||||||
|
|
||||||
[assembly: MelonInfo(
|
[assembly: MelonInfo(
|
||||||
typeof(NAK.DesktopCameraFix.DesktopCameraFix),
|
typeof(NAK.HeadBobbingFix.HeadBobbingFix),
|
||||||
nameof(NAK.DesktopCameraFix),
|
nameof(NAK.HeadBobbingFix),
|
||||||
AssemblyInfoParams.Version,
|
AssemblyInfoParams.Version,
|
||||||
AssemblyInfoParams.Author,
|
AssemblyInfoParams.Author,
|
||||||
downloadLink: "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/DesktopCameraFix"
|
downloadLink: "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/HeadBobbingFix"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
|
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
|
||||||
|
@ -22,9 +22,9 @@ using System.Reflection;
|
||||||
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
||||||
[assembly: HarmonyDontPatchAll]
|
[assembly: HarmonyDontPatchAll]
|
||||||
|
|
||||||
namespace DesktopCameraFix.Properties;
|
namespace NAK.HeadBobbingFix.Properties;
|
||||||
internal static class AssemblyInfoParams
|
internal static class AssemblyInfoParams
|
||||||
{
|
{
|
||||||
public const string Version = "1.0.0";
|
public const string Version = "1.0.1";
|
||||||
public const string Author = "NotAKidoS";
|
public const string Author = "NotAKidoS";
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
## DesktopCameraFix
|
## HeadBobbingFix
|
||||||
Makes the Desktop camera pivot correctly with the viewpoint.
|
Makes the Desktop camera pivot correctly with the viewpoint when full head bobbing is enabled.
|
||||||
|
|
||||||
https://github.com/NotAKidOnSteam/NAK_CVR_Mods/assets/37721153/d2b0f918-b4a9-408a-b25f-4c68761ad1c7
|
https://github.com/NotAKidOnSteam/NAK_CVR_Mods/assets/37721153/d2b0f918-b4a9-408a-b25f-4c68761ad1c7
|
||||||
|
|
23
HeadBobbingFix/format.json
Normal file
23
HeadBobbingFix/format.json
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"_id": 165,
|
||||||
|
"name": "HeadBobbingFix",
|
||||||
|
"modversion": "1.0.1",
|
||||||
|
"gameversion": "2022r170",
|
||||||
|
"loaderversion": "0.5.7",
|
||||||
|
"modtype": "Mod",
|
||||||
|
"author": "NotAKidoS",
|
||||||
|
"description": "Fixes Desktop camera pivoting in place when full head bobbing is enabled. Please view the README for more info: [README](https://github.com/NotAKidOnSteam/NAK_CVR_Mods/blob/main/HeadBobbingFix/README.md)",
|
||||||
|
"searchtags": [
|
||||||
|
"desktop",
|
||||||
|
"camera",
|
||||||
|
"pivot",
|
||||||
|
"fix"
|
||||||
|
],
|
||||||
|
"requirements": [
|
||||||
|
"None"
|
||||||
|
],
|
||||||
|
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r11/HeadBobbingFix.dll",
|
||||||
|
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/HeadBobbingFix/",
|
||||||
|
"changelog": "- Initial Release\n- Rename to HeadBobbingFix to prevent confusion",
|
||||||
|
"embedcolor": "#e33b24"
|
||||||
|
}
|
|
@ -59,7 +59,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmoothRay", "SmoothRay\Smoo
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TrackedPointFix", "TrackedPointFix\TrackedPointFix.csproj", "{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TrackedPointFix", "TrackedPointFix\TrackedPointFix.csproj", "{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DesktopCameraFix", "DesktopCameraFix\DesktopCameraFix.csproj", "{E17F78BF-90FB-44F7-A919-EDDF0BC1AF01}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HeadBobbingFix", "HeadBobbingFix\HeadBobbingFix.csproj", "{EFE40A43-3FA4-4B61-8A7E-78789792F127}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
@ -179,10 +179,10 @@ Global
|
||||||
{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}.Release|Any CPU.Build.0 = Release|Any CPU
|
{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{E17F78BF-90FB-44F7-A919-EDDF0BC1AF01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{EFE40A43-3FA4-4B61-8A7E-78789792F127}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{E17F78BF-90FB-44F7-A919-EDDF0BC1AF01}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{EFE40A43-3FA4-4B61-8A7E-78789792F127}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{E17F78BF-90FB-44F7-A919-EDDF0BC1AF01}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{EFE40A43-3FA4-4B61-8A7E-78789792F127}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{E17F78BF-90FB-44F7-A919-EDDF0BC1AF01}.Release|Any CPU.Build.0 = Release|Any CPU
|
{EFE40A43-3FA4-4B61-8A7E-78789792F127}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue