-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathglobals.hpp
36 lines (30 loc) · 829 Bytes
/
globals.hpp
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
#pragma once
#include "common.hpp"
struct weapon_info_t
{
Vector4 recoil_value{};
Vector4 spread_value{};
bool automatic{};
bool has_set_recoil = false;
bool has_set_spread = false;
};
class drilled_t
{
private:
public:
/* game */
HWND rust_window = FindWindowA(NULL, _("Rust"));
uintptr_t game_assembly = NULL;
uintptr_t unity_player = NULL;
uintptr_t base_networkable = NULL;
/* screen */
const int screen_w = GetSystemMetrics(SM_CXSCREEN);
const int screen_h = GetSystemMetrics(SM_CYSCREEN);
const float screen_center_x = GetSystemMetrics(SM_CXSCREEN) / 2;
const float screen_center_y = GetSystemMetrics(SM_CYSCREEN) / 2;
bool menu_open = false;
float height = 0.f;
std::string weapon_name = _("");
std::unordered_map<std::string, weapon_info_t> weapon_map{};
weapon_info_t weapon_info{};
} globals;