mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[ThirdPerson] Set camera cull mask instead of disabling
Least hacky fix to correct nameplate issue.
This commit is contained in:
parent
6f17010cae
commit
82eeced7cc
4 changed files with 10 additions and 18 deletions
|
@ -1,5 +1,4 @@
|
|||
using MelonLoader;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
using static NAK.ThirdPerson.CameraLogic;
|
||||
|
||||
|
@ -22,8 +21,8 @@ public class ThirdPerson : MelonMod
|
|||
// Prevents scrolling while in Menus or UnityExplorer
|
||||
if (State && Cursor.lockState == CursorLockMode.Locked)
|
||||
{
|
||||
if (Input.GetAxis("Mouse ScrollWheel") > 0f) IncrementDist();
|
||||
else if (Input.GetAxis("Mouse ScrollWheel") < 0f) DecrementDist();
|
||||
float scroll = Input.GetAxis("Mouse ScrollWheel");
|
||||
if (scroll != 0f) ScrollDist(Mathf.Sign(scroll));
|
||||
}
|
||||
|
||||
if (!Input.GetKey(KeyCode.LeftControl)) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue