i have no fucking clue

This commit is contained in:
NotAKidoS 2023-05-24 05:44:32 -05:00
parent 730ff58adc
commit f783fe612d
21 changed files with 496 additions and 49 deletions

View file

@ -4,6 +4,7 @@ namespace NAK.SmoothRay;
// ChilloutVR adaptation of:
// https://github.com/kinsi55/BeatSaber_SmoothedController
// https://github.com/kinsi55/BeatSaber_SmoothedController/blob/master/LICENSE
public class SmoothRay : MelonMod
{
@ -35,7 +36,7 @@ public class SmoothRay : MelonMod
ApplyPatches(typeof(HarmonyPatches.PlayerSetupPatches));
}
private void ApplyPatches(Type type)
void ApplyPatches(Type type)
{
try
{

View file

@ -1,11 +1,6 @@
# SmoothRay (Depricated)
lazy af fix for a small issue
# SmoothRay
Your Left/Right hand controllers will now track faster and while in the Steam overlay.
This approach to fixing the issue is made lazy to support DesktopVRSwitch.
(also because im lazy)
Smoothes your controller while using the Quick and Main menus to make it easier to navigate.
---

View file

@ -1,4 +1,28 @@
using ABI_RC.Core.InteractionSystem;
/**
MIT License
Copyright (c) 2021 Kinsi, NotAKidOnSteam
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
**/
using ABI_RC.Core.InteractionSystem;
using UnityEngine;
using UnityEngine.Events;
using Valve.VR;
@ -7,7 +31,7 @@ namespace NAK.SmoothRay;
public class SmoothRayer : MonoBehaviour
{
internal ControllerRay ray;
public ControllerRay ray;
//settings
bool isEnabled;
@ -58,16 +82,14 @@ public class SmoothRayer : MonoBehaviour
if (pose != null)
pose.onTransformUpdatedEvent += OnTransformUpdated;
if (tracked != null && newPosesAction != null)
{
newPosesAction.enabled = true;
}
}
void OnDisable()
{
smoothedPosition = transform.localPosition;
smoothedRotation = transform.localRotation;
// desktopvrswitch support, normal use wont run this
if (pose != null)
pose.onTransformUpdatedEvent -= OnTransformUpdated;

View file

@ -6,10 +6,10 @@
"loaderversion": "0.5.7",
"modtype": "Mod",
"author": "NotAKidoS",
"description": "Allows your controllers to track while the SteamVR overlay is open. This also fixes Quest/Touch controllers feeling slow during fast movements.",
"description": "Smoothes your controller while using the Quick and Main menus to make it easier to navigate.",
"searchtags": [
"vr",
"quest",
"ray",
"controller",
"tracking"
],
@ -19,5 +19,5 @@
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r3/SmoothRay.dll",
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/SmoothRay/",
"changelog": "Initial Release",
"embedcolor": "3498db"
"embedcolor": "dc8105"
}