Esempio n. 1
0
            static internal int GetEntityID(int EntityBase)
            {
                int vt  = BHMem.ReadMemory <int>(EntityBase + 0x8);
                int fn  = BHMem.ReadMemory <int>(vt + 2 * 0x4);
                int cls = BHMem.ReadMemory <int>(fn + 0x1);

                return(BHMem.ReadMemory <int>(cls + 0x14));
            }
Esempio n. 2
0
            static internal float[] GetBonePosition(int PlayerID, int BoneID)
            {
                int BoneMatrix = BHMem.ReadMemory <int>(Base(PlayerID) + DwBoneMatrix);

                float[] Pos = new float[3];
                Pos[0] = BHMem.ReadMemory <float>(BoneMatrix + 0x30 * BoneID + 0x0C);
                Pos[1] = BHMem.ReadMemory <float>(BoneMatrix + 0x30 * BoneID + 0x1C);
                Pos[2] = BHMem.ReadMemory <float>(BoneMatrix + 0x30 * BoneID + 0x2C);
                return(Pos);
            }
Esempio n. 3
0
 static internal bool GetDormant(int PlayerID)
 {
     return(BHMem.ReadMemory <bool>(Base(PlayerID) + DwDormant));
 }
Esempio n. 4
0
 static internal bool GetLifeState(int PlayerID)
 {
     return(!BHMem.ReadMemory <bool>(Base(PlayerID) + DwLifeState));
 }
Esempio n. 5
0
 static internal int GetHealth(int PlayerID)
 {
     return(BHMem.ReadMemory <int>(Base(PlayerID) + DwHealth));
 }
Esempio n. 6
0
 static internal int Base(int PlayerID)
 {
     return(BHMem.ReadMemory <int>(DwClientBase + DwEntityList + (0x10 * PlayerID)));
 }
Esempio n. 7
0
 static internal int GetTeam(int PlayerID)
 {
     return(BHMem.ReadMemory <int>(Base(PlayerID) + DwTeam));
 }
Esempio n. 8
0
 static internal float[] GetVelocity()
 {
     return(BHMem.ReadMatrix <float>(Base() + DwVelocity, 3));
 }
Esempio n. 9
0
 static internal float[] GetPunch()
 {
     return(BHMem.ReadMatrix <float>(Base() + DwPunch, 3));
 }
Esempio n. 10
0
 static internal bool GetLifeState()
 {
     return(BHMem.ReadMemory <bool>(Base() + DwLifeState));
 }
Esempio n. 11
0
 static internal float[] GetPosition()
 {
     return(BHMem.ReadMatrix <float>(Base() + DwPosition, 3));
 }
Esempio n. 12
0
 static internal int GetTeam()
 {
     return(BHMem.ReadMemory <int>(Base() + DwTeam));
 }
Esempio n. 13
0
 static internal int Base()
 {
     return(BHMem.ReadMemory <int>(DwClientBase + DwLocalPlayer));
 }
Esempio n. 14
0
            static internal string GetModel(int PlayerID)
            {
                int ModelBase = BHMem.ReadMemory <int>(Base(PlayerID) + 0x6C);

                return(System.Text.Encoding.ASCII.GetString(BHMem.ReadBytes(ModelBase + 0x0004, 260), 0, 32));
            }
Esempio n. 15
0
 static internal float[] GetVelocity(int PlayerID)
 {
     return(BHMem.ReadMatrix <float>(Base(PlayerID) + DwVelocity, 3));
 }
Esempio n. 16
0
 static internal float[] GetPosition(int PlayerID)
 {
     return(BHMem.ReadMatrix <float>(Base(PlayerID) + DwPosition, 3));
 }