public static void Postfix1(GameOptionsData __instance, ref string __result, int MKGPLPMAKLO)
 {
     if (CustomGameOptions.showSheriff)
     {
         __result += "Show Sheriff: On" + "\n";
     }
     else
     {
         __result += "Show Sheriff: Off" + "\n";
     }
     __result += "Sheriff Kill Cooldown: " + CustomGameOptions.SheriffKillCD.ToString() + "s";
 }
        public static void Postfix(PAMOPBEDCNI OMFKMPLOPPM)
        {
            if (PlayerControl.AllPlayerControls.Count > 1)
            {
                MessageWriter writer = AmongUsClient.Instance.StartRpc(PlayerControl.LocalPlayer.NetId, (byte)CustomRPC.SyncCustomSettings, Hazel.SendOption.Reliable);

                //writer.Write(CustomGameOptions.showSheriff);
                //writer.Write(CustomGameOptions.SheriffKillCD);

                writer.EndMessage();
            }
        }
Beispiel #3
0
 public static void Postfix(PAMOPBEDCNI OMFKMPLOPPM)
 {
     if (PlayerControl.AllPlayerControls.Count > 1)
     {
         foreach (var opt in lobbyOptions)
         {
             MessageWriter messageWriter =
                 AmongUsClient.Instance.StartRpc(PlayerControl.LocalPlayer.NetId, opt.rpcId,
                                                 SendOption.Reliable);
             messageWriter.WriteBytesAndSize(opt.ToBytes());
             messageWriter.EndMessage();
         }
     }
 }