Ejemplo n.º 1
0
        public static void Postfix1(AmongUsClient __instance, ClientData MLPPNIKICPC, GABADEGMIHF AMGCOJNIHLM)
        {
            MLPPNIKICPC.Character.FIMGDJOCIGD.IAGJEKLJCCI = true;

            if (PlayerController.players != null)
            {
                if (AmongUsClient.Instance.ClientId == AmongUsClient.Instance.HostId)
                {
                    EndReason reason = Love.CheckWin();

                    if (reason == EndReason.LoveWin)
                    {
                        MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(InnerPlayerControl.LocalPlayer.NetId, (byte)CustomRPC.LoveWin, Hazel.SendOption.Reliable, -1);
                        writer.Write((byte)reason);
                        AmongUsClient.Instance.FinishRpcImmediately(writer);

                        PlayerControlPatch.LoveCoupleWins();
                        ShipStatus.EABBNOODFGL(AMGMAKBHCMN.ImpostorByVote, false);
                    }
                }
            }
        }
Ejemplo n.º 2
0
 public static void HandleDisconnect(PlayerControl ABEKPAKNMJH, GABADEGMIHF AMGCOJNIHLM)
 {
     Process.Disconnect(ABEKPAKNMJH, AMGCOJNIHLM.ToString());
     MOD.log.LogMessage("HandleDisconnect " + ABEKPAKNMJH.nameText.text + " reason: " + AMGCOJNIHLM);
 }
Ejemplo n.º 3
0
 public static void ExitGame(GABADEGMIHF AMGCOJNIHLM)
 {
     Process.GameState = GameState.MENU;
     MOD.log.LogMessage("Exit Game: " + AMGCOJNIHLM);
 }