Beispiel #1
0
 static void Prefix(Player __instance, ref Vector2 mouseLook)
 {
     if (__instance != Player.m_localPlayer || !VHVRConfig.UseVrControls() || !VHVRConfig.SnapTurnEnabled())
     {
         return;
     }
     if (snapTriggered && !isSmoothSnapping)
     {
         if (turnInputApplied(mouseLook.x))
         {
             mouseLook.x = 0f;
             return;
         }
         snapTriggered = false;
     }
     if (VHVRConfig.SmoothSnapTurn())
     {
         handleSmoothSnap(ref mouseLook);
     }
     else
     {
         handleImmediateSnap(ref mouseLook);
     }
 }