protected override void IntroPrefix(IntroCutscene._CoBegin_d__14 __instance) { var executionerteam = new List <PlayerControl>(); executionerteam.Add(PlayerControl.LocalPlayer); __instance.yourTeam = executionerteam; }
protected override void IntroPrefix(IntroCutscene._CoBegin_d__14 __instance) { var glitchTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); glitchTeam.Add(PlayerControl.LocalPlayer); __instance.yourTeam = glitchTeam; }
private static void Postfix(IntroCutscene._CoBegin_d__14 __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); } }