summaryrefslogtreecommitdiffstats
path: root/src/esp_internal.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/esp_internal.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/esp_internal.h b/src/esp_internal.h
new file mode 100644
index 0000000..15178a7
--- /dev/null
+++ b/src/esp_internal.h
@@ -0,0 +1,34 @@
1#ifndef HL2H_ESP_INTERNAL_H
2#define HL2H_ESP_INTERNAL_H
3
4// Helpers shared between the ESP translation units (esp.cpp, items.cpp,
5// projectiles.cpp). Everything here has internal linkage semantics but is
6// exported across those TUs, so it lives in the shared header instead of being
7// repeated.
8
9#include "hl2h.h"
10#include <cstdint>
11
12extern int g_scr_w, g_scr_h;
13
14double esp_now();
15bool esp_update_screen();
16
17// entity helpers
18void *entity_networkable(int idx);
19const char *entity_class_name(void *net, void **out_cc);
20const char *entity_model_name(void *ent);
21bool entity_origin(void *ent, Vector &out);
22bool entity_is_dormant(void *net);
23bool active_weapon_contains(void *local_ent, const char *needle);
24bool item_weapon_is_owned(void *ent);
25
26// drawing primitives
27void surf_rect(int filled, int x0, int y0, int x1, int y1);
28void surf_color(int r, int g, int b, int a);
29void surf_line(int x0, int y0, int x1, int y1);
30QAngle engine_view_angles();
31bool project_segment(const Vector &a, const Vector &b, int &x0, int &y0,
32 int &x1, int &y1);
33
34#endif