From 5117f76588a908de7c3eba58597b28bf6e450c07 Mon Sep 17 00:00:00 2001 From: Limeau <148590907+Limeau@users.noreply.github.com> Date: Mon, 1 Jun 2026 01:56:27 -0700 Subject: [PATCH] Expiremental Changes to Support BAU (#623) * Update ChatCommandPatch.cs * Update RPC.cs * BAU support * more flags * revert unnecessary chatcommandpatch changes --------- Co-authored-by: lime1 Co-authored-by: Gurge44 <90392754+Gurge44@users.noreply.github.com> --- Modules/BAUManager.cs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Modules/BAUManager.cs diff --git a/Modules/BAUManager.cs b/Modules/BAUManager.cs new file mode 100644 index 000000000..8f0cbed24 --- /dev/null +++ b/Modules/BAUManager.cs @@ -0,0 +1,30 @@ +using BepInEx.Configuration; +using BepInEx.Unity.IL2CPP; +using System.ComponentModel; + +namespace EHR.Modules; + +internal class ModdedSupportExampleClass +{ + + // These are the flags I would think would be the best for EHR + // They can be changed, all flags listed here: https://github.com/D1GQ/BetterAmongUs/blob/main/src/Modules/Support/BAUModdedSupportFlags.cs + [Category("bau:flags")] + public static string[] BAUFlags = ["gameoption.disable.allgameoptions", "lobby.disable.customloadingbar", "gameplay.disable.customcolorblindtext", "client.disable.discordrp", "lobby.disable.cancelstartinggame", "gameplay.disable.betterrolealgorithm", "gameplay.disable.nameoverride", "gameplay.disable.chatnameoverride", "gameplay.disable.playerinfo", "gameplay.disable.playermeetinginfo"]; + + [Category("bau:event.bau_load")] + public static bool OnBAULoad(BasePlugin bauPlugin) + { + return true; + } + + [Category("bau:event.options_load")] + public static void OnBAUOptionsLoaded(object[] options) + { + } + + [Category("bau:event.configs_load")] + public static void OnBAUConfigEntriesLoaded(ConfigEntryBase[] configs) + { + } +} \ No newline at end of file