mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-04 23:39:22 +00:00
[ThirdPerson] Fixes for r180
This commit is contained in:
parent
faf9d48fb6
commit
ee4df06d2e
3 changed files with 6 additions and 8 deletions
|
@ -1,7 +1,6 @@
|
||||||
using ABI_RC.Core.Player;
|
using ABI_RC.Core.Player;
|
||||||
using ABI_RC.Core.Savior;
|
using ABI_RC.Core.Savior;
|
||||||
using ABI_RC.Core.Util.Object_Behaviour;
|
using ABI_RC.Core.Util.Object_Behaviour;
|
||||||
using System.Collections;
|
|
||||||
using ABI_RC.Core;
|
using ABI_RC.Core;
|
||||||
using ABI.CCK.Components;
|
using ABI.CCK.Components;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
@ -42,10 +41,8 @@ internal static class CameraLogic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static IEnumerator SetupCamera()
|
internal static void SetupCamera()
|
||||||
{
|
{
|
||||||
yield return new WaitUntil(() => PlayerSetup.Instance);
|
|
||||||
|
|
||||||
_thirdPersonCam = new GameObject("ThirdPersonCameraObj", typeof(Camera)).GetComponent<Camera>();
|
_thirdPersonCam = new GameObject("ThirdPersonCameraObj", typeof(Camera)).GetComponent<Camera>();
|
||||||
|
|
||||||
_cameraFovClone = _thirdPersonCam.gameObject.AddComponent<CameraFovClone>();
|
_cameraFovClone = _thirdPersonCam.gameObject.AddComponent<CameraFovClone>();
|
||||||
|
|
|
@ -17,7 +17,7 @@ using System.Reflection;
|
||||||
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/ThirdPerson"
|
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/ThirdPerson"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
|
[assembly: MelonGame("ChilloutVR", "ChilloutVR")]
|
||||||
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
||||||
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
||||||
[assembly: MelonColor(255, 246, 25, 97)] // do not change color, originally chosen by Davi
|
[assembly: MelonColor(255, 246, 25, 97)] // do not change color, originally chosen by Davi
|
||||||
|
@ -27,6 +27,6 @@ using System.Reflection;
|
||||||
namespace NAK.ThirdPerson.Properties;
|
namespace NAK.ThirdPerson.Properties;
|
||||||
internal static class AssemblyInfoParams
|
internal static class AssemblyInfoParams
|
||||||
{
|
{
|
||||||
public const string Version = "1.1.2";
|
public const string Version = "1.1.3";
|
||||||
public const string Author = "Davi & NotAKidoS";
|
public const string Author = "Davi & NotAKidoS";
|
||||||
}
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
using MelonLoader;
|
using ABI_RC.Systems.GameEventSystem;
|
||||||
|
using MelonLoader;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using static NAK.ThirdPerson.CameraLogic;
|
using static NAK.ThirdPerson.CameraLogic;
|
||||||
|
|
||||||
|
@ -13,7 +14,7 @@ public class ThirdPerson : MelonMod
|
||||||
Logger = LoggerInstance;
|
Logger = LoggerInstance;
|
||||||
|
|
||||||
Patches.Apply(HarmonyInstance);
|
Patches.Apply(HarmonyInstance);
|
||||||
MelonCoroutines.Start(SetupCamera());
|
CVRGameEventSystem.Initialization.OnPlayerSetupStart.AddListener(SetupCamera);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnUpdate()
|
public override void OnUpdate()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue