Exemplo n.º 1
0
 private void UnlimRun(bool flag)
 {
     if (flag == true)
     {
         vam.WriteByte((IntPtr)aUnlimRun, 1);
     }
     else
     {
         vam.WriteByte((IntPtr)aUnlimRun, 0);
     }
 }
Exemplo n.º 2
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);
                    }
                }
            }
        }