Expiremental Changes to Support BAU (#623)

* Update ChatCommandPatch.cs

* Update RPC.cs

* BAU support

* more flags

* revert unnecessary chatcommandpatch changes

---------

Co-authored-by: lime1 <lime1@LIMEMACHINE>
Co-authored-by: Gurge44 <90392754+Gurge44@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-06-01 10:56:27 +02:00
1 parent 6fb038db75
commit 5117f76588
1 file changed
+30
+30
View File
@@ -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)
{
}
}