コード例 #1
0
ファイル: RS6Menu.cs プロジェクト: ALEHACKsp/hypex-crack
    // Token: 0x060001C0 RID: 448 RVA: 0x01032F5C File Offset: 0x0103115C
    public static void smethod_6(int int_21, int int_22, int int_23)
    {
        int num  = 0;
        int num2 = 0;
        int num3 = RS6Menu.smethod_2();

        if (Settings.Default.rapidKey.ToString() == Keys.LButton.ToString() && Settings.Default.rapid)
        {
            int_21 -= RS6Menu.int_8 * 2;
        }
        else if (Settings.Default.rapidKey.ToString() != Keys.LButton.ToString() && Settings.Default.rapid)
        {
            RS6Menu.smethod_8(true);
        }
        List <int> list  = new List <int>();
        List <int> list2 = new List <int>();

        if (int_23 < num3 && int_23 == 0)
        {
            num3 = 1;
        }
        else if (int_23 < num3)
        {
            num3 = int_23;
        }
        Random random = new Random();
        int    num4   = Convert.ToInt32(int_22 / num3);
        int    num5   = Convert.ToInt32(int_23 / num3);

        for (int i = 0; i < num3 - 1; i++)
        {
            int num6 = random.Next(-2, 2);
            int num7 = random.Next(-2, -2);
            num  += num6;
            num2 += num7;
            list.Add(num6);
            list2.Add(num7);
        }
        int num8 = 0;

        while (num8 < num3 && Class6.smethod_2(Keys.LButton))
        {
            if (num8 != num3 - 1)
            {
                Class6.smethod_0((num4 + list[num8]) / num3, (num5 + list2[num8]) / num3);
                Thread.Sleep(int_21 / num3);
            }
            else
            {
                Class6.smethod_0((num4 - num) / num3 + (int_22 - num4 * num3), (num5 - num2) / num3 + (int_23 - num5 * num3));
                Thread.Sleep(int_21 / num3);
            }
            num8++;
        }
        RS6Menu.smethod_7();
    }
コード例 #2
0
ファイル: RS6Menu.cs プロジェクト: ALEHACKsp/hypex-crack
    // Token: 0x060001BF RID: 447 RVA: 0x01032DFC File Offset: 0x01030FFC
    public static void smethod_5(int int_21, int int_22, int int_23, int int_24)
    {
        int        num   = RS6Menu.smethod_3(int_24);
        int        num2  = RS6Menu.smethod_4(num);
        int        num3  = 0;
        int        num4  = 0;
        List <int> list  = new List <int>();
        List <int> list2 = new List <int>();

        for (int i = 0; i < num / 2 - 1; i++)
        {
            int num5 = RS6Menu.random_0.Next(-1, 3);
            int num6 = RS6Menu.random_0.Next(-1, 3);
            num3 += num5;
            num4 += num6;
            list.Add(num5);
            list2.Add(num6);
        }
        int num7 = 0;

        while (num7 < num / 2 && Class6.smethod_2(Keys.LButton) && Class6.smethod_2(Keys.RButton))
        {
            if (num7 != num / 2 - 1)
            {
                Class6.smethod_0(int_24 / num + list[num7], int_24 * 3 / num + list2[num7]);
                Thread.Sleep(num2 / num);
            }
            else
            {
                Class6.smethod_0(int_24 / num - num3, int_24 * 3 / num - num4);
                Thread.Sleep(num2 / num);
            }
            num7++;
        }
        int num8 = 0;

        while (num8 < num / 2 && Class6.smethod_2(Keys.LButton) && Class6.smethod_2(Keys.RButton))
        {
            if (num8 == num / 2 - 1)
            {
                Class6.smethod_0(-1 * (int_24 / num + num3), -1 * (int_24 * 3 / num + num4));
                Thread.Sleep(num2 / num);
            }
            else
            {
                Class6.smethod_0(-1 * (int_24 / num - list[num8]), -1 * (int_24 * 3 / num - list2[num8]));
                Thread.Sleep(num2 / num);
            }
            num8++;
        }
    }
コード例 #3
0
ファイル: RS6Menu.cs プロジェクト: ALEHACKsp/hypex-crack
 // Token: 0x060001B9 RID: 441 RVA: 0x0103285C File Offset: 0x01030A5C
 private void timer_0_Tick(object sender, EventArgs e)
 {
     if (Settings.Default.autohide && !this.bool_0 && !base.Visible)
     {
         base.Show();
         if (this.bool_0)
         {
             this.startButton.ButtonText = "Stop";
         }
         else
         {
             this.startButton.ButtonText = "Start";
         }
         this.timer_0.Stop();
         RS6Menu.SetForegroundWindow(this.method_13().ToInt32());
     }
 }
コード例 #4
0
ファイル: RS6Menu.cs プロジェクト: ALEHACKsp/hypex-crack
    // Token: 0x060001C5 RID: 453 RVA: 0x010333EC File Offset: 0x010315EC
    public void method_10(int int_21)
    {
        RS6Menu.Boolean_0 = false;
        RS6Menu.int_8     = Settings.Default.rapidFireValue;
        RS6Menu.int_9     = int_21;
        RS6Menu.int_10    = int_21 - 1;
        RS6Menu.bool_2    = true;
        bool flag = false;
        List <VirtualKeyCode> list = new List <VirtualKeyCode>
        {
            Settings.Default.TerminateKey,
            Settings.Default.suspendKey,
            Settings.Default.NextWeaponKey,
            Settings.Default.CrosshairKey,
            Settings.Default.akKey,
            Settings.Default.lrKey,
            Settings.Default.thompsonKey,
            Settings.Default.m249Key,
            Settings.Default.p250Key,
            Settings.Default.semiKey,
            Settings.Default.barettaKey,
            Settings.Default.pythonKey,
            Settings.Default.revolverKey,
            Settings.Default.nailgunKey
        };

        foreach (VirtualKeyCode virtualKeyCode in list)
        {
            RS6Menu.inputManager_0.UnregisterEvent(virtualKeyCode, new InputManager.KeyStateChangedEventHandler(this.method_9));
        }
        foreach (VirtualKeyCode virtualKeyCode2 in list)
        {
            RS6Menu.inputManager_0.RegisterEvent(virtualKeyCode2, new InputManager.KeyStateChangedEventHandler(this.method_9));
        }
        if (Settings.Default.Modifier == "")
        {
            RS6Menu.Boolean_0 = true;
        }
        else
        {
            RS6Menu.inputManager_0.OnKeyboardEvent += new LowLevelKeyboardHook.KeyboardEventHandler(RS6Menu.Class5.< > 9.method_0);
        }
        new Random();
        int num = 142;

        RS6Menu.smethod_1();
        if (RS6Menu.int_9 == 999)
        {
            foreach (VirtualKeyCode virtualKeyCode3 in list)
            {
                RS6Menu.inputManager_0.UnregisterEvent(virtualKeyCode3, new InputManager.KeyStateChangedEventHandler(this.method_9));
            }
            this.bool_0 = false;
            if (num != RS6Menu.int_12)
            {
                num = RS6Menu.int_12;
            }
            RS6Menu.smethod_6(num, 0, 0);
            Thread.Sleep(5);
            return;
        }
        while (this.bool_0)
        {
            if (RS6Menu.int_9 != RS6Menu.int_10)
            {
                goto IL_284;
            }
            if (RS6Menu.int_9 == 999)
            {
                goto IL_284;
            }
IL_2A4:
            new Random(DateTime.Now.Millisecond).Next(4, 5);
            if (Settings.Default.rapidKey != Keys.LButton && RS6Menu.bool_2)
            {
                RS6Menu.smethod_8(false);
            }
            if (Class6.smethod_2(Keys.LButton) && !flag && RS6Menu.bool_2)
            {
                if (RS6Menu.string_1.StartsWith("AK"))
                {
                    if (num != RS6Menu.int_11)
                    {
                        num = RS6Menu.int_11;
                    }
                    while (Class6.smethod_2(Keys.LButton))
                    {
                        if (Settings.Default.rageSwitchAK)
                        {
                            RS6Menu.smethod_5(num, Settings.Default.aksensX, Settings.Default.aksensY, Settings.Default.akfire);
                        }
                        else
                        {
                            RS6Menu.smethod_6(num, 0, Settings.Default.aksensY);
                        }
                    }
                    flag = true;
                }
                else if (!RS6Menu.string_1.StartsWith("LR300"))
                {
                    if (!RS6Menu.string_1.StartsWith("THOMSON"))
                    {
                        if (!RS6Menu.string_1.StartsWith("M249"))
                        {
                            if (!RS6Menu.string_1.StartsWith("P250"))
                            {
                                if (RS6Menu.string_1.StartsWith("SEMIRIFLE"))
                                {
                                    if (num != RS6Menu.int_19)
                                    {
                                        num = RS6Menu.int_19;
                                    }
                                    while (Class6.smethod_2(Keys.LButton))
                                    {
                                        if (!Settings.Default.rageSwitchSEMI)
                                        {
                                            RS6Menu.smethod_6(num, 0, Settings.Default.semisensY);
                                        }
                                        else
                                        {
                                            RS6Menu.smethod_5(num, Settings.Default.semisensX, Settings.Default.semisensY, Settings.Default.semifire);
                                        }
                                    }
                                }
                                else if (!RS6Menu.string_1.StartsWith("Baretta"))
                                {
                                    if (!RS6Menu.string_1.StartsWith("Python"))
                                    {
                                        if (!RS6Menu.string_1.StartsWith("Revolver"))
                                        {
                                            if (RS6Menu.string_1.StartsWith("Nailgun"))
                                            {
                                                if (num != RS6Menu.int_15)
                                                {
                                                    num = RS6Menu.int_15;
                                                }
                                                while (Class6.smethod_2(Keys.LButton))
                                                {
                                                    if (Settings.Default.rageSwitchNAILGUN)
                                                    {
                                                        RS6Menu.smethod_5(num, Settings.Default.nailgunsensX, Settings.Default.nailgunsensY, Settings.Default.nailgunfire);
                                                    }
                                                    else
                                                    {
                                                        RS6Menu.smethod_6(num, 0, Settings.Default.nailgunsensY);
                                                    }
                                                }
                                            }
                                            else
                                            {
                                                Application.Exit();
                                            }
                                        }
                                        else
                                        {
                                            if (num != RS6Menu.int_18)
                                            {
                                                num = RS6Menu.int_18;
                                            }
                                            while (Class6.smethod_2(Keys.LButton))
                                            {
                                                if (!Settings.Default.rageSwitchREVOLVER)
                                                {
                                                    RS6Menu.smethod_6(num, 0, Settings.Default.revolversensY);
                                                }
                                                else
                                                {
                                                    RS6Menu.smethod_5(num, Settings.Default.revolversensX, Settings.Default.revolversensY, Settings.Default.revolverfire);
                                                }
                                            }
                                        }
                                    }
                                    else
                                    {
                                        if (num != RS6Menu.int_17)
                                        {
                                            num = RS6Menu.int_17;
                                        }
                                        while (Class6.smethod_2(Keys.LButton))
                                        {
                                            if (!Settings.Default.rageSwitchPYTHON)
                                            {
                                                RS6Menu.smethod_6(num, 0, Settings.Default.pythonsensY);
                                            }
                                            else
                                            {
                                                RS6Menu.smethod_5(num, Settings.Default.pythonsensX, Settings.Default.pythonsensY, Settings.Default.pythonfire);
                                            }
                                        }
                                    }
                                }
                                else
                                {
                                    if (num != RS6Menu.int_13)
                                    {
                                        num = RS6Menu.int_13;
                                    }
                                    while (Class6.smethod_2(Keys.LButton))
                                    {
                                        if (Settings.Default.rageSwitchBARETTA)
                                        {
                                            RS6Menu.smethod_5(num, Settings.Default.barettasensX, Settings.Default.barettasensY, Settings.Default.barettafire);
                                        }
                                        else
                                        {
                                            RS6Menu.smethod_6(num, 0, Settings.Default.barettasensY);
                                        }
                                    }
                                }
                            }
                            else
                            {
                                if (num != RS6Menu.int_16)
                                {
                                    num = RS6Menu.int_16;
                                }
                                while (Class6.smethod_2(Keys.LButton))
                                {
                                    if (Settings.Default.rageSwitchP250)
                                    {
                                        RS6Menu.smethod_5(num, Settings.Default.p250sensX, Settings.Default.p250sensY, Settings.Default.p250fire);
                                    }
                                    else
                                    {
                                        RS6Menu.smethod_6(num, 0, Settings.Default.p250sensY);
                                    }
                                }
                            }
                        }
                        else
                        {
                            if (num != RS6Menu.int_14)
                            {
                                num = RS6Menu.int_14;
                            }
                            while (Class6.smethod_2(Keys.LButton))
                            {
                                if (Settings.Default.rageSwitchM249)
                                {
                                    RS6Menu.smethod_5(num, Settings.Default.m249sensX, Settings.Default.m249sensY, Settings.Default.m249fire);
                                }
                                else
                                {
                                    RS6Menu.smethod_6(num, 0, Settings.Default.m249sensY);
                                }
                            }
                        }
                    }
                    else
                    {
                        if (num != RS6Menu.int_20)
                        {
                            num = RS6Menu.int_20;
                        }
                        while (Class6.smethod_2(Keys.LButton))
                        {
                            if (Settings.Default.rageSwitchTHOMPSON)
                            {
                                RS6Menu.smethod_5(num, Settings.Default.thompsonsensX, Settings.Default.thompsonsensY, Settings.Default.thompsonfire);
                            }
                            else
                            {
                                RS6Menu.smethod_6(num, 0, Settings.Default.thompsonsensY);
                            }
                        }
                    }
                }
                else
                {
                    if (num != RS6Menu.int_12)
                    {
                        num = RS6Menu.int_12;
                    }
                    while (Class6.smethod_2(Keys.LButton))
                    {
                        if (!Settings.Default.rageSwitchLR)
                        {
                            RS6Menu.smethod_6(num, 0, Settings.Default.lrsensY);
                        }
                        else
                        {
                            RS6Menu.smethod_5(num, Settings.Default.lrsensX, Settings.Default.lrsensY, Settings.Default.lrfire);
                        }
                    }
                }
            }
            if (flag && !Class6.smethod_2(Keys.LButton))
            {
                flag = false;
            }
            Thread.Sleep(5);
            continue;
IL_284:
            if (RS6Menu.int_9 == 999)
            {
                foreach (VirtualKeyCode virtualKeyCode4 in list)
                {
                    RS6Menu.inputManager_0.UnregisterEvent(virtualKeyCode4, new InputManager.KeyStateChangedEventHandler(this.method_9));
                }
                this.bool_0 = false;
                if (num != RS6Menu.int_12)
                {
                    num = RS6Menu.int_12;
                }
                RS6Menu.smethod_6(num, 0, 0);
                Thread.Sleep(5);
                return;
            }
            RS6Menu.int_10 = RS6Menu.int_9;
            RS6Menu.smethod_0();
            goto IL_2A4;
        }
    }