-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.h
118 lines (101 loc) · 2.07 KB
/
config.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#ifndef CONFIG_H_
#define CONFIG_H_
#include <stdbool.h>
#include "sdk.h"
typedef struct {
int key;
int mode;
bool active; // Do not save
bool lastDown; // Do not save
} KeyBind;
typedef enum {
LegitbotCategory_Pistols,
LegitbotCategory_Rifles,
LegitbotCategory_AWP,
LegitbotCategory_Scout,
LegitbotCategory_SMGs,
LegitbotCategory_Shotguns,
LegitbotCategory_Len,
} LegitbotCategory;
typedef struct {
int enabled;
int silent;
int minShotsFired;
int maxShotsFired;
int visibleCheck;
int smokeCheck;
int flashCheck;
int scopeCheck;
float fov;
float smooth;
int bones[6];
} LegitbotConfig;
typedef struct {
int enabled;
int timeLimit;
} BacktrackConfig;
typedef enum {
GlowCategory_Enemies,
GlowCategory_Teammates,
GlowCategory_DroppedC4,
GlowCategory_PlantedC4,
GlowCategory_Projectiles,
GlowCategory_DroppedWeapons,
GlowCategory_Len,
} GlowCategory;
typedef struct {
int enabled;
int healthBased;
ColorA colorA;
} GlowConfig;
typedef enum {
ChamsCategory_Enemies,
ChamsCategory_Teammates,
ChamsCategory_Len
} ChamsCategory;
typedef enum {
ChamsSubCategory_Visible,
ChamsSubCategory_Occluded,
ChamsSubCategory_Len
} ChamsSubCategory;
typedef struct {
int enabled;
int material;
int healthBased;
ColorA colorA;
} ChamsConfig;
typedef struct {
int disablePostProcessing;
int disableShadows;
int forceCrosshair;
int grenadePrediction;
int revealRadar;
int revealRanks;
int revealOverwatch;
} VisualsConfig;
typedef struct {
int antiAfkKick;
int fastDuck;
int slideWalk;
int bunnyHop;
int jumpBug;
KeyBind jumpBugKeyBind;
int edgeJump;
KeyBind edgeJumpKeyBind;
int fixMovement;
} MiscConfig;
typedef struct {
LegitbotConfig legitbot[LegitbotCategory_Len];
BacktrackConfig backtrack;
GlowConfig glow[GlowCategory_Len];
ChamsConfig chams[ChamsCategory_Len][ChamsSubCategory_Len];
VisualsConfig visuals;
MiscConfig misc;
} Config;
extern Config config;
int config_getConfigs(char ***configs);
void config_reset(void);
void config_load(const char *name);
void config_save(const char *name);
void config_openDirectory(void);
#endif // CONFIG_H_