diff options
Diffstat (limited to '')
| -rw-r--r-- | src/esp_internal.h | 34 |
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 | |||
| 12 | extern int g_scr_w, g_scr_h; | ||
| 13 | |||
| 14 | double esp_now(); | ||
| 15 | bool esp_update_screen(); | ||
| 16 | |||
| 17 | // entity helpers | ||
| 18 | void *entity_networkable(int idx); | ||
| 19 | const char *entity_class_name(void *net, void **out_cc); | ||
| 20 | const char *entity_model_name(void *ent); | ||
| 21 | bool entity_origin(void *ent, Vector &out); | ||
| 22 | bool entity_is_dormant(void *net); | ||
| 23 | bool active_weapon_contains(void *local_ent, const char *needle); | ||
| 24 | bool item_weapon_is_owned(void *ent); | ||
| 25 | |||
| 26 | // drawing primitives | ||
| 27 | void surf_rect(int filled, int x0, int y0, int x1, int y1); | ||
| 28 | void surf_color(int r, int g, int b, int a); | ||
| 29 | void surf_line(int x0, int y0, int x1, int y1); | ||
| 30 | QAngle engine_view_angles(); | ||
| 31 | bool project_segment(const Vector &a, const Vector &b, int &x0, int &y0, | ||
| 32 | int &x1, int &y1); | ||
| 33 | |||
| 34 | #endif | ||
