This commit is contained in:
D1GQ committed 2024-08-04 07:11:05 -05:00
1 parent 4c3b5b99e3
commit 564daf522b
2 files changed
+15

No files matched your search

+1
View File
@@ -123,6 +123,7 @@ class ChatPatch
ChatBubble pooledBubble = __instance.GetPooledBubble();
try
{
chatText = chatText.Replace("\n", "");
pooledBubble.transform.SetParent(__instance.scroller.Inner);
pooledBubble.transform.localScale = Vector3.one;
bool flag = sourcePlayer == PlayerControl.LocalPlayer;
+14
View File
@@ -1,5 +1,6 @@
using AmongUs.Data;
using HarmonyLib;
using Hazel;
using Il2CppSystem.Linq;
using LibCpp2IL;
using System.Text;
@@ -218,6 +219,19 @@ class PlayerControlPatch
}
}
[HarmonyPatch(nameof(PlayerControl.SetColor))]
[HarmonyPostfix]
public static void SetColor_Postfix()
{
if (Main.BetterHost.Value && GameStates.IsLobby)
{
_ = new LateTask(() =>
{
RPC.SyncAllNames(force: true);
}, 0.25f, shoudLog: false);
}
}
[HarmonyPatch(nameof(PlayerControl.MurderPlayer))]
[HarmonyPostfix]
public static void MurderPlayer_Postfix(PlayerControl __instance, [HarmonyArgument(0)] PlayerControl target)