mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
fixed desktop and calibrate..?
This commit is contained in:
parent
db5d7d91a7
commit
500622967e
2 changed files with 39 additions and 22 deletions
|
@ -70,25 +70,21 @@ public class DesktopVRSwitch : MelonMod
|
||||||
//CVR_MovementSystem.Instance.isVr = true;
|
//CVR_MovementSystem.Instance.isVr = true;
|
||||||
//MelonLogger.Msg("Set CVR_MovementSystem isVR to false.");
|
//MelonLogger.Msg("Set CVR_MovementSystem isVR to false.");
|
||||||
|
|
||||||
yield return new WaitForSeconds(0.5f);
|
yield return new WaitForSeconds(1);
|
||||||
|
|
||||||
|
|
||||||
CVRInputManager.Instance.reload = true;
|
CVRInputManager.Instance.reload = true;
|
||||||
//CVRInputManager.Instance.inputEnabled = true;
|
CVRInputManager.Instance.inputEnabled = true;
|
||||||
//CVRInputManager.Instance.blockedByUi = false;
|
CVRInputManager.Instance.blockedByUi = false;
|
||||||
//CVRInputManager.Instance.independentHeadToggle = false;
|
CVRInputManager.Instance.independentHeadToggle = false;
|
||||||
//MelonLogger.Msg("Set CVRInputManager reload to true. Input should reload next frame...");
|
MelonLogger.Msg("Set CVRInputManager reload to true. Input should reload next frame...");
|
||||||
|
|
||||||
yield return new WaitForSeconds(1f);
|
yield return new WaitForSeconds(1);
|
||||||
|
|
||||||
CVRInputManager.Instance.reload = true;
|
|
||||||
|
|
||||||
yield return new WaitForSeconds(0.5f);
|
|
||||||
|
|
||||||
XRSettings.enabled = false;
|
XRSettings.enabled = false;
|
||||||
|
|
||||||
PlayerSetup.Instance.Invoke("CalibrateAvatar", 0f);
|
PlayerSetup.Instance.ReCalibrateAvatar();
|
||||||
MelonLogger.Msg("Invoked CalibrateAvatar() on PlayerSetup.Instance.");
|
MelonLogger.Msg("Called ReCalibrateAvatar() on PlayerSetup.Instance.");
|
||||||
//ViewManager.Instance.VrInputChanged(true);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -131,22 +127,20 @@ public class DesktopVRSwitch : MelonMod
|
||||||
//CVR_MovementSystem.Instance.isVr = true;
|
//CVR_MovementSystem.Instance.isVr = true;
|
||||||
//MelonLogger.Msg("Set CVR_MovementSystem isVR to false.");
|
//MelonLogger.Msg("Set CVR_MovementSystem isVR to false.");
|
||||||
|
|
||||||
yield return new WaitForSeconds(0.5f);
|
yield return new WaitForSeconds(1);
|
||||||
|
|
||||||
CVRInputManager.Instance.reload = true;
|
CVRInputManager.Instance.reload = true;
|
||||||
//CVRInputManager.Instance.inputEnabled = true;
|
CVRInputManager.Instance.inputEnabled = true;
|
||||||
//CVRInputManager.Instance.blockedByUi = false;
|
CVRInputManager.Instance.blockedByUi = false;
|
||||||
//CVRInputManager.Instance.independentHeadToggle = false;
|
CVRInputManager.Instance.independentHeadToggle = false;
|
||||||
//MelonLogger.Msg("Set CVRInputManager reload to true. Input should reload next frame...");
|
MelonLogger.Msg("Set CVRInputManager reload to true. Input should reload next frame...");
|
||||||
|
|
||||||
yield return new WaitForSeconds(1f);
|
yield return new WaitForSeconds(1f);
|
||||||
|
|
||||||
CVRInputManager.Instance.reload = true;
|
CVRInputManager.Instance.reload = true;
|
||||||
|
|
||||||
//PlayerSetup.Instance.Invoke("CalibrateAvatar", 0f);
|
PlayerSetup.Instance.ReCalibrateAvatar();
|
||||||
//MelonLogger.Msg("Invoked CalibrateAvatar() on PlayerSetup.Instance.");
|
MelonLogger.Msg("Called ReCalibrateAvatar() on PlayerSetup.Instance.");
|
||||||
|
|
||||||
//ViewManager.Instance.VrInputChanged(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
yield return null;
|
yield return null;
|
||||||
|
|
23
DesktopVRSwitch/format.json
Normal file
23
DesktopVRSwitch/format.json
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"_id": 95,
|
||||||
|
"name": "DesktopVRSwitch",
|
||||||
|
"modversion": "1.1.0",
|
||||||
|
"gameversion": "2022r168",
|
||||||
|
"loaderversion": "0.5.4",
|
||||||
|
"modtype": "Mod",
|
||||||
|
"author": "NotAKidoS",
|
||||||
|
"description": "Corrects MM and QM position when avatar is scaled.\nAdditional option to scale player collision.",
|
||||||
|
"searchtags": [
|
||||||
|
"menu",
|
||||||
|
"scale",
|
||||||
|
"avatarscale",
|
||||||
|
"slider"
|
||||||
|
],
|
||||||
|
"requirements": [
|
||||||
|
"None"
|
||||||
|
],
|
||||||
|
"downloadlink": "https://github.com/NotAKidOnSteam/DesktopVRSwitch/releases/download/r2/DesktopVRSwitch.dll",
|
||||||
|
"sourcelink": "https://github.com/NotAKidOnSteam/DesktopVRSwitch/",
|
||||||
|
"changelog": "Added option to scale player collision. Fixed some VR specific issues.",
|
||||||
|
"embedcolor": "804221"
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue