forked from danielkrupinski/Osiris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.h
132 lines (117 loc) · 4.2 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#pragma once
#include <array>
#include <cstddef>
#include <filesystem>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
#include "ConfigStructs.h"
#include "InputUtil.h"
#include "Memory.h"
struct ImFont;
class Backtrack;
class Glow;
class Visuals;
class Config {
public:
Config(Glow& glow, Backtrack& backtrack, Visuals& visuals, const OtherInterfaces& interfaces, const Memory& memory) noexcept;
void load(Glow& glow, Backtrack& backtrack, Visuals& visuals, const OtherInterfaces& interfaces, const Memory& memory, std::size_t, bool incremental) noexcept;
void load(Glow& glow, Backtrack& backtrack, Visuals& visuals, const OtherInterfaces& interfaces, const Memory& memory, const char8_t* name, bool incremental) noexcept;
void save(Glow& glow, Backtrack& backtrack, Visuals& visuals, const OtherInterfaces& interfaces, const Memory& memory, std::size_t) const noexcept;
void add(Glow& glow, Backtrack& backtrack, Visuals& visuals, const OtherInterfaces& interfaces, const Memory& memory, const char8_t*) noexcept;
void remove(std::size_t) noexcept;
void rename(std::size_t, std::u8string_view newName) noexcept;
void reset(Glow& glow, Backtrack& backtrack, Visuals& visuals, const OtherInterfaces& interfaces, const Memory& memory) noexcept;
void listConfigs() noexcept;
void createConfigDir() const noexcept;
void openConfigDir() const noexcept;
constexpr auto& getConfigs() noexcept
{
return configs;
}
struct Aimbot {
bool enabled{ false };
bool aimlock{ false };
bool silent{ false };
bool friendlyFire{ false };
bool visibleOnly{ true };
bool scopedOnly{ true };
bool ignoreFlash{ false };
bool ignoreSmoke{ false };
bool autoShot{ false };
bool autoScope{ false };
float fov{ 0.0f };
float smooth{ 1.0f };
int bone{ 0 };
float maxAimInaccuracy{ 1.0f };
float maxShotInaccuracy{ 1.0f };
int minDamage{ 1 };
bool killshot{ false };
bool betweenShots{ true };
};
std::array<Aimbot, 40> aimbot;
bool aimbotOnKey{ false };
KeyBind aimbotKey;
int aimbotKeyMode{ 0 };
struct Triggerbot {
bool enabled = false;
bool friendlyFire = false;
bool scopedOnly = true;
bool ignoreFlash = false;
bool ignoreSmoke = false;
bool killshot = false;
int hitgroup = 0;
int shotDelay = 0;
int minDamage = 1;
float burstTime = 0.0f;
};
std::array<Triggerbot, 40> triggerbot;
KeyBind triggerbotHoldKey;
struct Chams {
struct Material : Color4 {
bool enabled = false;
bool healthBased = false;
bool blinking = false;
bool wireframe = false;
bool cover = false;
bool ignorez = false;
int material = 0;
};
std::array<Material, 7> materials;
};
std::unordered_map<std::string, Chams> chams;
KeyBindToggle chamsToggleKey;
KeyBind chamsHoldKey;
struct StreamProofESP {
KeyBindToggle toggleKey;
KeyBind holdKey;
std::unordered_map<std::string, Player> allies;
std::unordered_map<std::string, Player> enemies;
std::unordered_map<std::string, Weapon> weapons;
std::unordered_map<std::string, Projectile> projectiles;
std::unordered_map<std::string, Shared> lootCrates;
std::unordered_map<std::string, Shared> otherEntities;
} streamProofESP;
struct Font {
ImFont* tiny;
ImFont* medium;
ImFont* big;
};
struct Style {
int menuStyle{ 0 };
int menuColors{ 0 };
} style;
void scheduleFontLoad(const std::string& name) noexcept;
bool loadScheduledFonts() noexcept;
const auto& getSystemFonts() const noexcept { return systemFonts; }
const auto& getFonts() const noexcept { return fonts; }
private:
std::vector<std::string> scheduledFonts{ "Default" };
std::vector<std::string> systemFonts{ "Default" };
std::unordered_map<std::string, Font> fonts;
std::filesystem::path path;
std::vector<std::u8string> configs;
};