This repository has been archived by the owner on Jun 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Utilities.h
85 lines (84 loc) · 1.81 KB
/
Utilities.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
82
83
84
85
#pragma once
#include <string>
#include <vector>
#include "kernelinterface.hpp"
// Vectors
extern struct Vector2 {
float x = 0;
float y = 0;
};
extern struct Vector3 {
float x = 0;
float y = 0;
float z = 0;
};
extern struct Vector4 {
float x = 0;
float y = 0;
float z = 0;
float w = 0;
};
extern struct VectorRect {
int x = 0;
int y = 0;
int w = 0;
int h = 0;
};
// its for Player Inventory Box Item
struct Item {
std::string displayName;
Vector3 Position;
int picid;
};
struct Vehicle {
std::string displayName;
Vector3 Position;
int picid;
};
// its for entity player weapon details
extern struct playerWeapon {
int ammoCur = 0,itmid = 0;
std::string displayName = "";
};
// its for world to screen
extern struct D3DMatrix {
float _11, _12, _13, _14;
float _21, _22, _23, _24;
float _31, _32, _33, _34;
float _41, _42, _43, _44;
};
extern struct FTTransform2_t {
Vector4 Rotation;
Vector3 Translation;
float ddd;
Vector3 Scale3D;
};
class Utilities
{
public :
static bool IsPlayer(std::string str);
static Vector3 Readvector3(KeInterface drv, DWORD adds, DWORD ProcessId);
static std::string GetBoxItemByboth(DWORD code, std::string classname);
static std::string GetVehicleType(std::string str);
static std::string GetGrenadeType(std::string classname);
static bool IsBox(std::string classname);
static std::string GetImpItem(DWORD code,std::string classname);
static int GetNameByIDSprite(DWORD id, std::string classname);
};
struct Itemb {
std::string Displayname;
};
struct Lootbox {
Vector3 Position;
std::vector<Itemb> boxitem;
};
struct playerData
{
DWORD Address,Pose;
Vector3 Position,rotation;
int Status, TeamID, Health;
bool IsRobot;
std::string Name, Type;
float energy;
playerWeapon playerW1, playerW2;
};