Пример #1
0
        public unsafe float GetSentivity()
        {
            ulong sens_ptr         = (ulong)CProcess.Client.BaseAddress /*+ Offsets.m_pSensitivity*/;
            ulong sens_value_xored = CProcess.Read <ulong>(CProcess.Client.BaseAddress /*+ Offsets.m_dwSensitivity*/);
            ulong Value            = sens_ptr ^ sens_value_xored;

            return(*(float *)&Value);
        }
Пример #2
0
 public Vector3 GetBone(int Index, int BoneID)
 {
     return(new Vector3
     {
         X = CProcess.Read <float>((IntPtr)GetBoneMatrix(Index) + 0x30 * BoneID + 0x0C),
         Y = CProcess.Read <float>((IntPtr)GetBoneMatrix(Index) + 0x30 * BoneID + 0x1C),
         Z = CProcess.Read <float>((IntPtr)GetBoneMatrix(Index) + 0x30 * BoneID + 0x2C)
     });
 }
Пример #3
0
        public List <int> GetMaxPlayers()
        {
            List <int> totalPlayers = new List <int>(0);

            var maxPlayers = CProcess.Read <int>(CProcess.Read <IntPtr>(CProcess.Engine.BaseAddress /*+ Offset.m_dwClientState*/) /*+ Offset.m_dwMaxPlayers*/);

            //Existe el player con indice 0 ???? XD
            for (int i = 0; i < maxPlayers; i++)
            {
                if (GetEntity(i) != null &&
                    !IsAlive(i) &&
                    !IsDormant(i) &&
                    GetBoneMatrix(i) != null &&
                    GetHealth(i) > 0 &&
                    !IsInvisible(i) &&
                    GetBone(i, 0 /*Settings.AimbotBone*/).Length() != 0)
                {
                    totalPlayers.Add(i);
                }
            }

            return(totalPlayers);
        }
Пример #4
0
 public IntPtr GetBoneMatrix(int Index)
 {
     return(CProcess.Read <IntPtr>(GetEntity(Index) /*+ Offsets.m_dwBoneMatrix*/));
 }
Пример #5
0
 public int GetTeam(int Index)
 {
     return(CProcess.Read <int>(GetEntity(Index) /*+ Offsets.m_iTeamNum*/));
 }
Пример #6
0
 public int GetHealth(int Index)
 {
     return(CProcess.Read <int>(GetEntity(Index) /*+ Offsets.m_iHealth*/));
 }
Пример #7
0
 public bool IsDormant(int Index)
 {
     return(CProcess.Read <bool>(GetEntity(Index) /*+ Offsets.m_bDormant*/));
 }
Пример #8
0
 public bool IsInvisible(int Index)
 {
     return(CProcess.Read <bool>(GetEntity(Index) /*+ Offsets.m_bGunGameImmunity*/));
 }
Пример #9
0
 public bool IsAlive(int Index)
 {
     return(CProcess.Read <bool>(GetEntity(Index) /*+ Offsets.m_lifeState*/));
 }
Пример #10
0
 public IntPtr GetEntity(int Index)
 {
     return(CProcess.Read <IntPtr>(CProcess.Client.BaseAddress /*+ Offsets.m_deEntityList + (Index - 1) * 0x10*/));
 }
Пример #11
0
 public int GetCrosshairID()
 {
     return(CProcess.Read <int>(GetPlayer() /*+ Offsets.m_iCrossHairID*/));
 }
Пример #12
0
 public int GetHealth()
 {
     return(CProcess.Read <int>(GetPlayer() + 0xFC));
 }
Пример #13
0
 public int GetPlayerStatus()
 {
     return(CProcess.Read <int>(GetPlayer() /*+ Offsets.m_fFlags*/));
 }
Пример #14
0
 public bool IsShooting()
 {
     return(CProcess.Read <bool>(GetPlayer() /*+ Offsets.m_iShotsFired*/));
 }
Пример #15
0
 public IntPtr GetPlayer()
 {
     return(CProcess.Read <IntPtr>(CProcess.Client.BaseAddress + 0xAB0708));
 }