Esempio n. 1
0
 public ValueEntry(HackID id, string displayName, double max, double min) : base(id, displayName)
 {
     this.min = min;
     this.max = max;
 }
Esempio n. 2
0
 public ValueEntry(HackID id, string displayName, double max, double min, double step, double init) : this(id, displayName, max, min, step)
 {
     this.val = init;
 }
Esempio n. 3
0
 public ValueEntry(HackID id, string displayName, double max, double min, double step) : this(id, displayName, max, min)
 {
     this.step = step;
 }
Esempio n. 4
0
        public void runHack(Entry entry)
        {
            Entry  e = entry;
            HackID h = e.getID();

            IsGameRunning();

            if (e is ToggleEntry)
            {
                ToggleEntry tEnt = e as ToggleEntry;

                switch (h)
                {
                case HackID.GODMODE:
                    enableGod = tEnt.state;
                    if (tEnt.state)
                    {
                        startGodThread();
                    }
                    else
                    {
                        godTrRunning = false;
                    }
                    setGodmode(enableGod);
                    mRef.showInfo((tEnt.state ? "Enabled" : "Disabled") + " Godmode!");
                    break;

                case HackID.OTR:
                    setHealth(tEnt.state);
                    mRef.showInfo((tEnt.state ? "Enabled" : "Disabled") + " Off the Radar!");
                    break;

                case HackID.FIRERATE:
                    setRapidfire(tEnt.state);
                    tEnt.toggle();
                    mRef.showInfo("Activated Rapid Fire for Held Weapon!");
                    break;

                case HackID.NEVERWANTED:
                    if (tEnt.state)
                    {
                        startWantedLevelThread();
                    }
                    else
                    {
                        wantedTrRunning = false;
                    }
                    mRef.showInfo((tEnt.state ? "Enabled" : "Disabled") + " Never Wanted!");
                    break;

                case HackID.CARGOD:
                    if (tEnt.state)
                    {
                        startCarThread();
                    }
                    carGod = tEnt.state;
                    setCargod(carGod);
                    mRef.showInfo((tEnt.state ? "Enabled" : "Disabled") + " Cargod!");
                    break;

                case HackID.SPREAD:
                    setSpread(tEnt.state);
                    tEnt.toggle();
                    mRef.showInfo("Disabled Spread for Held Weapon!");
                    break;

                case HackID.RECOIL:
                    setRecoil(tEnt.state);
                    tEnt.toggle();
                    mRef.showInfo("Disabled Recoil for Held Weapon!");
                    break;

                case HackID.SEATBELT:
                    if (tEnt.state)
                    {
                        startCarThread();
                    }
                    seatbelt = tEnt.state;
                    setSeatbelt(seatbelt);
                    mRef.showInfo((tEnt.state ? "Enabled" : "Disabled") + " Seatbelt");
                    break;

                case HackID.INFAMMO:
                    setAmmo(tEnt.state);
                    setClip(tEnt.state);
                    mRef.showInfo((tEnt.state ? "Enabled" : "Disabled") + " Infinite Ammo");
                    break;

                case HackID.SUPERJUMP:
                    if (tEnt.state)
                    {
                        startCheatThread();
                    }
                    superJump = tEnt.state;
                    mRef.showInfo((tEnt.state ? "Enabled" : "Disabled") + " Super Jump");
                    break;

                case HackID.EXPLOSIVEAMMO:
                    if (tEnt.state)
                    {
                        startCheatThread();
                    }
                    explosiveAmmo = tEnt.state;
                    mRef.showInfo((tEnt.state ? "Enabled" : "Disabled") + " Explosive Ammo");
                    break;

                case HackID.DUMMY:
                    mRef.showInfo("DUMMY TRIGGERED REPORT TO DEV!");
                    break;

                default:
                    break;
                }
            }
            else
            {
                ValueEntry valEnt = e as ValueEntry;

                switch (h)
                {
                case HackID.WANTEDLVL:
                    setWanted((int)valEnt.val);
                    break;

                case HackID.SPRINT:
                    setSprint((int)valEnt.val);
                    break;

                case HackID.SWIM:
                    setSwim((int)valEnt.val);
                    break;

                case HackID.ACCELERATION:
                    startCarThread();
                    targetAcceleration = (int)valEnt.val;
                    break;

                case HackID.GRAVITY:
                    startCarThread();
                    double v = defaultGravity * valEnt.val;
                    targetGravity = (float)v;
                    break;

                default:
                    break;
                }
            }
        }
Esempio n. 5
0
 public Entry(HackID id, string displayName)
 {
     this.hackID      = id;
     this.displayName = displayName;
 }
Esempio n. 6
0
 public ToggleEntry(HackID id, string displayName) : base(id, displayName)
 {
 }