summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/hl2h.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index 6d3ebe7..68ddab6 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -75,6 +75,12 @@ extern NetVars g_net;
75extern uintptr_t g_input; 75extern uintptr_t g_input;
76 76
77// --------------------------------------------------------------------------- 77// ---------------------------------------------------------------------------
78// console output
79// ---------------------------------------------------------------------------
80
81extern void (*g_conmsg)(const char *, ...);
82
83// ---------------------------------------------------------------------------
78// CUserCmd 84// CUserCmd
79// --------------------------------------------------------------------------- 85// ---------------------------------------------------------------------------
80 86
@@ -118,6 +124,8 @@ float getfov(const QAngle &my_view, const QAngle &aim_ang);
118// cross-file declarations 124// cross-file declarations
119// --------------------------------------------------------------------------- 125// ---------------------------------------------------------------------------
120 126
127// feature ids shared by menu (feature_active) and hl2h.cpp (do_move)
128enum FeatureId { FEAT_CLIMB = 0, FEAT_BHOP = 1, FEAT_ABH = 2 };
121void note_modified(const CUserCmd *cmd, int flags, const float *vel); 129void note_modified(const CUserCmd *cmd, int flags, const float *vel);
122CUserCmd *get_usercmd(int seq); 130CUserCmd *get_usercmd(int seq);
123void fix_verified_crc(int seq, uint32_t crc); 131void fix_verified_crc(int seq, uint32_t crc);
@@ -129,5 +137,13 @@ void install_menu();
129void init_conmsg(); 137void init_conmsg();
130void init_x11(); 138void init_x11();
131bool middle_mouse_down(); 139bool middle_mouse_down();
132 140bool feature_active(int feature);
141void outer_draw();
142// raw ISurface slot calls used by the PaintTraverseEx hook (hl2h.cpp)
143using SurfFn = void (*)(void *, ...);
144long surf_call_slot(void *surf, int slot, long a1 = 0, long a2 = 0);
145
146// ISurface pointer (defined in menu.cpp, used for drawing tests)
147struct ISurface;
148extern ISurface *g_surface;
133#endif 149#endif