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); }
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) }); }
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); }
public IntPtr GetBoneMatrix(int Index) { return(CProcess.Read <IntPtr>(GetEntity(Index) /*+ Offsets.m_dwBoneMatrix*/)); }
public int GetTeam(int Index) { return(CProcess.Read <int>(GetEntity(Index) /*+ Offsets.m_iTeamNum*/)); }
public int GetHealth(int Index) { return(CProcess.Read <int>(GetEntity(Index) /*+ Offsets.m_iHealth*/)); }
public bool IsDormant(int Index) { return(CProcess.Read <bool>(GetEntity(Index) /*+ Offsets.m_bDormant*/)); }
public bool IsInvisible(int Index) { return(CProcess.Read <bool>(GetEntity(Index) /*+ Offsets.m_bGunGameImmunity*/)); }
public bool IsAlive(int Index) { return(CProcess.Read <bool>(GetEntity(Index) /*+ Offsets.m_lifeState*/)); }
public IntPtr GetEntity(int Index) { return(CProcess.Read <IntPtr>(CProcess.Client.BaseAddress /*+ Offsets.m_deEntityList + (Index - 1) * 0x10*/)); }
public int GetCrosshairID() { return(CProcess.Read <int>(GetPlayer() /*+ Offsets.m_iCrossHairID*/)); }
public int GetHealth() { return(CProcess.Read <int>(GetPlayer() + 0xFC)); }
public int GetPlayerStatus() { return(CProcess.Read <int>(GetPlayer() /*+ Offsets.m_fFlags*/)); }
public bool IsShooting() { return(CProcess.Read <bool>(GetPlayer() /*+ Offsets.m_iShotsFired*/)); }
public IntPtr GetPlayer() { return(CProcess.Read <IntPtr>(CProcess.Client.BaseAddress + 0xAB0708)); }