From 210f3a12ee1d56750d593b4c404a0683f810aa3e Mon Sep 17 00:00:00 2001 From: salmonik Date: Sat, 12 Sep 2026 19:04:22 +0200 Subject: ISurface overlay working: PTEx draw path, -Werror, menu states, bind-driven features --- src/hl2h.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/hl2h.h') diff --git a/src/hl2h.h b/src/hl2h.h index 6d3ebe7..68ddab6 100644 --- a/src/hl2h.h +++ b/src/hl2h.h @@ -74,6 +74,12 @@ extern NetVars g_net; extern uintptr_t g_input; +// --------------------------------------------------------------------------- +// console output +// --------------------------------------------------------------------------- + +extern void (*g_conmsg)(const char *, ...); + // --------------------------------------------------------------------------- // CUserCmd // --------------------------------------------------------------------------- @@ -118,6 +124,8 @@ float getfov(const QAngle &my_view, const QAngle &aim_ang); // cross-file declarations // --------------------------------------------------------------------------- +// feature ids shared by menu (feature_active) and hl2h.cpp (do_move) +enum FeatureId { FEAT_CLIMB = 0, FEAT_BHOP = 1, FEAT_ABH = 2 }; void note_modified(const CUserCmd *cmd, int flags, const float *vel); CUserCmd *get_usercmd(int seq); void fix_verified_crc(int seq, uint32_t crc); @@ -129,5 +137,13 @@ void install_menu(); void init_conmsg(); void init_x11(); bool middle_mouse_down(); - +bool feature_active(int feature); +void outer_draw(); +// raw ISurface slot calls used by the PaintTraverseEx hook (hl2h.cpp) +using SurfFn = void (*)(void *, ...); +long surf_call_slot(void *surf, int slot, long a1 = 0, long a2 = 0); + +// ISurface pointer (defined in menu.cpp, used for drawing tests) +struct ISurface; +extern ISurface *g_surface; #endif -- cgit v1.2.3