forked from SimpleRealistic/styles-cheat-csgo-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayerList.h
57 lines (55 loc) · 1.54 KB
/
PlayerList.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 "Interfaces.h"
class PlayerList
{
public:
int index = 0;
unsigned long iUserId = 0;
bool bFriend = false;
int iHitbox = 0;
char cName[128];
int iResolve = 0;
//std::vector<YawStorage> yawDatabase;
int expireTime = 30;
float lastUpdatedTick = 0;
int lastDifference = 0;
bool lowerBodyInitialized = false;
int lastLowerBodyUpdate = 3654365346;
bool shouldResetStorage = false;
std::array<float, 24>* poseParams;
std::array<float, 24>* oldPoseParams;
public:
PlayerList(PlayerList _list, char _name[128])
{
this->index = _list.index;
this->iUserId = _list.iUserId;
strcpy(this->cName, _name);
this->iHitbox = _list.iHitbox;
this->bFriend = _list.bFriend;
this->iResolve = _list.iResolve;
//this->yawDatabase = _list.yawDatabase;
this->expireTime = _list.expireTime;
this->lowerBodyInitialized = _list.lowerBodyInitialized;
this->lastUpdatedTick = _list.lastUpdatedTick;
this->lastDifference = _list.lastDifference;
this->lastLowerBodyUpdate = _list.lastLowerBodyUpdate;
this->shouldResetStorage = _list.shouldResetStorage;
}
PlayerList(int _index, unsigned long _userID, char _name[128], int _hitbox, bool _friend, int _resolve)
{
this->index = _index;
this->iUserId = _userID;
strcpy(this->cName, _name);
this->iHitbox = _hitbox;
this->bFriend = _friend;
this->iResolve = _resolve;
}
friend bool operator==(const PlayerList& p1, const PlayerList& p2)
{
return p1.iUserId == p2.iUserId;
}
friend bool operator==(const PlayerList& p1, const unsigned long& p2)
{
return p1.iUserId == p2;
}
};