Пример #1
0
        protected override void IntroPrefix(IntroCutscene._CoBegin_d__14 __instance)
        {
            var executionerteam = new List <PlayerControl>();

            executionerteam.Add(PlayerControl.LocalPlayer);
            __instance.yourTeam = executionerteam;
        }
Пример #2
0
        protected override void IntroPrefix(IntroCutscene._CoBegin_d__14 __instance)
        {
            var glitchTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>();

            glitchTeam.Add(PlayerControl.LocalPlayer);
            __instance.yourTeam = glitchTeam;
        }
Пример #3
0
        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);
            }
        }