-
Notifications
You must be signed in to change notification settings - Fork 1
/
entity.h
57 lines (36 loc) · 954 Bytes
/
entity.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once
#include "math.h" // otherwise creates errors
#include "static.h"
#include <string>
#include <vector>
class Entity
{
private:
uintptr_t m_uipEntPtr;
Vector3 m_vOrigin;
int m_iTeamNum;
bool m_bDormant;
bool m_lifeState;
public:
Entity();
~Entity();
uintptr_t GetEntPtr();
Vector3 GetOrigin();
Vector3 GetBonePosition(Ent * pEnt, int boneNb);
int GetTeamNum();
int GetHealth();
int m_iHealth;
bool IsDormant();
bool IsDead();
bool IsValid();
bool IsPlayer();
std::string ParseModelName(std::string modelName);
std::string GetModelName(Ent * pEnt);
char * GetName(int entNb);
std::vector<std::vector<int>> GetBoneStruct(std::string model);
int GetDistanceInMeters(Ent * pEnt);
int UpdateEntity(uintptr_t pEnt);
int InitEntity();
void Clear();
}; //Size: 0x
//static_assert(sizeof(ent) == 0x10026);