diff options
Diffstat (limited to 'src/hl2h.h')
| -rw-r--r-- | src/hl2h.h | 18 |
1 files changed, 17 insertions, 1 deletions
| @@ -75,6 +75,12 @@ extern NetVars g_net; | |||
| 75 | extern uintptr_t g_input; | 75 | extern uintptr_t g_input; |
| 76 | 76 | ||
| 77 | // --------------------------------------------------------------------------- | 77 | // --------------------------------------------------------------------------- |
| 78 | // console output | ||
| 79 | // --------------------------------------------------------------------------- | ||
| 80 | |||
| 81 | extern 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) | ||
| 128 | enum FeatureId { FEAT_CLIMB = 0, FEAT_BHOP = 1, FEAT_ABH = 2 }; | ||
| 121 | void note_modified(const CUserCmd *cmd, int flags, const float *vel); | 129 | void note_modified(const CUserCmd *cmd, int flags, const float *vel); |
| 122 | CUserCmd *get_usercmd(int seq); | 130 | CUserCmd *get_usercmd(int seq); |
| 123 | void fix_verified_crc(int seq, uint32_t crc); | 131 | void fix_verified_crc(int seq, uint32_t crc); |
| @@ -129,5 +137,13 @@ void install_menu(); | |||
| 129 | void init_conmsg(); | 137 | void init_conmsg(); |
| 130 | void init_x11(); | 138 | void init_x11(); |
| 131 | bool middle_mouse_down(); | 139 | bool middle_mouse_down(); |
| 132 | 140 | bool feature_active(int feature); | |
| 141 | void outer_draw(); | ||
| 142 | // raw ISurface slot calls used by the PaintTraverseEx hook (hl2h.cpp) | ||
| 143 | using SurfFn = void (*)(void *, ...); | ||
| 144 | long 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) | ||
| 147 | struct ISurface; | ||
| 148 | extern ISurface *g_surface; | ||
| 133 | #endif | 149 | #endif |
