mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
adjusted default distances, added shift modifier
more small polish items
This commit is contained in:
parent
ef57519e81
commit
b87047df2f
2 changed files with 7 additions and 6 deletions
|
@ -154,28 +154,28 @@ internal static class CameraLogic
|
||||||
switch (location)
|
switch (location)
|
||||||
{
|
{
|
||||||
case CameraLocation.FrontView:
|
case CameraLocation.FrontView:
|
||||||
_ourCam.transform.localPosition = new Vector3(0, 0.015f, 0.55f - _dist) * _scale;
|
_ourCam.transform.localPosition = new Vector3(0, 0.015f, 1f - _dist) * _scale;
|
||||||
_ourCam.transform.localRotation = new Quaternion(0, 180, 0, 0);
|
_ourCam.transform.localRotation = new Quaternion(0, 180, 0, 0);
|
||||||
CurrentLocation = CameraLocation.FrontView;
|
CurrentLocation = CameraLocation.FrontView;
|
||||||
break;
|
break;
|
||||||
case CameraLocation.RightSide:
|
case CameraLocation.RightSide:
|
||||||
_ourCam.transform.localPosition = new Vector3(0.3f, 0.015f, -0.55f + _dist) * _scale;
|
_ourCam.transform.localPosition = new Vector3(0.3f, 0.015f, -1.5f + _dist) * _scale;
|
||||||
_ourCam.transform.localRotation = new Quaternion(0, 0, 0, 0);
|
_ourCam.transform.localRotation = new Quaternion(0, 0, 0, 0);
|
||||||
CurrentLocation = CameraLocation.RightSide;
|
CurrentLocation = CameraLocation.RightSide;
|
||||||
break;
|
break;
|
||||||
case CameraLocation.LeftSide:
|
case CameraLocation.LeftSide:
|
||||||
_ourCam.transform.localPosition = new Vector3(-0.3f, 0.015f, -0.55f + _dist) * _scale;
|
_ourCam.transform.localPosition = new Vector3(-0.3f, 0.015f, -1.5f + _dist) * _scale;
|
||||||
_ourCam.transform.localRotation = new Quaternion(0, 0, 0, 0);
|
_ourCam.transform.localRotation = new Quaternion(0, 0, 0, 0);
|
||||||
CurrentLocation = CameraLocation.LeftSide;
|
CurrentLocation = CameraLocation.LeftSide;
|
||||||
break;
|
break;
|
||||||
case CameraLocation.Default:
|
case CameraLocation.Default:
|
||||||
default:
|
default:
|
||||||
_ourCam.transform.localPosition = new Vector3(0, 0.015f, -0.88f + _dist) * _scale;
|
_ourCam.transform.localPosition = new Vector3(0, 0.015f, -1.5f + _dist) * _scale;
|
||||||
_ourCam.transform.localRotation = new Quaternion(0, 0, 0, 0);
|
_ourCam.transform.localRotation = new Quaternion(0, 0, 0, 0);
|
||||||
CurrentLocation = CameraLocation.Default;
|
CurrentLocation = CameraLocation.Default;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ResetDist() => _dist = 0;
|
private static void ResetDist() => _dist = 0;
|
||||||
internal static void IncrementDist() { _dist += 0.25f; RelocateCam(CurrentLocation); }
|
internal static void IncrementDist() { _dist += 0.25f; RelocateCam(CurrentLocation); }
|
||||||
|
|
|
@ -44,6 +44,7 @@ public class ThirdPerson : MelonMod
|
||||||
if (!Input.GetKey(KeyCode.LeftControl)) return;
|
if (!Input.GetKey(KeyCode.LeftControl)) return;
|
||||||
if (Input.GetKeyDown(KeyCode.T)) State = !State;
|
if (Input.GetKeyDown(KeyCode.T)) State = !State;
|
||||||
if (!State || !Input.GetKeyDown(KeyCode.Y)) return;
|
if (!State || !Input.GetKeyDown(KeyCode.Y)) return;
|
||||||
RelocateCam((CameraLocation)(((int)CurrentLocation + 1) % Enum.GetValues(typeof(CameraLocation)).Length), true);
|
int cycle = Input.GetKeyDown(KeyCode.LeftShift) ? -1 : 1;
|
||||||
|
RelocateCam((CameraLocation)(((int)CurrentLocation + cycle) % Enum.GetValues(typeof(CameraLocation)).Length), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue