thirdperson, propundobutton, mirror clone test, you are a clone test, bettershadowclone test, nevermind, anotherlocaltestmod, and some changes to avatarscaling ???

This commit is contained in:
NotAKidoS 2024-04-10 17:25:21 -05:00
parent df45fb50d9
commit 9944ad7611
43 changed files with 1076 additions and 173 deletions

53
Nevermind/Main.cs Normal file
View file

@ -0,0 +1,53 @@
using ABI_RC.Core.InteractionSystem;
using ABI_RC.Core.IO;
using MelonLoader;
using UnityEngine;
namespace NAK.Nevermind;
public class Nevermind : MelonMod
{
#region Mod Settings
private static readonly MelonPreferences_Category Category =
MelonPreferences.CreateCategory(nameof(Nevermind));
private static readonly MelonPreferences_Entry<KeyCode> Setting_NevermindKey =
Category.CreateEntry("Keybind", KeyCode.Home, description: "Key to cancel world join.");
#endregion
#region Melon Events
public override void OnUpdate()
{
if (!Input.GetKeyDown(Setting_NevermindKey.Value))
return;
if (CVRObjectLoader.Instance == null
|| CVRDownloadManager.Instance == null)
return; // game is not ready
if (!CVRObjectLoader.Instance.IsLoadingWorldToJoin())
return; // no world to cancel
if (CVRObjectLoader.Instance.WorldBundleRequest != null)
return; // too late to cancel, world is being loaded
// Cancel world join if still downloading
CVRDownloadManager.Instance.ActiveWorldDownload = false;
foreach (var download in CVRDownloadManager.Instance._downloadTasks)
download.Value.JoinOnComplete = false;
// Cancel world join if still loading
CVRObjectLoader.Instance.ActiveWorldDownload = null;
CVRObjectLoader.Instance._isLoadingWorldToJoin = false;
CVRObjectLoader.Instance.worldLoadingState = CVRObjectLoader.WorldLoadingState.None;
// Notify user of successful cancellation
LoggerInstance.Msg("World Join Cancelled!");
ViewManager.Instance.NotifyUser("(Local) Client", "World Join Cancelled", 2f);
}
#endregion
}

View file

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk"/>

View file

@ -0,0 +1,30 @@
using NAK.Nevermind.Properties;
using MelonLoader;
using System.Reflection;
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyTitle(nameof(NAK.Nevermind))]
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
[assembly: AssemblyProduct(nameof(NAK.Nevermind))]
[assembly: MelonInfo(
typeof(NAK.Nevermind.Nevermind),
nameof(NAK.Nevermind),
AssemblyInfoParams.Version,
AssemblyInfoParams.Author,
downloadLink: "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/Nevermind"
)]
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
[assembly: HarmonyDontPatchAll]
namespace NAK.Nevermind.Properties;
internal static class AssemblyInfoParams
{
public const string Version = "1.0.0";
public const string Author = "NotAKidoS";
}

23
Nevermind/format.json Normal file
View file

@ -0,0 +1,23 @@
{
"_id": -1,
"name": "Nevermind",
"modversion": "1.0.0",
"gameversion": "2024r174",
"loaderversion": "0.6.1",
"modtype": "Mod",
"author": "NotAKidoS",
"description": "Simple mod that allows you to cancel joining a world in Desktop.",
"searchtags": [
"never",
"mind",
"download",
"cancel"
],
"requirements": [
"None"
],
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r25/Nevermind.dll",
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/Nevermind/",
"changelog": "- Initial Release",
"embedcolor": "#b589ec"
}