mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2026-02-26 06:46:10 +00:00
mass commit of laziness
This commit is contained in:
parent
ce992c70ee
commit
6d4fc549d9
167 changed files with 5471 additions and 675 deletions
6
.Deprecated/FuckCohtml2/FuckCohtml2.csproj
Normal file
6
.Deprecated/FuckCohtml2/FuckCohtml2.csproj
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<RootNamespace>YouAreMineNow</RootNamespace>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
57
.Deprecated/FuckCohtml2/Main.cs
Normal file
57
.Deprecated/FuckCohtml2/Main.cs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
using System.Reflection;
|
||||
using ABI_RC.Core.UI;
|
||||
using HarmonyLib;
|
||||
using MelonLoader;
|
||||
|
||||
namespace NAK.FuckCohtml2;
|
||||
|
||||
public class FuckCohtml2Mod : MelonMod
|
||||
{
|
||||
private static readonly MelonPreferences_Category Category =
|
||||
MelonPreferences.CreateCategory(nameof(FuckCohtml2));
|
||||
|
||||
private static readonly MelonPreferences_Entry<bool> EntryFixShouldAdvance =
|
||||
Category.CreateEntry(
|
||||
identifier: "fix_should_advance",
|
||||
true,
|
||||
display_name: "Fix ShouldAdvance",
|
||||
description: "Fix CohtmlControlledView.ShouldAdvance to respect the Enabled property.");
|
||||
|
||||
private static readonly MelonPreferences_Entry<bool> EntryFixShouldRender =
|
||||
Category.CreateEntry(
|
||||
identifier: "fix_should_render",
|
||||
true,
|
||||
display_name: "Fix ShouldRender",
|
||||
description: "Fix CohtmlControlledView.ShouldRender to respect the Enabled property.");
|
||||
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
PatchProperty(nameof(CohtmlControlledView.ShouldAdvance), nameof(OnShouldAdvance));
|
||||
PatchProperty(nameof(CohtmlControlledView.ShouldRender), nameof(OnShouldRender));
|
||||
}
|
||||
|
||||
private void PatchProperty(string propertyName, string handlerName)
|
||||
{
|
||||
PropertyInfo prop = typeof(CohtmlControlledView).GetProperty(propertyName,
|
||||
BindingFlags.Public | BindingFlags.Instance);
|
||||
MethodInfo getter = prop!.GetGetMethod(true);
|
||||
|
||||
MethodInfo postfixMethod = typeof(FuckCohtml2Mod).GetMethod(handlerName,
|
||||
BindingFlags.NonPublic | BindingFlags.Static, null,
|
||||
[typeof(object), typeof(bool).MakeByRefType()], null);
|
||||
|
||||
HarmonyInstance.Patch(getter, postfix: new HarmonyMethod(postfixMethod));
|
||||
}
|
||||
|
||||
private static void OnShouldAdvance(object __instance, ref bool __result)
|
||||
{
|
||||
if (!EntryFixShouldAdvance.Value) return;
|
||||
if (__instance is CohtmlControlledView inst) __result &= inst.Enabled;
|
||||
}
|
||||
|
||||
private static void OnShouldRender(object __instance, ref bool __result)
|
||||
{
|
||||
if (!EntryFixShouldRender.Value) return;
|
||||
if (__instance is CohtmlControlledView inst) __result &= inst.Enabled;
|
||||
}
|
||||
}
|
||||
32
.Deprecated/FuckCohtml2/Properties/AssemblyInfo.cs
Normal file
32
.Deprecated/FuckCohtml2/Properties/AssemblyInfo.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using MelonLoader;
|
||||
using NAK.FuckCohtml2.Properties;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyTitle(nameof(NAK.FuckCohtml2))]
|
||||
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
|
||||
[assembly: AssemblyProduct(nameof(NAK.FuckCohtml2))]
|
||||
|
||||
[assembly: MelonInfo(
|
||||
typeof(NAK.FuckCohtml2.FuckCohtml2Mod),
|
||||
nameof(NAK.FuckCohtml2),
|
||||
AssemblyInfoParams.Version,
|
||||
AssemblyInfoParams.Author,
|
||||
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/FuckCohtml2"
|
||||
)]
|
||||
|
||||
[assembly: MelonGame("ChilloutVR", "ChilloutVR")]
|
||||
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
||||
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
||||
[assembly: MelonColor(255, 246, 25, 99)] // red-pink
|
||||
[assembly: MelonAuthorColor(255, 158, 21, 32)] // red
|
||||
[assembly: HarmonyDontPatchAll]
|
||||
|
||||
namespace NAK.FuckCohtml2.Properties;
|
||||
internal static class AssemblyInfoParams
|
||||
{
|
||||
public const string Version = "1.0.0";
|
||||
public const string Author = "NotAKidoS";
|
||||
}
|
||||
19
.Deprecated/FuckCohtml2/README.md
Normal file
19
.Deprecated/FuckCohtml2/README.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# YouAreMyPropNowWeAreHavingSoftTacosLater
|
||||
|
||||
Lets you bring held & attached props through world loads.
|
||||
|
||||
https://youtu.be/9P6Jeh-VN58?si=eXTPGyKB_0wq1gZO
|
||||
|
||||
## Examples
|
||||
https://fixupx.com/NotAKidoS/status/1910545346922422675
|
||||
|
||||
---
|
||||
|
||||
Here is the block of text where I tell you this mod is not affiliated with or endorsed by ABI.
|
||||
https://documentation.abinteractive.net/official/legal/tos/#7-modding-our-games
|
||||
|
||||
> This mod is an independent creation not affiliated with, supported by, or approved by Alpha Blend Interactive.
|
||||
|
||||
> Use of this mod is done so at the user's own risk and the creator cannot be held responsible for any issues arising from its use.
|
||||
|
||||
> To the best of my knowledge, I have adhered to the Modding Guidelines established by Alpha Blend Interactive.
|
||||
23
.Deprecated/FuckCohtml2/format.json
Normal file
23
.Deprecated/FuckCohtml2/format.json
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"_id": -1,
|
||||
"name": "YouAreMyPropNowWeAreHavingSoftTacosLater",
|
||||
"modversion": "1.0.0",
|
||||
"gameversion": "2025r179",
|
||||
"loaderversion": "0.6.1",
|
||||
"modtype": "Mod",
|
||||
"author": "NotAKidoS",
|
||||
"description": "Lets you bring held & attached props through world loads.\nhttps://youtu.be/9P6Jeh-VN58?si=eXTPGyKB_0wq1gZO",
|
||||
"searchtags": [
|
||||
"prop",
|
||||
"spawn",
|
||||
"friend",
|
||||
"load"
|
||||
],
|
||||
"requirements": [
|
||||
"None"
|
||||
],
|
||||
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r46/YouAreMyPropNowWeAreHavingSoftTacosLater.dll",
|
||||
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/YouAreMyPropNowWeAreHavingSoftTacosLater/",
|
||||
"changelog": "- Initial Release",
|
||||
"embedcolor": "#00FFFF"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue