mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
TwoWayMute: initial release
This commit is contained in:
parent
3d42301f24
commit
e027829103
6 changed files with 111 additions and 18 deletions
|
@ -196,18 +196,6 @@
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\PICO.Platform.dll</HintPath>
|
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\PICO.Platform.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Pico.Spatializer">
|
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Pico.Spatializer.dll</HintPath>
|
|
||||||
<Private>False</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Pico.Spatializer.Example">
|
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Pico.Spatializer.Example.dll</HintPath>
|
|
||||||
<Private>False</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="PICO.TobSupport">
|
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\PICO.TobSupport.dll</HintPath>
|
|
||||||
<Private>False</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="PWCommon3DLL">
|
<Reference Include="PWCommon3DLL">
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\PWCommon3DLL.dll</HintPath>
|
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\PWCommon3DLL.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
|
@ -596,10 +584,6 @@
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.Hands.Samples.VisualizerSample.dll</HintPath>
|
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.Hands.Samples.VisualizerSample.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Unity.XR.Interaction.Toolkit">
|
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.Interaction.Toolkit.dll</HintPath>
|
|
||||||
<Private>False</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Unity.XR.Management">
|
<Reference Include="Unity.XR.Management">
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.Management.dll</HintPath>
|
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.Management.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
|
@ -632,12 +616,16 @@
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.OpenXR.Features.OculusQuestSupport.dll</HintPath>
|
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.OpenXR.Features.OculusQuestSupport.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Unity.XR.OpenXR.Features.PICOSupport">
|
||||||
|
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.OpenXR.Features.PICOSupport.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
<Reference Include="Unity.XR.OpenXR.Features.RuntimeDebugger">
|
<Reference Include="Unity.XR.OpenXR.Features.RuntimeDebugger">
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.OpenXR.Features.RuntimeDebugger.dll</HintPath>
|
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.OpenXR.Features.RuntimeDebugger.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Unity.XR.PICO">
|
<Reference Include="Unity.XR.OpenXRPico">
|
||||||
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.PICO.dll</HintPath>
|
<HintPath>$(MsBuildThisFileDirectory)\.ManagedLibs\Unity.XR.OpenXRPico.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.AccessibilityModule">
|
<Reference Include="UnityEngine.AccessibilityModule">
|
||||||
|
|
24
TwoWayMute/Main.cs
Normal file
24
TwoWayMute/Main.cs
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
using System.Reflection;
|
||||||
|
using ABI_RC.Systems.Communications.Audio.Components;
|
||||||
|
using HarmonyLib;
|
||||||
|
using MelonLoader;
|
||||||
|
|
||||||
|
namespace NAK.TwoWayMute;
|
||||||
|
|
||||||
|
public class TwoWayMuteMod : MelonMod
|
||||||
|
{
|
||||||
|
public override void OnInitializeMelon()
|
||||||
|
{
|
||||||
|
HarmonyInstance.Patch(
|
||||||
|
typeof(Comms_ParticipantPipeline).GetMethod(nameof(Comms_ParticipantPipeline.SetFlowControlState),
|
||||||
|
BindingFlags.NonPublic | BindingFlags.Instance),
|
||||||
|
prefix: new HarmonyMethod(typeof(TwoWayMuteMod).GetMethod(nameof(OnSetFlowControlState),
|
||||||
|
BindingFlags.NonPublic | BindingFlags.Static))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void OnSetFlowControlState(
|
||||||
|
ref bool state,
|
||||||
|
Comms_ParticipantPipeline __instance)
|
||||||
|
=> state &= !__instance._selfModerationMute;
|
||||||
|
}
|
32
TwoWayMute/Properties/AssemblyInfo.cs
Normal file
32
TwoWayMute/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
using NAK.TwoWayMute.Properties;
|
||||||
|
using MelonLoader;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
|
||||||
|
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
|
||||||
|
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
|
||||||
|
[assembly: AssemblyTitle(nameof(NAK.TwoWayMute))]
|
||||||
|
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
|
||||||
|
[assembly: AssemblyProduct(nameof(NAK.TwoWayMute))]
|
||||||
|
|
||||||
|
[assembly: MelonInfo(
|
||||||
|
typeof(NAK.TwoWayMute.TwoWayMuteMod),
|
||||||
|
nameof(NAK.TwoWayMute),
|
||||||
|
AssemblyInfoParams.Version,
|
||||||
|
AssemblyInfoParams.Author,
|
||||||
|
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/TwoWayMute"
|
||||||
|
)]
|
||||||
|
|
||||||
|
[assembly: MelonGame("Alpha Blend Interactive", "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.TwoWayMute.Properties;
|
||||||
|
internal static class AssemblyInfoParams
|
||||||
|
{
|
||||||
|
public const string Version = "1.0.0";
|
||||||
|
public const string Author = "NotAKidoS";
|
||||||
|
}
|
15
TwoWayMute/README.md
Normal file
15
TwoWayMute/README.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# TwoWayMute
|
||||||
|
|
||||||
|
Adjusts the self moderation muting behaviour to also prevent the muted user from hearing you.
|
||||||
|
Basically- if you mute someone, they will also not be able to hear you.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
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.
|
11
TwoWayMute/TwoWayMute.csproj
Normal file
11
TwoWayMute/TwoWayMute.csproj
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net48</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="TheClapper">
|
||||||
|
<HintPath>..\.ManagedLibs\TheClapper.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
23
TwoWayMute/format.json
Normal file
23
TwoWayMute/format.json
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"_id": -1,
|
||||||
|
"name": "TwoWayMute",
|
||||||
|
"modversion": "1.0.0",
|
||||||
|
"gameversion": "2024r177",
|
||||||
|
"loaderversion": "0.6.1",
|
||||||
|
"modtype": "Mod",
|
||||||
|
"author": "NotAKidoS",
|
||||||
|
"description": "Adjusts the self moderation muting behaviour to also prevent the muted user from hearing you.\nBasically- if you mute someone, they will also not be able to hear you.",
|
||||||
|
"searchtags": [
|
||||||
|
"mute",
|
||||||
|
"communication",
|
||||||
|
"meow",
|
||||||
|
"car"
|
||||||
|
],
|
||||||
|
"requirements": [
|
||||||
|
"None"
|
||||||
|
],
|
||||||
|
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r44/TwoWayMute.dll",
|
||||||
|
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/TwoWayMute/",
|
||||||
|
"changelog": "- Initial Release",
|
||||||
|
"embedcolor": "#f61963"
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue