Example #1
0
    // Землетрясение Горо Куатанского Воина
    static IEnumerator Tremor()
    {
        UnpressAllKeys();

        while (true) // Бесконечный цикл
        {
            // Землетрясение
            KeyPress(Keys.Down);
            Thread.Sleep(Keys.PressTime); // Здесь используется ОБЫЧНАЯ задержка. В этом месте комбу прервать нельзя
            KeyPress(Keys.Down, Keys.BackKick);

            yield return(ComboRunner.Wait(17 * 88)); // Здесь используется ПРЕРЫВАЕМЯ задержка. В этом месте комбу можно прервать
        }
    }
Example #2
0
    // Землетрясение
    static IEnumerator Tremor()
    {
        UnpressAllKeys();

        while (true)
        {
            if (IsKeyDown(Key.LShift))
            {
                KeyPress(Keys.Down);
                Thread.Sleep(Keys.PressTime);
                KeyPress(Keys.Down, Keys.BackKick, Keys.Block);
            }
            else
            {
                KeyPress(Keys.Down);
                Thread.Sleep(Keys.PressTime);
                KeyPress(Keys.Down, Keys.BackKick);
            }

            yield return(ComboRunner.Wait(17 * 88));
        }
    }
Example #3
0
    static IEnumerator LongCombo()
    {
        UnpressAllKeys();

        // Удар варвара
        KeyPress(Keys.Back, Keys.FrontPunch);
        KeyPress(Keys.BackPunch);
        Thread.Sleep(Keys.PressTime);
        KeyPress(Keys.Up, Keys.BackPunch);

        yield return(ComboRunner.Wait(17 * 80));

        // Микропробежка
        KeyPress(Keys.Forward);
        Thread.Sleep(Keys.PressTime);
        KeyPress(Keys.Forward, Keys.Block);

        yield return(ComboRunner.Wait(17 * 10));

        // Удар варвара
        KeyPress(Keys.Back, Keys.FrontPunch);
        KeyPress(Keys.BackPunch);
        Thread.Sleep(Keys.PressTime);
        KeyPress(Keys.Up, Keys.BackPunch);

        yield return(ComboRunner.Wait(17 * 85));

        // Попутный ветер
        KeyPress(Keys.Back, Keys.BackPunch);

        yield return(ComboRunner.Wait(17 * 42));

        // Выпад грудью
        KeyPress(Keys.Back);
        KeyPress(Keys.Forward, Keys.BackPunch);
    }