-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
90 lines (75 loc) · 1.67 KB
/
utils.h
File metadata and controls
90 lines (75 loc) · 1.67 KB
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
#pragma once
#include <string>
#include <TlHelp32.h>
#include <WinUser.h>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <shlobj.h>
#include <objbase.h>
#include <memory>
#include <unordered_map>
#include <vector>
#include <chrono>
#include <filesystem>
#include "hook.h"
#include "ent.h"
#include "memory.h"
#include "actions.h"
#pragma comment(lib,"Shell32")
#pragma comment(lib,"Ole32")
///////////////////////////////////////////////////////////////
// struct GameTimer
class GameTimer
{
std::chrono::time_point<std::chrono::steady_clock> end, start;
bool toggleTimer = false;
public:
float period = 1000;
float elapsedTime;
void Start();
void Reset();
};
class ExecuteCommand
{
bool isExecingOnceAuto = false;
GameTimer coolDown;
std::string prevMessage;
public:
bool isExecingOnce = false;
std::string execPath;
HWND mbiiHandle;
void ExecCmd(std::string say, float coolDownPeriod);
void ExecOneTime(std::string say);
};
///////////////////////////////////////////////////////////////
// struct ModuleAddresses - stores noduel base addresses
struct ModuleAddresses
{
uintptr_t mbiiModuleBase;
HANDLE mbiiHandle;
uintptr_t ojkBase;
uintptr_t openGLBase;
uintptr_t kernelBase;
uintptr_t rdVanilla;
uintptr_t mbiiBase;
};
///////////////////////////////////////////////////////////////
// struct KeyModKey - stores pressed keys info
struct KeyModKey {
int key;
int modkey;
};
enum configCommands
{
CFG_AIM,
CFG_AIM_NOPRED,
CFG_TK,
CFG_EXIT,
CFG_THROUGHWALLS,
};
enum commandsList
{
CMD_TARGET,
};
typedef char* (__cdecl* _Print)(const char* sFormat, ...);