mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
MutualMute: Stole name idea, now it's MutualMute
This commit is contained in:
parent
40bc88586e
commit
ac9af46bd6
5 changed files with 23 additions and 20 deletions
|
@ -3,16 +3,16 @@ using ABI_RC.Systems.Communications.Audio.Components;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using MelonLoader;
|
using MelonLoader;
|
||||||
|
|
||||||
namespace NAK.TwoWayMute;
|
namespace NAK.MutualMute;
|
||||||
|
|
||||||
public class TwoWayMuteMod : MelonMod
|
public class MutualMuteMod : MelonMod
|
||||||
{
|
{
|
||||||
public override void OnInitializeMelon()
|
public override void OnInitializeMelon()
|
||||||
{
|
{
|
||||||
HarmonyInstance.Patch(
|
HarmonyInstance.Patch(
|
||||||
typeof(Comms_ParticipantPipeline).GetMethod(nameof(Comms_ParticipantPipeline.SetFlowControlState),
|
typeof(Comms_ParticipantPipeline).GetMethod(nameof(Comms_ParticipantPipeline.SetFlowControlState),
|
||||||
BindingFlags.NonPublic | BindingFlags.Instance),
|
BindingFlags.NonPublic | BindingFlags.Instance),
|
||||||
prefix: new HarmonyMethod(typeof(TwoWayMuteMod).GetMethod(nameof(OnSetFlowControlState),
|
prefix: new HarmonyMethod(typeof(MutualMuteMod).GetMethod(nameof(OnSetFlowControlState),
|
||||||
BindingFlags.NonPublic | BindingFlags.Static))
|
BindingFlags.NonPublic | BindingFlags.Static))
|
||||||
);
|
);
|
||||||
}
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net48</TargetFramework>
|
<TargetFramework>net48</TargetFramework>
|
||||||
|
<RootNamespace>TwoWayMute</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="TheClapper">
|
<Reference Include="TheClapper">
|
|
@ -1,20 +1,20 @@
|
||||||
using NAK.TwoWayMute.Properties;
|
using NAK.MutualMute.Properties;
|
||||||
using MelonLoader;
|
using MelonLoader;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
|
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
|
||||||
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
|
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
|
||||||
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
|
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
|
||||||
[assembly: AssemblyTitle(nameof(NAK.TwoWayMute))]
|
[assembly: AssemblyTitle(nameof(NAK.MutualMute))]
|
||||||
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
|
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
|
||||||
[assembly: AssemblyProduct(nameof(NAK.TwoWayMute))]
|
[assembly: AssemblyProduct(nameof(NAK.MutualMute))]
|
||||||
|
|
||||||
[assembly: MelonInfo(
|
[assembly: MelonInfo(
|
||||||
typeof(NAK.TwoWayMute.TwoWayMuteMod),
|
typeof(NAK.MutualMute.MutualMuteMod),
|
||||||
nameof(NAK.TwoWayMute),
|
nameof(NAK.MutualMute),
|
||||||
AssemblyInfoParams.Version,
|
AssemblyInfoParams.Version,
|
||||||
AssemblyInfoParams.Author,
|
AssemblyInfoParams.Author,
|
||||||
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/TwoWayMute"
|
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/MutualMute"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
|
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
|
||||||
|
@ -24,9 +24,9 @@ using System.Reflection;
|
||||||
[assembly: MelonAuthorColor(255, 158, 21, 32)] // red
|
[assembly: MelonAuthorColor(255, 158, 21, 32)] // red
|
||||||
[assembly: HarmonyDontPatchAll]
|
[assembly: HarmonyDontPatchAll]
|
||||||
|
|
||||||
namespace NAK.TwoWayMute.Properties;
|
namespace NAK.MutualMute.Properties;
|
||||||
internal static class AssemblyInfoParams
|
internal static class AssemblyInfoParams
|
||||||
{
|
{
|
||||||
public const string Version = "1.0.0";
|
public const string Version = "1.0.1";
|
||||||
public const string Author = "NotAKidoS";
|
public const string Author = "NotAKidoS";
|
||||||
}
|
}
|
|
@ -1,9 +1,11 @@
|
||||||
# TwoWayMute
|
# MutualMute
|
||||||
|
|
||||||
Adjusts the self moderation muting behaviour to also prevent the muted user from hearing you.
|
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.
|
Basically- if you mute someone, they will also not be able to hear you.
|
||||||
|
|
||||||
|
#### This will work even of the other user does not have the mod installed, as it modifies the BBC Flow Control system.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Here is the block of text where I tell you this mod is not affiliated with or endorsed by ABI.
|
Here is the block of text where I tell you this mod is not affiliated with or endorsed by ABI.
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"_id": -1,
|
"_id": 246,
|
||||||
"name": "TwoWayMute",
|
"name": "MutualMute",
|
||||||
"modversion": "1.0.0",
|
"modversion": "1.0.1",
|
||||||
"gameversion": "2024r177",
|
"gameversion": "2025r178",
|
||||||
"loaderversion": "0.6.1",
|
"loaderversion": "0.6.1",
|
||||||
"modtype": "Mod",
|
"modtype": "Mod",
|
||||||
"author": "NotAKidoS",
|
"author": "NotAKidoS",
|
||||||
"description": "Adjusts the self moderation muting behaviour to also prevent the muted user from hearing you.\n\nBasically- if you mute someone, they will also not be able to hear you.",
|
"description": "Adjusts the self moderation muting behaviour to also prevent the muted user from hearing you.\n\nBasically- if you mute someone, they will also not be able to hear you.\n-# This will work even of the other user does not have the mod installed, as it modifies the BBC Flow Control system.",
|
||||||
"searchtags": [
|
"searchtags": [
|
||||||
"mute",
|
"mute",
|
||||||
"communication",
|
"communication",
|
||||||
|
@ -16,8 +16,8 @@
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"None"
|
"None"
|
||||||
],
|
],
|
||||||
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r44/TwoWayMute.dll",
|
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r45/MutualMute.dll",
|
||||||
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/TwoWayMute/",
|
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/MutualMute/",
|
||||||
"changelog": "- Initial Release",
|
"changelog": "- Stole name idea, now it's MutualMute",
|
||||||
"embedcolor": "#f61963"
|
"embedcolor": "#f61963"
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue