summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/hl2h.h27
1 files changed, 24 insertions, 3 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index b7fc2f5..6b142c7 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -97,6 +97,8 @@ struct NetVars {
97 int owner = -1; // client m_hOwnerEntity handle 97 int owner = -1; // client m_hOwnerEntity handle
98 int weapon_owner = -1; // client m_hOwner handle (C_BaseCombatWeapon) 98 int weapon_owner = -1; // client m_hOwner handle (C_BaseCombatWeapon)
99 int clr_render = -1; // client m_clrRender (entity render colour) 99 int clr_render = -1; // client m_clrRender (entity render colour)
100 int punch = -1; // client m_vecPunchAngle (aim punch)
101 int default_fov = -1; // client m_iDefaultFOV (camera fov)
100 // ponytail: mins/maxs may be absent from some HL2 netvar tables; esp.cpp falls back to h=72 102 // ponytail: mins/maxs may be absent from some HL2 netvar tables; esp.cpp falls back to h=72
101 bool ok() const { return flags >= 0 && velocity >= 0 && movetype >= 0; } 103 bool ok() const { return flags >= 0 && velocity >= 0 && movetype >= 0; }
102 // ponytail: m_iMaxHealth isn't a netvar in HL2 SP; esp.cpp falls back to 100. 104 // ponytail: m_iMaxHealth isn't a netvar in HL2 SP; esp.cpp falls back to 100.
@@ -193,7 +195,10 @@ enum EspOption {
193 ESP_OPT_SHOW_BOX = 5, 195 ESP_OPT_SHOW_BOX = 5,
194 ESP_OPT_SHOW_SPEEDGRAPH = 6, 196 ESP_OPT_SHOW_SPEEDGRAPH = 6,
195 ESP_OPT_DAMAGE_TAGS = 7, 197 ESP_OPT_DAMAGE_TAGS = 7,
196 ESP_OPT_COUNT = 8 198 ESP_OPT_ALERT = 8,
199 ESP_OPT_WEAPON = 9,
200 ESP_OPT_ARROWS = 10,
201 ESP_OPT_COUNT = 11
197}; 202};
198enum AimBone { 203enum AimBone {
199 AIM_BONE_HEAD = 0, 204 AIM_BONE_HEAD = 0,
@@ -237,7 +242,16 @@ extern int g_aim_smooth;
237extern bool g_aim_vischeck; 242extern bool g_aim_vischeck;
238extern int g_aim_fov; 243extern int g_aim_fov;
239extern bool g_aim_fov_circle; 244extern bool g_aim_fov_circle;
240extern int g_silent_fov; 245extern bool g_aim_punch;
246extern bool g_spread_engine;
247extern bool g_auto_crouchjump;
248extern bool g_edge_jump;
249extern int g_fov_camera;
250extern int g_fov_viewmodel;
251extern int g_gamma;
252extern int g_esp_col_hostile[3];
253extern int g_esp_col_neutral[3];
254extern int g_esp_col_friendly[3];
241extern bool g_esp_opt[ESP_OPT_COUNT]; 255extern bool g_esp_opt[ESP_OPT_COUNT];
242 256
243const char *scancode_name(int sc); 257const char *scancode_name(int sc);
@@ -275,6 +289,11 @@ int server_npc_relation(int idx, int local_idx);
275bool server_npc_has_follow_target(int idx); 289bool server_npc_has_follow_target(int idx);
276int server_npc_state(int idx); 290int server_npc_state(int idx);
277int server_npc_takedamage(int idx); 291int server_npc_takedamage(int idx);
292int server_entity_count();
293void *server_entity_base(int idx);
294const char *server_entity_classname(int idx);
295bool server_trigger_info(int idx, char *map, size_t mapn, Vector &mins,
296 Vector &maxs);
278int server_npc_turret_flags(int idx); 297int server_npc_turret_flags(int idx);
279int server_model_index(void *base); 298int server_model_index(void *base);
280void find_modules(); 299void find_modules();
@@ -288,11 +307,12 @@ bool esp_option(int opt);
288bool bhop_autostrafe_enabled(); 307bool bhop_autostrafe_enabled();
289bool jumpbug_assist_enabled(); 308bool jumpbug_assist_enabled();
290bool spread_no_spread_enabled(); 309bool spread_no_spread_enabled();
310bool spread_engine_enabled();
311bool aim_punch_enabled();
291unsigned aimbot_bone_mask(); 312unsigned aimbot_bone_mask();
292int aimbot_smooth_step(); 313int aimbot_smooth_step();
293bool aimbot_vischeck_enabled(); 314bool aimbot_vischeck_enabled();
294int aimbot_fov(); 315int aimbot_fov();
295int silentaim_fov();
296bool aimbot_fov_circle(); 316bool aimbot_fov_circle();
297void aimbot_reset_lock(); 317void aimbot_reset_lock();
298void silentaim_reset_lock(); 318void silentaim_reset_lock();
@@ -310,6 +330,7 @@ bool is_visible(const Vector &eye, const Vector &point,
310 void *self = nullptr, void *target = nullptr); 330 void *self = nullptr, void *target = nullptr);
311void *trace_entity(const Vector &start, const Vector &end, void *ignore); 331void *trace_entity(const Vector &start, const Vector &end, void *ignore);
312float ground_distance(const Vector &origin, void *ignore, float max_dist); 332float ground_distance(const Vector &origin, void *ignore, float max_dist);
333bool point_ground(const Vector &point, void *ignore);
313 334
314// bones.cpp — client-side animated skeleton / hitbox access (see there) 335// bones.cpp — client-side animated skeleton / hitbox access (see there)
315bool bones_update(int idx, void *ent); 336bool bones_update(int idx, void *ent);