mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
just some casual bug fixing
This commit is contained in:
1 parent
83b74f66fc
commit
b2ea6d4745
34 files changed
+462
-255
No files matched your search
@@ -1252,28 +1252,29 @@ internal static class IntroCutsceneDestroyPatch
|
||||
{
|
||||
lp.Notify(GetString("GLHF"), 2f);
|
||||
|
||||
bool hasValue = false;
|
||||
var sender = CustomRpcSender.Create("Shapeshift After Pet Assign On Game Start", SendOption.Reliable);
|
||||
sender.StartPackedMessage();
|
||||
|
||||
foreach (PlayerControl pc in aapc)
|
||||
{
|
||||
if (pc.IsHost()) continue; // Skip the host
|
||||
if (pc.AmOwner) continue; // Skip the host
|
||||
|
||||
try
|
||||
{
|
||||
var sender = CustomRpcSender.Create("Shapeshift After Pet Assign On Game Start", SendOption.Reliable);
|
||||
|
||||
if (AmongUsClient.Instance.AmClient)
|
||||
pc.Shapeshift(pc, false);
|
||||
|
||||
sender.AutoStartRpc(pc.NetId, 46);
|
||||
sender.AutoStartRpc(pc.NetId, 46, pc.OwnerId);
|
||||
sender.WriteNetObject(pc);
|
||||
sender.Write(false);
|
||||
sender.EndRpc();
|
||||
|
||||
sender.Notify(pc, GetString("GLHF"), 2f);
|
||||
|
||||
sender.SendMessage();
|
||||
hasValue = true;
|
||||
}
|
||||
catch (Exception ex) { Logger.Fatal(ex.ToString(), "IntroPatch.RpcShapeshift"); }
|
||||
}
|
||||
|
||||
sender.SendMessage(dispose: !hasValue);
|
||||
}, 4f, "Show Pet For Everyone");
|
||||
|
||||
LateTask.New(() => Main.ProcessShapeshifts = true, 2f, "Enable SS Processing");
|
||||
|
||||
Reference in new issue
Block a user