Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
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;
            }
            }
        }
Exemplo n.º 3
0
        public void WallHack()
        {
            if (d.eWall)
            {
                int address;
                int calculation;



                int myTeam = d.myTeam;


                for (int i = 0; i < 64; i += 1)
                {
                    address = d.aEntityList + (i * d.oEntityLoopDistance);
                    int ptrToPerson = vam.ReadInt32((IntPtr)address);

                    address = Netvars.m_iTeamNum + ptrToPerson;
                    int pTeam = vam.ReadInt32((IntPtr)address);

                    address = Signatures.m_bDormant + ptrToPerson;
                    if (!vam.ReadBoolean((IntPtr)address))
                    {
                        address = Netvars.m_iGlowIndex + ptrToPerson;
                        int glowIndex = vam.ReadInt32((IntPtr)address);

                        address = Signatures.dwGlowObjectManager + bClient;
                        int glowObject = vam.ReadInt32((IntPtr)address);

                        int current;
                        if (pTeam > 1 && ptrToPerson != 0)
                        {
                            GlowStruct targetTeam;
                            if (pTeam == myTeam)
                            {
                                targetTeam = d.team;
                            }
                            else
                            {
                                targetTeam = d.enemy;
                            }


                            // 0x4 0x8 0xC 0x10 0x24 25

                            calculation = glowIndex * d.oGlowDistance + 0x4;
                            current     = glowObject + calculation;
                            vam.WriteFloat((IntPtr)current, targetTeam.r);

                            calculation = glowIndex * d.oGlowDistance + 0x8;
                            current     = glowObject + calculation;
                            vam.WriteFloat((IntPtr)current, targetTeam.g);

                            calculation = glowIndex * d.oGlowDistance + 0xC;
                            current     = glowObject + calculation;
                            vam.WriteFloat((IntPtr)current, targetTeam.b);

                            calculation = glowIndex * d.oGlowDistance + 0x10;
                            current     = glowObject + calculation;
                            vam.WriteFloat((IntPtr)current, targetTeam.a);

                            calculation = glowIndex * d.oGlowDistance + 0x24;
                            current     = glowObject + calculation;
                            vam.WriteBoolean((IntPtr)current, targetTeam.rwo);

                            calculation = glowIndex * d.oGlowDistance + 0x25;
                            current     = glowObject + calculation;
                            vam.WriteBoolean((IntPtr)current, targetTeam.rwuo);
                        }
                    }
                }
            }
        }
Exemplo n.º 4
0
        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);
                }
            }
        }
Exemplo n.º 5
0
        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();
        }
Exemplo n.º 6
0
 public void WriteBoolean(int offsets, bool value)
 {
     vam.WriteBoolean((IntPtr)offsets, value);
 }
Exemplo n.º 7
0
 public bool WriteBoolean(IntPtr address, bool value)
 {
     return(vam.WriteBoolean(address, value));
     //return vam.WriteBoolean(address, value);
 }
Exemplo n.º 8
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);
                    }
                }
            }
        }
        void seethroughthing()
        {
            if (!wallhacktoggle)
            {
                return;
            }
            Enemy Enemy    = new Enemy();
            Team  Friendly = new Team();

            int i = 1;

            doStuff();

            do
            {
                var d           = bClient + Offsets.oLocalPlayer;
                int LocalPlayer = vam.ReadInt32((IntPtr)d);

                int Team = vam.ReadInt32((IntPtr)(LocalPlayer + Offsets.oTeam));

                int EntityList = vam.ReadInt32((IntPtr)(bClient + Offsets.oEntityList + (i - 1) * Offsets.oEntityLoopDistance));

                int OtherTeam = vam.ReadInt32((IntPtr)(EntityList + Offsets.oTeam));
                int Glow      = vam.ReadInt32((IntPtr)(EntityList + Offsets.oGlowIndex));
                int Object    = vam.ReadInt32((IntPtr)(bClient + Offsets.oGlowObject));

                if (OtherTeam == 2)
                {
                    int x       = Glow * 0x38 + 0x4;
                    int current = Object + x;
                    vam.WriteFloat((IntPtr)current, Enemy.r);

                    x       = Glow * 0x38 + 0x8;
                    current = Object + x;
                    vam.WriteFloat((IntPtr)current, Enemy.g);

                    x       = Glow * 0x38 + 0xC;
                    current = Object + x;
                    vam.WriteFloat((IntPtr)current, Enemy.b);

                    x       = Glow * 0x38 + 0x10;
                    current = Object + x;
                    vam.WriteFloat((IntPtr)current, Enemy.a);

                    x       = Glow * 0x38 + 0x24;
                    current = Object + x;
                    vam.WriteBoolean((IntPtr)current, Enemy.rwo);

                    x       = Glow * 0x38 + 0x25;
                    current = Object + x;
                    vam.WriteBoolean((IntPtr)current, Enemy.rwuo);
                }
                else if (OtherTeam == 3)
                {
                    int x       = Glow * 0x38 + 0x4;
                    int current = Object + x;
                    vam.WriteFloat((IntPtr)current, Friendly.r);

                    x       = Glow * 0x38 + 0x8;
                    current = Object + x;
                    vam.WriteFloat((IntPtr)current, Friendly.g);

                    x       = Glow * 0x38 + 0xC;
                    current = Object + x;
                    vam.WriteFloat((IntPtr)current, Friendly.b);

                    x       = Glow * 0x38 + 0x10;
                    current = Object + x;
                    vam.WriteFloat((IntPtr)current, Friendly.a);

                    x       = Glow * 0x38 + 0x24;
                    current = Object + x;
                    vam.WriteBoolean((IntPtr)current, Friendly.rwo);

                    x       = Glow * 0x38 + 0x25;
                    current = Object + x;
                    vam.WriteBoolean((IntPtr)current, Friendly.rwuo);
                }
                i++;
            } while (i < 65);
        }
Exemplo n.º 10
0
        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);
                }
            }
        }
Exemplo n.º 11
0
        //
        //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);
                    }
                }
            }
        }