forked from marcelopalacioabreu/b00m-h3adsh0t
-
Notifications
You must be signed in to change notification settings - Fork 1
/
playerdata.h
81 lines (68 loc) · 1.15 KB
/
playerdata.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#pragma once
#include <math.h>
// 3D data for each player
// Memory addresses within "PlayerData"
class Vect3d
{
public:
float x;
float y;
float z;
Vect3d(float _x, float _y, float _z)
{
x = _x;
y = _y;
z = _z;
}
Vect3d()
{
}
float length()
{
return (float)sqrt(x * x + y * y + z * z);
}
float dotproduct(Vect3d dot)
{
return (x * dot.x + y * dot.y + z * dot.z);
}
};
struct Color
{
public:
short R;
short G;
short B;
Color()
{
}
Color(short r, short g, short b)
{
R = r;
G = g;
B = b;
}
};
class PlayerDataVec
{
public:
float xMouse;
float yMouse;
int isValid;
float xPos;
float yPos;
float zPos;
int isAlive;
int clientNum;
Color color;
char name[16];
int pose;
int team;
bool visible;
int isInGame;
int health;
Vect3d VecCoords()
{
Vect3d vec(xPos, zPos, yPos);
return vec;
}
};