public static void Postfix(IntroCutscene.CoBegin__d __instance) { var Extra = PlayerControl.LocalPlayer.Extra(); var Team = Extra.Team; var Role = Extra.Role; var TeamName = LanguageManager.Get($"m.team.{Team.Name}.prefix"); var RoleName = LanguageManager.Get($"m.{Role.Id}"); var PersonText = LanguageManager.Get("m.person") .Replace("%t", TeamName) .Replace("%r", RoleName); var ModeBrief = LanguageManager.Get($"m.gamemode.{GameMode.Current.Id}.desc") .Replace("%c", $"[{Team.Color.ToHexRGBA()}]") .Replace("%whom", LanguageManager.Get($"m.team.{Team.Name}.whom")) .Replace("%which", LanguageManager.Get($"m.team.{Team.Name}.which")) .Replace("%r", Globals.FORMAT_WHITE); __instance.__this.Title.Text = PersonText; __instance.__this.Title.Color = Team.Color; __instance.__this.ImpostorText.Text = ModeBrief; __instance.__this.BackgroundBar.material.color = Team.Color; HudManager.Instance.Chat.SetVisible(true); Roles.Role.RespawnAll(); GunController.UpdateForPlayer(); }
public static void Prefix(IntroCutscene.CoBegin__d __instance) { foreach (var Role in Role.ROLES) { Role.Intro(__instance); } }
public override void Intro(IntroCutscene.CoBegin__d Cutscene) { base.Intro(Cutscene); InvisibleCooldown.UpdateForIntro(Cutscene); DisguiseCooldown.UpdateForIntro(Cutscene); }
public override void Intro(IntroCutscene.CoBegin__d Cutscene) { base.Intro(Cutscene); TimeWarpCooldown.UpdateForIntro(Cutscene); TasksCooldown.UpdateForIntro(Cutscene); }
// Intro display role static void Postfix(IntroCutscene.CoBegin__d __instance) { RoleInfo roleInfo = RoleInfo.getRoleInfoForPlayer(PlayerControl.LocalPlayer); if (PlayerControl.LocalPlayer == Lovers.lover1 || PlayerControl.LocalPlayer == Lovers.lover2) { PlayerControl otherLover = PlayerControl.LocalPlayer == Lovers.lover1 ? Lovers.lover2 : Lovers.lover1; __instance.__this.Title.Text = PlayerControl.LocalPlayer.Data.IsImpostor ? "[FF1919FF]Imp[FC03BEFF]Lover" : "Lover"; __instance.__this.Title.Color = PlayerControl.LocalPlayer.Data.IsImpostor ? Color.white : Lovers.color; __instance.__this.ImpostorText.Text = "You are in [FC03BEFF]Love [FFFFFFFF] with [FC03BEFF]" + (otherLover?.Data?.PlayerName ?? ""); __instance.__this.ImpostorText.gameObject.SetActive(true); __instance.__this.BackgroundBar.material.color = Lovers.color; } else if (PlayerControl.LocalPlayer == BountyHunter.bountyHunter) { __instance.__this.Title.Text = "Bounty Hunter"; __instance.__this.Title.Color = BountyHunter.color; __instance.__this.ImpostorText.Text = "Hunt [ED653BFF]" + BountyHunter.target?.Data?.PlayerName + "[FFFFFFFF] down"; __instance.__this.BackgroundBar.material.color = BountyHunter.color; } else if (roleInfo.name == "Crewmate" || roleInfo.name == "Impostor") { } else { __instance.__this.Title.Text = roleInfo.name; __instance.__this.Title.Color = roleInfo.color; __instance.__this.ImpostorText.gameObject.SetActive(true); __instance.__this.ImpostorText.Text = roleInfo.introDescription; __instance.__this.BackgroundBar.material.color = roleInfo.color; } }
public static void Postfix(IntroCutscene.CoBegin__d __instance) { if (GetMinato() == null) { return; } if (PlayerControl.LocalPlayer.Data.IsImpostor) { Utils.MinatoPlayer.nameText.Color = Utils.MinatoColor; } if (!PlayerControl.LocalPlayer.IsMinato()) { return; } var scene = __instance.__this; scene.Title.Text = "Minato"; scene.Title.Color = Utils.MinatoColor; scene.ImpostorText.gameObject.SetActive(true); scene.ImpostorText.Text = "Use your seal to teleport and [FF0000FF]kill[]"; scene.BackgroundBar.material.color = Utils.MinatoColor; }
static void Postfix(IntroCutscene.CoBegin__d __instance) { if (IsCultistUsed) { CultistMod.LastConversion = DateTime.UtcNow; //.AddSeconds(__instance.timer); if (PlayerControl.LocalPlayer == InitialCultist) { __instance.__this.Title.Text = "Cultist"; __instance.__this.Title.Color = CultistMod.CultistColor; __instance.__this.ImpostorText.Text = "Convert Crewmates to your Cult"; __instance.__this.BackgroundBar.material.color = CultistMod.CultistColor; } else if (!PlayerControl.LocalPlayer.Data.IsImpostor) { if (originalText == null) { originalText = __instance.__this.ImpostorText.Text; } __instance.__this.ImpostorText.Text = originalText + "\nThere is one " + "[6414C8FF]" + "Cultist" + "[]" + "."; } } }
protected override void IntroPrefix(IntroCutscene.CoBegin__d __instance) { var executionerteam = new List <PlayerControl>(); executionerteam.Add(PlayerControl.LocalPlayer); __instance.yourTeam = executionerteam; }
static void Postfix(IntroCutscene.CoBegin__d __instance) { OfficerSettings.lastKilled = DateTime.UtcNow.AddSeconds((OfficerSettings.OfficerCD * -1) + 10 + __instance.timer_0); //change the name and titles accordingly if (PlayerControl.LocalPlayer == MedicSettings.Medic) { __instance.__this.Title.Text = "Medic"; __instance.__this.Title.Color = ModdedPalette.medicColor; __instance.__this.ImpostorText.Text = "Create a shield to protect a [8DFFFF]Crewmate"; __instance.__this.BackgroundBar.material.color = ModdedPalette.medicColor; } if (PlayerControl.LocalPlayer == OfficerSettings.Officer) { __instance.__this.Title.Text = "Officer"; __instance.__this.Title.Color = ModdedPalette.officerColor; __instance.__this.ImpostorText.Text = "Shoot the [FF0000FF]Impostor"; __instance.__this.BackgroundBar.material.color = ModdedPalette.officerColor; } if (PlayerControl.LocalPlayer == EngineerSettings.Engineer) { __instance.__this.Title.Text = "Engineer"; __instance.__this.Title.Color = ModdedPalette.engineerColor; __instance.__this.ImpostorText.Text = "Maintain important systems on the ship"; __instance.__this.BackgroundBar.material.color = ModdedPalette.engineerColor; } if (PlayerControl.LocalPlayer == JokerSettings.Joker) { __instance.__this.Title.Text = "Joker"; __instance.__this.Title.Color = ModdedPalette.jokerColor; __instance.__this.ImpostorText.Text = "Get voted off of the ship to win"; __instance.__this.BackgroundBar.material.color = ModdedPalette.jokerColor; } }
protected static void SetupOwnIntroTeam(IntroCutscene.CoBegin__d Cutscene) { var Team = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); Team.Add(PlayerControl.LocalPlayer); Cutscene.yourTeam = Team; }
protected override void IntroPrefix(IntroCutscene.CoBegin__d __instance) { var arsonistTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); arsonistTeam.Add(PlayerControl.LocalPlayer); __instance.yourTeam = arsonistTeam; }
public override void Intro(IntroCutscene.CoBegin__d Cutscene) { base.Intro(Cutscene); StoneficationCooldown.UpdateForIntro(Cutscene); StoneficationEffect.UpdateForIntro(Cutscene); TranspositionCooldown.UpdateForIntro(Cutscene); }
public override void SetIntro(IntroCutscene.CoBegin__d instance) { base.SetIntro(instance); var maniacTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); maniacTeam.Add(player); instance.yourTeam = maniacTeam; }
private static void Prefix(IntroCutscene.CoBegin__d __instance) { if (__instance.isImpostor) { __instance.yourTeam.Clear(); __instance.yourTeam.Add(PlayerControl.LocalPlayer); } }
public virtual void SetIntro(IntroCutscene.CoBegin__d instance) { instance.__this.Title.Text = name; instance.__this.Title.render?.material?.SetColor("_OutlineColor", borderColor); instance.__this.Title.transform.localScale = titleScale; instance.c = color; instance.__this.ImpostorText.Text = startText; instance.__this.BackgroundBar.material.color = color; }
public override void Intro(IntroCutscene.CoBegin__d Cutscene) { if (!IsLocalPlayer()) { return; } SetupOwnIntroTeam(Cutscene); }
static bool Prefix(IntroCutscene.CoBegin__d __instance) { if (Helper.isJester(PlayerControl.LocalPlayer.PlayerId)) { var jesterTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); jesterTeam.Add(PlayerControl.LocalPlayer); __instance.yourTeam = jesterTeam; } return(true); }
static bool Prefix(IntroCutscene.CoBegin__d __instance) { if (PlayerControl.LocalPlayer == JokerSettings.Joker) { var jokerTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); jokerTeam.Add(PlayerControl.LocalPlayer); __instance.yourTeam = jokerTeam; return(true); } return(true); }
public static void Postfix(IntroCutscene.CoBegin__d __instance) { if (!PlayerControl.LocalPlayer.isShifter()) { return; } __instance.__this.Title.Text = "Shifter"; __instance.__this.Title.Color = new Color(0.6f, 0.6f, 0.6f, 1f); __instance.__this.ImpostorText.Text = "Shift around different roles"; __instance.__this.BackgroundBar.material.color = new Color(0.6f, 0.6f, 0.6f, 1f); }
public static void Postfix(IntroCutscene.CoBegin__d __instance) { if (!PlayerControl.LocalPlayer.isJester()) { return; } __instance.__this.Title.Text = "Jester"; __instance.__this.Title.Color = new Color(1f, 0.75f, 0.8f, 1f); __instance.__this.ImpostorText.Text = "Get voted out"; __instance.__this.BackgroundBar.material.color = new Color(1f, 0.75f, 0.8f, 1f); }
public static void Postfix(IntroCutscene.CoBegin__d __instance) { if (!PlayerControl.LocalPlayer.isSheriff()) { return; } __instance.__this.Title.Text = "Sheriff"; __instance.__this.Title.Color = new Color(1f, 1f, 0f, 1f); __instance.__this.ImpostorText.Text = "Shoot the [FF0000FF]Impostor"; __instance.__this.BackgroundBar.material.color = new Color(1f, 1f, 0f, 1f); }
static void Postfix(IntroCutscene.CoBegin__d __instance) { var glitch = Role.AllRoles.FirstOrDefault(x => x.RoleType == RoleEnum.Glitch); if (glitch != null) { ((Glitch)glitch).LastMimic = DateTime.UtcNow; ((Glitch)glitch).LastHack = DateTime.UtcNow; ((Glitch)glitch).LastKill = DateTime.UtcNow.AddSeconds(CustomGameOptions.InitialGlitchKillCooldown + (CustomGameOptions.GlitchKillCooldown * -1)); } }
public static void Postfix(IntroCutscene.CoBegin__d __instance) { if (!PlayerControl.LocalPlayer.isMayor()) { return; } __instance.__this.Title.Text = "Mayor"; __instance.__this.Title.Color = new Color(0.44f, 0.31f, 0.66f, 1f); __instance.__this.ImpostorText.Text = "Save your votes to double vote"; __instance.__this.BackgroundBar.material.color = new Color(0.44f, 0.31f, 0.66f, 1f); }
static bool Prefix(IntroCutscene.CoBegin__d __instance) { if (PlayerControl.LocalPlayer == InitialCultist) { var cultistTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); cultistTeam.Add(PlayerControl.LocalPlayer); __instance.yourTeam = cultistTeam; } return(true); }
public static void Postfix(IntroCutscene.CoBegin__d __instance) { if (!PlayerControl.LocalPlayer.isSwapper()) { return; } __instance.__this.Title.Text = "Swapper"; __instance.__this.Title.Color = new Color(0.4f, 0.9f, 0.4f, 1f); __instance.__this.ImpostorText.Text = "Swap the votes of two people"; __instance.__this.BackgroundBar.material.color = new Color(0.4f, 0.9f, 0.4f, 1f); }
public static void Postfix(IntroCutscene.CoBegin__d __instance) { if (!PlayerControl.LocalPlayer.isEngineer()) { return; } __instance.__this.Title.Text = "Engineer"; __instance.__this.Title.Color = new Color(1f, 0.7f, 0f, 1f); __instance.__this.ImpostorText.Text = "Help fix sabotages"; __instance.__this.BackgroundBar.material.color = new Color(1f, 0.7f, 0f, 1f); }
static void Postfix(ref IntroCutscene.CoBegin__d __instance) { if (IsSheriff(PlayerControl.LocalPlayer.PlayerId)) { __instance.__this.Title.Text = "Sheriff"; PlayerControl.LocalPlayer.nameText.Color = __instance.__this.Title.Color = Palette.Orange; //localscene.Title.scale /= 1.5f; // "Sheriff" isn't that big as "The Sheriff" __instance.__this.ImpostorText.Text = "Kill the [FF0000FF]Impostor"; __instance.__this.BackgroundBar.material.color = Palette.Orange; } }
public static void Postfix(IntroCutscene.CoBegin__d __instance) { if (!PlayerControl.LocalPlayer.isTimeMaster()) { return; } __instance.__this.Title.Text = "Time Master"; __instance.__this.Title.scale /= 1.4f; __instance.__this.Title.Color = new Color(0f, 0f, 1f, 1f);; __instance.__this.ImpostorText.Text = "Rewind time"; __instance.__this.BackgroundBar.material.color = new Color(0f, 0f, 1f, 1f);; }
public static void Postfix(IntroCutscene.CoBegin__d __instance) { if (!PlayerControl.LocalPlayer.isInvestigator()) { return; } __instance.__this.Title.Text = "Investigator"; __instance.__this.Title.scale /= 1.4f; __instance.__this.Title.Color = new Color(0f, 0.7f, 0.7f, 1f); __instance.__this.ImpostorText.Text = "Find all imposters by examining footprints"; __instance.__this.BackgroundBar.material.color = new Color(0f, 0.7f, 0.7f, 1f); }
static bool Prefix(IntroCutscene.CoBegin__d __instance) { if (!PlayerControl.LocalPlayer.isPlayerRole("Joker")) { return(true); } var jokerTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); jokerTeam.Add(PlayerControl.LocalPlayer); __instance.yourTeam = jokerTeam; return(true); }