Ability use gain every 5s, /changerole, votekick disable setting, add head hunter RPC, bug fixes

This commit is contained in:
Gurge44 committed 2024-02-06 22:01:47 +01:00
1 parent 2ffab98391
commit 2dc400be01
37 files changed
+329 -72

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
using HarmonyLib;
namespace TOHE.Patches
{
[HarmonyPatch(typeof(VoteBanSystem), nameof(VoteBanSystem.AddVote))]
class VoteBanSystemPatch
{
public static bool Prefix()
{
return !AmongUsClient.Instance.AmHost || !Options.DisableVoteBan.GetBool();
}
}
[HarmonyPatch(typeof(VoteBanSystem), nameof(VoteBanSystem.CmdAddVote))]
class VoteBanSystemPatchCmd
{
public static bool Prefix()
{
return !AmongUsClient.Instance.AmHost || !Options.DisableVoteBan.GetBool();
}
}
}