コード例 #1
0
ファイル: Form1.cs プロジェクト: Comraden/SAMP-Hack
 private void Heal(bool flag)
 {
     if (flag == true)
     {
         vam.WriteFloat((IntPtr)aHealth, 100f);
     }
 }
コード例 #2
0
        private void BloodlossInjuries_Click(object sender, EventArgs e)
        {
            VAMemory heal = new VAMemory(processName);

            heal.WriteFloat((IntPtr)Offset98 + 0x3f0, 0);

            heal.WriteFloat((IntPtr)Offset98 + 0x3ec, 0);
        }
コード例 #3
0
        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            float value = (float)double.Parse(textBox1.Text);

            int   LocalPlayer = vam.ReadInt32((IntPtr)BASE);
            float z_teleport  = LocalPlayer + z;

            vam.WriteFloat((IntPtr)z_teleport, value);
        }
コード例 #4
0
ファイル: Character.cs プロジェクト: ShA-FR/ReduXBDO
 private void bunifuSwitch3_Click(object sender, EventArgs e)
 {
     if (bunifuSwitch3.Value == true)
     {
         vam.WriteFloat(MaxZoom, 5000);
     }
     else if (bunifuSwitch3.Value == false)
     {
         vam.WriteFloat(MaxZoom, 900);
     }
 }
コード例 #5
0
ファイル: Program.cs プロジェクト: vladiator26/CSGOHack
        static void DrawGlow(int index, GlowStruct glow)
        {
            int obj = memory.ReadInt32((IntPtr)(module + Offsets.dwGlowObjectManager));

            memory.WriteFloat((IntPtr)(obj + (index * 0x38) + 4), glow.r);
            memory.WriteFloat((IntPtr)(obj + (index * 0x38) + 8), glow.g);
            memory.WriteFloat((IntPtr)(obj + (index * 0x38) + 12), glow.b);
            memory.WriteFloat((IntPtr)(obj + (index * 0x38) + 0x10), 255 / 100f);
            memory.WriteBoolean((IntPtr)(obj + (index * 0x38) + 0x24), glow.rwo);
            memory.WriteBoolean((IntPtr)(obj + (index * 0x38) + 0x25), glow.rwuo);
        }
コード例 #6
0
        private void BlinkCheckbox_CheckedChanged(object sender, EventArgs e)
        {
            VAMemory blink = new VAMemory(processName);

            if (BlinkCheckbox.Checked)
            {
                blink.WriteFloat((IntPtr)Offset98 + 0x390, 10000);
                blink.WriteFloat((IntPtr)Offset98 + 0x38c, 0);
            }
            else
            {
                blink.WriteFloat((IntPtr)Offset98 + 0x390, 0);
            }
        }
コード例 #7
0
        private void CamerafogCheckbox_CheckedChanged(object sender, EventArgs e)
        {
            VAMemory fog = new VAMemory(processName);

            if (CamerafogCheckbox.Checked)
            {
                fog.WriteFloat((IntPtr)Offset98 + 0xb68, 10000);
                fog.WriteFloat((IntPtr)Offset98 + 0xb90, 10000);
            }
            else
            {
                fog.WriteFloat((IntPtr)Offset98 + 0xb68, 0.5f);
                fog.WriteFloat((IntPtr)Offset98 + 0xb90, 6);
            }
        }
コード例 #8
0
ファイル: Form1.cs プロジェクト: r00terAF18/GTA_SA-Hack
        private void Timer1_Tick(object sender, EventArgs e)
        {
            try
            {
                checkGame();
                if (gameOn)
                {
                    // start memory object and calculate values
                    vam                 = new VAMemory(procName);                                              // initilize a Memory reader object
                    baseAddress         = (int)Process.GetProcessesByName(procName)[0].MainModule.BaseAddress; // get the Base Address, which we use to get all the other addresses
                    playerBaseAddress   = vam.ReadInt32((IntPtr)baseAddress + playerAddress);                  // the player base address is basically the starting point
                    playerHealthAddress = playerBaseAddress + playerHealthOffset;                              // the player health address is calculated by adding the health offset to the player Base Address

                    //check if any checkbox is checked
                    if (godMode.Checked == true)
                    {
                        vam.WriteFloat((IntPtr)playerHealthAddress, 100); // write to the memory the value 100, so in another words 'unlimited health'
                    }
                }
                else
                {
                }
            }
            catch (Exception)
            {
                throw;
            }
            GC.Collect();
        }
コード例 #9
0
        public bool calcang2(int playerIndex, Vector3 src, Vector3 dst, VAMemory vam, int bClient, int bEngine, float currentFov, int currentThing, float smoothing, Form1 form)
        {
            Angles MyPunch = GetPunch(playerIndex, vam, bClient);

            double[] delta     = { (src.x - dst.x), (src.y - dst.y), (src.z - (dst.z)) };
            double   hyp       = Math.Sqrt(delta[0] * delta[0] + delta[1] * delta[1]);
            float    y         = (float)(Math.Atan(delta[1] / delta[0]) * 180 / Math.PI) - MyPunch.y * 2f;
            float    x         = (float)(Math.Atan2(delta[2], hyp) * 180 / Math.PI) - MyPunch.x * 2f;
            Angles   setAngles = new Angles(x, y);
            float    fov       = currentFov;

            if (delta[0] >= 0.0)
            {
                setAngles.y += 180.0f;
            }
            float hisFov = getFov(setAngles, src, dst, vam, bEngine, playerIndex, bClient);

            Console.WriteLine(hisFov);
            if (hisFov < fov || form.rageBot)
            {
                Point aimAt = new Point();
                if (form.legitBot)
                {
                    WorldToScreen(dst, ref aimAt, vam, getMatrixFloats2(form.csgo, bClient), form.t);
                    previous = MyPunch;
                    if (aimAt.x > 0 && aimAt.x < form.t.Right && aimAt.y > 0 && aimAt.y < form.t.Bottom)
                    {
                        moveMouse((int)(aimAt.x), (int)(aimAt.y), form.smoothing, form.t);
                        return(true);
                    }
                }
                else if (form.rageBot && (hisFov < fov || !form.careAboutFovInRage))
                {
                    setAngles = NormaliseViewAngle(setAngles.ToVector(), getCurrentAngles(vam, bEngine).ToVector()).ToAngles();
                    vam.WriteFloat((IntPtr)(vam.ReadInt32((IntPtr)(bEngine + Offsets.oClientState)) + Offsets.oViewAngles), setAngles.x);
                    vam.WriteFloat((IntPtr)(vam.ReadInt32((IntPtr)(bEngine + Offsets.oClientState)) + Offsets.oViewAngles + 4), setAngles.y);
                    return(true);
                }
            }
            return(false);
        }
コード例 #10
0
        private static void NFMain()
        {
            while (true)
            {
                int SPLR = mem.ReadInt32((IntPtr)BaseAddress + Offsets.LP);

                float FLA = SPLR + Offsets.FLA;

                if (mem.ReadFloat((IntPtr)FLA) > 0f)
                {
                    mem.WriteFloat((IntPtr)FLA, 0f);
                }
            }
        }
コード例 #11
0
        public static void ToggleBrightness()
        {
            //Search for float. If brightness is 66 than the float will be between .66 and .68
            //036542E8 20 C10 B0 138 F0
            int staticPointerOffset = 0x036542E8;

            int[] offsets = new int[] { 0x20, 0xC10, 0xB0, 0x138, 0xF0 };

            // while (true)
            // {
            var pointer = FindPointer(baseAddress, staticPointerOffset, offsets);
            var value   = vam.ReadFloat(pointer);

            Console.WriteLine(value);
            if (value > 1)
            {
                vam.WriteFloat(pointer, 1);
                return;
            }
            vam.WriteFloat(pointer, 15);


            // }
        }
コード例 #12
0
    /// <summary>The main entry point for the application.</summary>
    static void Main(string[] args)
    {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        var f = new Form1();

        f.Show();
        VAMemory vam         = new VAMemory("ac_client");
        int      localplayer = vam.ReadInt32((IntPtr)Pbase);

        while (f.Visible)                 //loop while form is not closed
        {
            int   address = localplayer + fly;
            float aimlock = vam.ReadFloat((IntPtr)address);
            vam.WriteFloat((IntPtr)address, -5);
            address = localplayer + Health;
            vam.WriteInt32((IntPtr)address, 1337);
            address = localplayer + mgammo;
            vam.WriteInt32((IntPtr)address, +1337);
            Application.DoEvents();                      //Yield control to the message loop
        }
    }
コード例 #13
0
ファイル: Form1.cs プロジェクト: 0ESTOPA0/MinionMaster
        private float SetHealth(VAMemory vMemory, int healthFinalAddress, float healthOriginal)
        {
            float health = vMemory.ReadFloat((IntPtr)healthFinalAddress + 0x18); // 808 // 288

            Invoke(new Action(() =>
            {
                lblHealth.Text = health.ToString();
            }));
            if (chkHealth.Checked)
            {
                if (health > healthOriginal)
                {
                    healthOriginal = health;
                }

                vMemory.WriteFloat((IntPtr)healthFinalAddress + 0x18, healthOriginal); // 808 // 288
            }
            else
            {
                healthOriginal = health;
            }

            return(healthOriginal);
        }
コード例 #14
0
ファイル: Form1.cs プロジェクト: xericf/zilchcheats
        public void AimBot()
        {
            if (d.eAim && GetAsyncKeyState(d.keyAim) != 0)
            {
                Vector pPosition = GetPlayerPosition();

                Vector ePosition = GetClosestEnemyFOV(pPosition);

                if (ePosition.x != 6969f)
                {
                    Angle aimAt = CalcAngle(pPosition, ePosition);


                    if (!float.IsNaN(aimAt.x) && !float.IsNaN(aimAt.y))
                    {
                        Angle newAim = NormalizeAngle(aimAt);
                        vam.WriteFloat((IntPtr)d.aViewAngle, newAim.x);
                        vam.WriteFloat((IntPtr)d.aViewAngle + 0x4, newAim.y);
                    }
                }
            }
        }
コード例 #15
0
ファイル: Class1.cs プロジェクト: yuchenhecs/csgo_hack
        static void WallHack()
        {
            VAMemory vam = new VAMemory(process);

            int address;
            int i = 1;
            int Player;
            int MyTeam;
            int EntityList;
            int HisTeam;
            int GlowIndex;
            int GlowObject;
            int calculation;
            int current;

            if (GetModuleAddy())
            {
                while (true)
                {
                    i = 1;

                    do
                    {
                        address = Client + Offsets.oLocalPlayer;
                        Player  = vam.ReadInt32((IntPtr)address);

                        address = Player + Offsets.oTeam;
                        MyTeam  = vam.ReadInt32((IntPtr)address);
                        //int MyTeam = 2;

                        address    = Client + Offsets.oEntityList + (i - 1) * 0x10;
                        EntityList = vam.ReadInt32((IntPtr)address);

                        address = EntityList + Offsets.oTeam;
                        HisTeam = vam.ReadInt32((IntPtr)address);

                        address = EntityList + Offsets.oDormat;
                        if (!vam.ReadBoolean((IntPtr)address))
                        {
                            address = EntityList + Offsets.oGlowIndex;

                            GlowIndex = vam.ReadInt32((IntPtr)address);

                            if (MyTeam == HisTeam)
                            {
                                address    = Client + Offsets.oGlowObject;
                                GlowObject = vam.ReadInt32((IntPtr)address);

                                calculation = GlowIndex * 0x38 + 0x4;
                                current     = GlowObject + calculation;
                                vam.WriteFloat((IntPtr)current, rTeam);

                                calculation = GlowIndex * 0x38 + 0x8;
                                current     = GlowObject + calculation;
                                vam.WriteFloat((IntPtr)current, gTeam);

                                calculation = GlowIndex * 0x38 + 0xC;
                                current     = GlowObject + calculation;
                                vam.WriteFloat((IntPtr)current, bTeam);

                                calculation = GlowIndex * 0x38 + 0x10;
                                current     = GlowObject + calculation;
                                vam.WriteFloat((IntPtr)current, aTeam);

                                calculation = GlowIndex * 0x38 + 0x24;
                                current     = GlowObject + calculation;
                                vam.WriteBoolean((IntPtr)current, rwoTeam);

                                calculation = GlowIndex * 0x38 + 0x25;
                                current     = GlowObject + calculation;
                                vam.WriteBoolean((IntPtr)current, rwuoTeam);
                            }
                            else
                            {
                                address    = Client + Offsets.oGlowObject;
                                GlowObject = vam.ReadInt32((IntPtr)address);

                                calculation = GlowIndex * 0x38 + 0x4;
                                current     = GlowObject + calculation;
                                vam.WriteFloat((IntPtr)current, rEnemy);

                                calculation = GlowIndex * 0x38 + 0x8;
                                current     = GlowObject + calculation;
                                vam.WriteFloat((IntPtr)current, gEnemy);

                                calculation = GlowIndex * 0x38 + 0xC;
                                current     = GlowObject + calculation;
                                vam.WriteFloat((IntPtr)current, bEnemy);

                                calculation = GlowIndex * 0x38 + 0x10;
                                current     = GlowObject + calculation;
                                vam.WriteFloat((IntPtr)current, aEnemy);

                                calculation = GlowIndex * 0x38 + 0x24;
                                current     = GlowObject + calculation;
                                vam.WriteBoolean((IntPtr)current, rwoEnemy);

                                calculation = GlowIndex * 0x38 + 0x25;
                                current     = GlowObject + calculation;
                                vam.WriteBoolean((IntPtr)current, rwuoEnemy);
                            }
                        }
                        i++;
                    } while (i < 21);

                    Thread.Sleep(30);
                }
            }
        }
コード例 #16
0
 public void writeValueFloat(IntPtr address, float x)
 {
     vam.WriteFloat(address, x);
 }
コード例 #17
0
        private void KillButton_Click(object sender, EventArgs e)
        {
            VAMemory kill = new VAMemory(processName);

            kill.WriteFloat((IntPtr)Offset98 + 0x3f0, 100);
        }
コード例 #18
0
        private void GammaSetButton_Click(object sender, EventArgs e)
        {
            VAMemory gamma = new VAMemory(processName);

            gamma.WriteFloat((IntPtr)Offset98 + 0xb4, float.Parse(GammaTextBox.Text));
        }
コード例 #19
0
ファイル: Glow.cs プロジェクト: wilddev0/schabowychuju
        public static void AllSeeingEyes()
        {
            if (MainClass.GetIfProcessIsRunning())
            {
                while (true && isGlowing)
                {
                    VAMemory      mem           = new VAMemory(MainClass.injProc);
                    GlowStructure NeighbourTeam = new GlowStructure()
                    {
                        r = float.Parse(ConfigurationSettings.AppSettings["TeamGlowColorR"]),
                        g = float.Parse(ConfigurationSettings.AppSettings["TeamGlowColorG"]),
                        b = float.Parse(ConfigurationSettings.AppSettings["TeamGlowColorB"]),
                        a = float.Parse(ConfigurationSettings.AppSettings["TeamGlowColorA"]),
                    };
                    GlowStructure NiggersTeam = new GlowStructure()
                    {
                        r = float.Parse(ConfigurationSettings.AppSettings["EnemyGlowColorR"]),
                        g = float.Parse(ConfigurationSettings.AppSettings["EnemyGlowColorG"]),
                        b = float.Parse(ConfigurationSettings.AppSettings["EnemyGlowColorB"]),
                        a = float.Parse(ConfigurationSettings.AppSettings["EnemyGlowColorA"]),
                    };
                    do
                    {
                        if (iterator > 10)
                        {
                            iterator = 0;
                        }
                        else
                        {
                            iterator = iterator + 1;
                        }

                        int ALP = BaseAdress + Offsets.LP;

                        int SP = mem.ReadInt32((IntPtr)ALP);

                        int ASPT = SP + Offsets.T;

                        int HomieTeam = mem.ReadInt32((IntPtr)ASPT);

                        int AEL = BaseAdress + Offsets.EL + iterator * 0x10;

                        int EL = mem.ReadInt32((IntPtr)AEL);

                        int NiggerHealth = mem.ReadInt32((IntPtr)EL + Offsets.H);

                        int ANiggerTeam = EL + Offsets.T;

                        int NiggerTeam = mem.ReadInt32((IntPtr)ANiggerTeam);

                        int DormantStatus = EL + Offsets.D;

                        IsDormant = mem.ReadBoolean((IntPtr)DormantStatus);
                        if (!IsDormant)
                        {
                            currentaddress = EL + Offsets.GI;

                            int Glow = mem.ReadInt32((IntPtr)currentaddress);

                            if (HomieTeam == NiggerTeam && ConfigurationSettings.AppSettings["GlowTeamMates"] == "true")
                            {
                                currentaddress = BaseAdress + Offsets.GOM;
                                int GObject = mem.ReadInt32((IntPtr)currentaddress);

                                int result = Glow * 0x38 + 0x4;

                                int currentObj = GObject + result;
                                mem.WriteFloat((IntPtr)currentObj, NeighbourTeam.r);

                                result     = Glow * 0x38 + 0x8;
                                currentObj = GObject + result;
                                mem.WriteFloat((IntPtr)currentObj, NeighbourTeam.g);

                                result     = Glow * 0x38 + 0xC;
                                currentObj = GObject + result;
                                mem.WriteFloat((IntPtr)currentObj, NeighbourTeam.b);

                                result     = Glow * 0x38 + 0x10;
                                currentObj = GObject + result;
                                mem.WriteFloat((IntPtr)currentObj, NeighbourTeam.a);

                                result     = Glow * 0x38 + 0x24;
                                currentObj = GObject + result;
                                mem.WriteBoolean((IntPtr)currentObj, true);

                                result     = Glow * 0x38 + 0x25;
                                currentObj = GObject + result;
                                mem.WriteBoolean((IntPtr)currentObj, true);
                            }
                            else if (HomieTeam != NiggerTeam && ConfigurationSettings.AppSettings["GlowEnemies"] == "true")
                            {
                                currentaddress = BaseAdress + Offsets.GOM;
                                int GObject = mem.ReadInt32((IntPtr)currentaddress);

                                int result = Glow * 0x38 + 0x4;

                                int currentObj = GObject + result;

                                if (ConfigurationSettings.AppSettings["EnemyGlowColorDependsOnHealth"] == "true")
                                {
                                    if (NiggerHealth <= 100 && NiggerHealth > 75)
                                    {
                                        NiggersTeam.r = 0;
                                        NiggersTeam.g = 1;
                                        NiggersTeam.b = 0;
                                        NiggersTeam.a = 1;
                                    }
                                    else if (NiggerHealth <= 75 && NiggerHealth > 50)
                                    {
                                        NiggersTeam.r = 255;
                                        NiggersTeam.g = 255;
                                        NiggersTeam.b = 0;
                                        NiggersTeam.a = 1;
                                    }
                                    else if (NiggerHealth <= 50 && NiggerHealth > 25)
                                    {
                                        NiggersTeam.r = 255;
                                        NiggersTeam.g = 153;
                                        NiggersTeam.b = 0;
                                        NiggersTeam.a = 1;
                                    }
                                    else if (NiggerHealth <= 25 && NiggerHealth > 0)
                                    {
                                        NiggersTeam.r = 1;
                                        NiggersTeam.g = 0;
                                        NiggersTeam.b = 0;
                                        NiggersTeam.a = 1;
                                    }
                                }

                                mem.WriteFloat((IntPtr)currentObj, NiggersTeam.r);

                                result     = Glow * 0x38 + 0x8;
                                currentObj = GObject + result;
                                mem.WriteFloat((IntPtr)currentObj, NiggersTeam.g);

                                result     = Glow * 0x38 + 0xC;
                                currentObj = GObject + result;
                                mem.WriteFloat((IntPtr)currentObj, NiggersTeam.b);

                                result     = Glow * 0x38 + 0x10;
                                currentObj = GObject + result;
                                mem.WriteFloat((IntPtr)currentObj, NiggersTeam.a);

                                result     = Glow * 0x38 + 0x24;
                                currentObj = GObject + result;
                                mem.WriteBoolean((IntPtr)currentObj, true);

                                result     = Glow * 0x38 + 0x25;
                                currentObj = GObject + result;
                                mem.WriteBoolean((IntPtr)currentObj, true);
                            }
                        }
                    }while (true && isGlowing);
                }
            }
        }
        void noflash()
        {
            int localPlayer = vam.ReadInt32((IntPtr)bClient + Offsets.oLocalPlayer);

            if (noflashtoggle)
            {
                if (vam.ReadFloat((IntPtr)localPlayer + Offsets.oFlashMaxAlpha) > 0.0f)
                {
                    vam.WriteFloat((IntPtr)localPlayer + Offsets.oFlashMaxAlpha, 0.0f);
                }
            }
            else if (vam.ReadFloat((IntPtr)localPlayer + Offsets.oFlashMaxAlpha) < 0f + float.Epsilonh)
            {
                vam.WriteFloat((IntPtr)localPlayer + Offsets.oFlashMaxAlpha, 255.0f);
            }
        }
コード例 #21
0
ファイル: Program.cs プロジェクト: BageeR30/CSgloww
        static void Main(string[] args)
        {
            var handle = GetConsoleWindow();

            // Hide
            ShowWindow(handle, SW_HIDE);

            // Show
            //ShowWindow(handle, SW_SHOW);

            GlowStruct Enemy = new GlowStruct()
            {
                r    = 1,
                g    = 0,
                b    = 0,
                a    = 0.8f,
                rwo  = true,
                rwuo = false
            };
            GlowStruct Team = new GlowStruct()
            {
                r    = 0,
                g    = 0,
                b    = 1,
                a    = 0.6f,
                rwo  = true,
                rwuo = false
            };
            Player MyPlayer = new Player();
            Player player   = new Player();

            Thread mythread   = new Thread(TriggrerbotThread);
            Thread BHopThread = new Thread(BHop);
            Thread menuThread = new Thread(MenuThread);

            menuThread.Start();

            if (GetModuleAddy())
            {
                int address;
                address = client + oLocalPlayer;
                int lPlayer = vam.ReadInt32((IntPtr)address);

                //  address = client + hazedumper.signatures.force_update_spectator_glow; //0xEB
                //  vam.WriteByte((IntPtr)address, 0xEB);
                BHopThread.Start();
                mythread.Start();

                while (true)
                {
                    //address = client + hazedumper.signatures.force_update_spectator_glow; //0xEB
                    // vam.WriteByte((IntPtr)address, 0xEB);

                    address = client + oGlowObject;
                    int GlowObject = vam.ReadInt32((IntPtr)address);

                    address += 0xC;
                    int objectCount = vam.ReadInt32((IntPtr)address);

                    int i = 1;
                    do
                    {
                        address = client + oEntityList + (i - 1) * 0x10;
                        int EntityList = vam.ReadInt32((IntPtr)address);

                        //Console.WriteLine(EntityList);
                        if (EntityList != 0 && checkBoxGlow)
                        {
                            player   = GetMyPlayerInfo(EntityList);
                            MyPlayer = GetMyPlayerInfo(lPlayer);

                            if (MyPlayer.Team != player.Team && checkBoxSpotted)
                            {
                                vam.WriteBoolean((IntPtr)(EntityList + hazedumper.netvars.m_bSpotted), true);
                            }

                            address = EntityList + oDormant;
                            if (!vam.ReadBoolean((IntPtr)address))
                            {
                                address = EntityList + oGlowIndex;

                                int GlowIndex = vam.ReadInt32((IntPtr)address);

                                if (MyPlayer.Team == player.Team)
                                {
                                    if (!checkBoxOnlyEnemy)
                                    {
                                        int calculation = GlowIndex * 0x38 + 0x4;
                                        int current     = GlowObject + calculation;
                                        vam.WriteFloat((IntPtr)current, Team.r);

                                        calculation = GlowIndex * 0x38 + 0x8;
                                        current     = GlowObject + calculation;
                                        vam.WriteFloat((IntPtr)current, Team.g);

                                        calculation = GlowIndex * 0x38 + 0xC;
                                        current     = GlowObject + calculation;
                                        vam.WriteFloat((IntPtr)current, Team.b);

                                        calculation = GlowIndex * 0x38 + 0x10;
                                        current     = GlowObject + calculation;
                                        vam.WriteFloat((IntPtr)current, ally.a);

                                        calculation = GlowIndex * 0x38 + 0x24;
                                        current     = GlowObject + calculation;
                                        vam.WriteBoolean((IntPtr)current, Team.rwo);

                                        calculation = GlowIndex * 0x38 + 0x25;
                                        current     = GlowObject + calculation;
                                        vam.WriteBoolean((IntPtr)current, Team.rwuo);
                                    }
                                }
                                else
                                {
                                    int calculation = GlowIndex * 0x38 + 0x4;
                                    int current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Enemy.r);

                                    calculation = GlowIndex * 0x38 + 0x8;
                                    current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Enemy.g);

                                    calculation = GlowIndex * 0x38 + 0xC;
                                    current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Enemy.b);

                                    calculation = GlowIndex * 0x38 + 0x10;
                                    current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, enemy.a);

                                    calculation = GlowIndex * 0x38 + 0x24;
                                    current     = GlowObject + calculation;
                                    vam.WriteBoolean((IntPtr)current, Enemy.rwo);

                                    calculation = GlowIndex * 0x38 + 0x25;
                                    current     = GlowObject + calculation;
                                    vam.WriteBoolean((IntPtr)current, Enemy.rwuo);
                                }
                            }
                        }
                        i++;
                        //address = client + hazedumper.signatures.force_update_spectator_glow; //0xEB
                        //vam.WriteByte((IntPtr)address, 0xEB);
                    }while (i < objectCount);

                    Thread.Sleep(1);

                    // address =  client + netvars.
                    //  int localbase = vam.ReadInt32((IntPtr)address);
                }
            }
            Console.WriteLine("Press enter to close...");
            Console.ReadLine();
        }
コード例 #22
0
        private static IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam)
        {
            if (!Vam.CheckProcess())
            {
                UnhookWindowsHookEx(_hookID);
                Environment.Exit(0);
            }

            if (nCode >= 0 && wParam == (IntPtr)WM_KEYDOWN)
            {
                int vkCode = Marshal.ReadInt32(lParam);
                if (vkCode == (int)KeyDefinitions.F1 || vkCode == (int)KeyDefinitions.F2 || vkCode == (int)KeyDefinitions.F3 ||
                    vkCode == (int)KeyDefinitions.F4)
                {
                    int baseAddressX  = Vam.ReadInt32((IntPtr)(Vam.getBaseAddress + 0x00383200));
                    int offsetsAddedX = Vam.ReadInt32((IntPtr)baseAddressX + 0x0);
                    offsetsAddedX = Vam.ReadInt32((IntPtr)offsetsAddedX + 0x10);
                    float x = Vam.ReadFloat((IntPtr)offsetsAddedX + 0x40);

                    int   baseAddressY  = Vam.ReadInt32((IntPtr)(Vam.getBaseAddress + 0x00386AE0));
                    int   offsetsAddedY = Vam.ReadInt32((IntPtr)baseAddressY + 0x0);
                    float y             = Vam.ReadFloat((IntPtr)offsetsAddedY + 0x44);

                    int baseAddressZ  = Vam.ReadInt32((IntPtr)(Vam.getBaseAddress + 0x00383200));
                    int offsetsAddedZ = Vam.ReadInt32((IntPtr)baseAddressZ + 0x10);
                    offsetsAddedZ = Vam.ReadInt32((IntPtr)offsetsAddedZ + 0x18);
                    offsetsAddedZ = Vam.ReadInt32((IntPtr)offsetsAddedZ + 0x10);
                    float z = Vam.ReadFloat((IntPtr)offsetsAddedZ + 0x48);

                    Form1 form = (Form1)Application.OpenForms["Form1"];

                    if (vkCode == (int)KeyDefinitions.F1 || vkCode == (int)KeyDefinitions.F3)
                    {
                        if (vkCode == (int)KeyDefinitions.F1)
                        {
                            form.label10.Text = x.ToString();
                            form.label11.Text = y.ToString();
                            form.label12.Text = z.ToString();
                        }
                        else if (vkCode == (int)KeyDefinitions.F3)
                        {
                            form.label13.Text = x.ToString();
                            form.label14.Text = y.ToString();
                            form.label15.Text = z.ToString();
                        }
                    }
                    else if (vkCode == (int)KeyDefinitions.F2 || vkCode == (int)KeyDefinitions.F4)
                    {
                        if (vkCode == (int)KeyDefinitions.F2)
                        {
                            Vam.WriteFloat((IntPtr)offsetsAddedX + 0x40, float.Parse(form.label10.Text));
                            Vam.WriteFloat((IntPtr)offsetsAddedY + 0x44, float.Parse(form.label11.Text));
                            Vam.WriteFloat((IntPtr)offsetsAddedZ + 0x48, float.Parse(form.label12.Text));
                        }
                        else
                        {
                            Vam.WriteFloat((IntPtr)offsetsAddedX + 0x40, float.Parse(form.label13.Text));
                            Vam.WriteFloat((IntPtr)offsetsAddedY + 0x44, float.Parse(form.label14.Text));
                            Vam.WriteFloat((IntPtr)offsetsAddedZ + 0x48, float.Parse(form.label15.Text));
                        }
                    }
                }
            }
            return(CallNextHookEx(_hookID, nCode, wParam, lParam));
        }
コード例 #23
0
 public void toggleArmsVisible()
 {
     armsHidden = !armsHidden;
     if (armsHidden)
     {
         vam.WriteFloat(BaseArmsRotY, -180);
     }
     if (!armsHidden)
     {
         vam.WriteFloat(BaseArmsRotY, 0);
     }
     ui.SetText(ui.btnHideArms, armsHidden ? "Hide Arms (On)" : "Hide Arms (Off)");
 }
コード例 #24
0
        public void GlowIt()
        {
            GlowStruct colorsE = new GlowStruct()
            {
                r    = 255.0f,
                g    = 0f,
                b    = 0f,
                a    = 122.5f,
                rwo  = true,
                rwuo = false
            };
            GlowStruct colorsT = new GlowStruct()
            {
                r    = 0f,
                g    = 103.0f,
                b    = 221.0f,
                a    = 122.5f,
                rwo  = true,
                rwuo = false
            };

            while (true)
            {
                if (wallCHCK.Checked)
                {
                    GameState = mem.ReadInt32((IntPtr)EngineBase + Offsets.OffsetList.GameState);
                    if (GameState == 6)
                    {
                        Classes.Global_Functions.Wait(100);
                        int i = 1;
                        do
                        {
                            int MyTeam     = mem.ReadInt32((IntPtr)LocalBase + Offsets.OffsetList.Team);
                            int EntityList = mem.ReadInt32((IntPtr)ClientAdress + Offsets.OffsetList.EntityList + (i - 1) * 0x10);
                            int HisTeam    = mem.ReadInt32((IntPtr)EntityList + Offsets.OffsetList.Team);
                            if (!mem.ReadBoolean((IntPtr)EntityList + Offsets.OffsetList.Dormant))
                            {
                                if (MyTeam != HisTeam)
                                {
                                    int GlowIndex  = mem.ReadInt32((IntPtr)EntityList + Offsets.OffsetList.GlowIndex);
                                    int GlowObject = mem.ReadInt32((IntPtr)ClientAdress + Offsets.OffsetList.GlowObject);
                                    mem.WriteByte((IntPtr)EntityList + 0x70, (byte)colorsE.r);
                                    mem.WriteByte((IntPtr)EntityList + 0x71, (byte)colorsE.g);
                                    mem.WriteByte((IntPtr)EntityList + 0x72, (byte)colorsE.b);
                                    mem.WriteFloat((IntPtr)GlowObject + (GlowIndex * 0x38 + 0x4), colorsE.r);
                                    mem.WriteFloat((IntPtr)GlowObject + (GlowIndex * 0x38 + 0x8), colorsE.g);
                                    mem.WriteFloat((IntPtr)GlowObject + (GlowIndex * 0x38 + 0xC), colorsE.b);
                                    mem.WriteFloat((IntPtr)GlowObject + (GlowIndex * 0x38 + 0x10), colorsE.a);
                                    mem.WriteBoolean((IntPtr)GlowObject + (GlowIndex * 0x38 + 0x24), true);
                                    mem.WriteBoolean((IntPtr)GlowObject + (GlowIndex * 0x38 + 0x2C), false);
                                }
                                if (MyTeam == HisTeam)
                                {
                                    int GlowIndex  = mem.ReadInt32((IntPtr)EntityList + Offsets.OffsetList.GlowIndex);
                                    int GlowObject = mem.ReadInt32((IntPtr)ClientAdress + Offsets.OffsetList.GlowObject);
                                    mem.WriteByte((IntPtr)EntityList + 0x70, (byte)colorsT.r);
                                    mem.WriteByte((IntPtr)EntityList + 0x71, (byte)colorsT.g);
                                    mem.WriteByte((IntPtr)EntityList + 0x72, (byte)colorsT.b);
                                    mem.WriteFloat((IntPtr)GlowObject + (GlowIndex * 0x38 + 0x4), colorsT.r);
                                    mem.WriteFloat((IntPtr)GlowObject + (GlowIndex * 0x38 + 0x8), colorsT.g);
                                    mem.WriteFloat((IntPtr)GlowObject + (GlowIndex * 0x38 + 0xC), colorsT.b);
                                    mem.WriteFloat((IntPtr)GlowObject + (GlowIndex * 0x38 + 0x10), colorsT.a);
                                    mem.WriteBoolean((IntPtr)GlowObject + (GlowIndex * 0x38 + 0x24), true);
                                    mem.WriteBoolean((IntPtr)GlowObject + (GlowIndex * 0x38 + 0x2C), false);
                                }
                            }
                            i++;
                        } while (i < 65);
                        int thisPtr = EngineBase + Offsets.OffsetList.ModelAmbientMin - 0x2c;
                        xorBase = Convert.ToInt32(255.0f) ^ thisPtr;
                        mem.WriteInt32((IntPtr)EngineBase + Offsets.OffsetList.ModelAmbientMin - 0x2c, xorBase);
                    }
                }
            }
        }
コード例 #25
0
ファイル: Jokin.cs プロジェクト: JokinAce/JokinsRewrite
 public void WriteFloat(int offsets, float value)
 {
     vam.WriteFloat((IntPtr)offsets, value);
 }
コード例 #26
0
        private void State008Button_Click(object sender, EventArgs e)
        {
            VAMemory S008 = new VAMemory(processName);

            S008.WriteFloat((IntPtr)Offset98 + 0x3f4, 0);
        }
コード例 #27
0
 public bool WriteFloat(IntPtr address, float value)
 {
     return(vam.WriteFloat(address, value));
     //return vam.WriteFloat(address, value);
 }
コード例 #28
0
        public void ExecCom(int CommNum)
        {
            //switch case to exectute command
            UInt32 BondPos = GetPly();

            switch (CommNum)
            {
            case (0):
            {
                DispText("Stripping ammo*");
                for (int i = 0; i < 116; i += 4)
                {
                    vam.WriteInt32((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x1130 + i), 0);
                }

                break;
            }

            case (1):
            {
                DispText("Giving ammo*");
                for (int i = 0; i < 116; i += 4)
                {
                    vam.WriteInt32((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x1130 + i), 5000);
                }
                break;
            }

            case (2):
            {
                DispText("Making the view terrible...*");
                vam.WriteInt32((IntPtr)(NearFog - 0x80000000 + EmuOffset), 0xE3);
                vam.WriteInt32((IntPtr)(FarFog - 0x80000000 + EmuOffset), 0x3E8);
                break;
            }

            case (3):
            {
                DispText("Camera locked*");
                vam.WriteFloat((IntPtr)(PlyYCam - 0x80000000 + EmuOffset), 0f);
                break;
            }

            case (4):
            {
                /*DispText("Launching!*");
                 * float CurY = vam.ReadFloat((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0xB));
                 * vam.WriteFloat((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x000D2FD0 - 0x000D2FFC +0x9C), CurY + 500f);*/
                //breaks in facility
                DispText("Making the guards stronger!*");
                int    AmmGuards   = vam.ReadInt32((IntPtr)(0x8002CC68 - 0x80000000 + EmuOffset));
                UInt32 GuardOffset = vam.ReadUInt32((IntPtr)(0x8002CC64 - 0x80000000 + EmuOffset));
                for (int i = 0; i < AmmGuards; i++)
                {
                    float OrigHealth = vam.ReadFloat((IntPtr)(GuardOffset - 0x80000000 + EmuOffset + 0x1DC * i));
                    vam.WriteFloat((IntPtr)(GuardOffset - 0x80000000 + EmuOffset + 0x1DC * i + 0x100), OrigHealth * 2);
                }
                break;
            }

            case (5):
            {
                DispText("Shrinking!*");
                vam.WriteFloat((IntPtr)(PlyHeight - 0x80000000 + EmuOffset), 0.02f);
                break;
            }

            case (6):
            {
                DispText("Stealing!*");
                float OldHealth = vam.ReadFloat((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x000D303C - 0x000D2FFC + 0x9C));
                vam.WriteFloat((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x000D303C - 0x000D2FFC + 0x9C), OldHealth / 2);
                vam.WriteInt32((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x2A00), 00);
                vam.WriteInt32((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x2A00), 0x3C * 5);
                break;
            }

            case (7):
            {
                DispText("Baboom!*");
                vam.WriteBoolean((IntPtr)(Explosions - 0x80000000 + EmuOffset), true);
                break;
            }

            case (8):
            {
                DispText("Wonkenizing!*");
                vam.WriteInt32((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x000D4124 - 0x000D2FFC + 0x9C), 0x800000);
                break;
            }

            case (9):
            {
                DispText("Healing!*");
                vam.WriteFloat((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x000D303C - 0x000D2FFC + 0x9C), 1);
                vam.WriteInt32((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x2A00), 00);
                vam.WriteInt32((IntPtr)(BondPos - 0x80000000 + EmuOffset + 0x2A00), 0x3C * 5);
                break;
            }

            case (10):
            {
                DispText("Speeding up!*");
                vam.WriteFloat((IntPtr)(PlyYCam - 0x80000000 + EmuOffset), 1f);
                break;
            }
            }
        }
コード例 #29
0
ファイル: Hack.cs プロジェクト: Lyceion/QWORD-Lite
        //
        //HACKS
        //
        public static void dwWallhack()
        {
            if (GetModuleAddress())
            {
                while (true)
                {
                    if (HackStats.wallhack_use)
                    {
                        GlowStruct Enemy = new GlowStruct()
                        {
                            r    = 1,
                            g    = 0,
                            b    = 0,
                            a    = 1f,
                            rwo  = true,
                            rwuo = true
                        };

                        GlowStruct Team = new GlowStruct()
                        {
                            r    = 1,
                            g    = 1,
                            b    = 1,
                            a    = 0.800f,
                            rwo  = true,
                            rwuo = true
                        };

                        int address;
                        int i = 1;

                        do
                        {
                            address = Client + signatures.dwLocalPlayer;

                            int Player = vam.ReadInt32((IntPtr)address);

                            address = Player + netvars.m_iTeamNum;
                            int MyTeam = vam.ReadInt32((IntPtr)address);

                            address = Client + signatures.dwEntityList + (i - 1) * 0x10;
                            int EntityList = vam.ReadInt32((IntPtr)address);

                            address = EntityList + netvars.m_iTeamNum;
                            int HisTeam = vam.ReadInt32((IntPtr)address);

                            address = EntityList + netvars.m_iDormant;

                            if (!vam.ReadBoolean((IntPtr)address))
                            {
                                address = EntityList + netvars.m_iGlowIndex;

                                int GlowIndex = vam.ReadInt32((IntPtr)address);

                                if (MyTeam == HisTeam)
                                {
                                    address = Client + signatures.dwGlowObject;
                                    int GlowObject = vam.ReadInt32((IntPtr)address);

                                    int calculation = GlowIndex * 0x38 + 0x4;
                                    int current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Team.r);

                                    calculation = GlowIndex * 0x38 + 0x8;
                                    current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Team.g);

                                    calculation = GlowIndex * 0x38 + 0xC;
                                    current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Team.b);

                                    calculation = GlowIndex * 0x38 + 0x10;
                                    current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Team.a);

                                    calculation = GlowIndex * 0x38 + 0x24;
                                    current     = GlowObject + calculation;
                                    vam.WriteBoolean((IntPtr)current, Team.rwo);

                                    calculation = GlowIndex * 0x38 + 0x25;
                                    current     = GlowObject + calculation;
                                    vam.WriteBoolean((IntPtr)current, Team.rwuo);
                                }
                                else
                                {
                                    address = Client + signatures.dwGlowObject;
                                    int GlowObject = vam.ReadInt32((IntPtr)address);

                                    int calculation = GlowIndex * 0x38 + 0x4;
                                    int current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Enemy.r);

                                    calculation = GlowIndex * 0x38 + 0x8;
                                    current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Enemy.g);

                                    calculation = GlowIndex * 0x38 + 0xC;
                                    current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Enemy.b);

                                    calculation = GlowIndex * 0x38 + 0x10;
                                    current     = GlowObject + calculation;
                                    vam.WriteFloat((IntPtr)current, Enemy.a);

                                    calculation = GlowIndex * 0x38 + 0x24;
                                    current     = GlowObject + calculation;
                                    vam.WriteBoolean((IntPtr)current, Enemy.rwo);

                                    calculation = GlowIndex * 0x38 + 0x25;
                                    current     = GlowObject + calculation;
                                    vam.WriteBoolean((IntPtr)current, Enemy.rwuo);
                                }
                            }

                            i++;
                        } while (i < 65);

                        Thread.Sleep(10);
                    }
                }
            }
        }