diff options
Diffstat (limited to '')
| -rw-r--r-- | src/hl2h.h | 27 |
1 files changed, 24 insertions, 3 deletions
| @@ -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 | }; |
| 198 | enum AimBone { | 203 | enum AimBone { |
| 199 | AIM_BONE_HEAD = 0, | 204 | AIM_BONE_HEAD = 0, |
| @@ -237,7 +242,16 @@ extern int g_aim_smooth; | |||
| 237 | extern bool g_aim_vischeck; | 242 | extern bool g_aim_vischeck; |
| 238 | extern int g_aim_fov; | 243 | extern int g_aim_fov; |
| 239 | extern bool g_aim_fov_circle; | 244 | extern bool g_aim_fov_circle; |
| 240 | extern int g_silent_fov; | 245 | extern bool g_aim_punch; |
| 246 | extern bool g_spread_engine; | ||
| 247 | extern bool g_auto_crouchjump; | ||
| 248 | extern bool g_edge_jump; | ||
| 249 | extern int g_fov_camera; | ||
| 250 | extern int g_fov_viewmodel; | ||
| 251 | extern int g_gamma; | ||
| 252 | extern int g_esp_col_hostile[3]; | ||
| 253 | extern int g_esp_col_neutral[3]; | ||
| 254 | extern int g_esp_col_friendly[3]; | ||
| 241 | extern bool g_esp_opt[ESP_OPT_COUNT]; | 255 | extern bool g_esp_opt[ESP_OPT_COUNT]; |
| 242 | 256 | ||
| 243 | const char *scancode_name(int sc); | 257 | const char *scancode_name(int sc); |
| @@ -275,6 +289,11 @@ int server_npc_relation(int idx, int local_idx); | |||
| 275 | bool server_npc_has_follow_target(int idx); | 289 | bool server_npc_has_follow_target(int idx); |
| 276 | int server_npc_state(int idx); | 290 | int server_npc_state(int idx); |
| 277 | int server_npc_takedamage(int idx); | 291 | int server_npc_takedamage(int idx); |
| 292 | int server_entity_count(); | ||
| 293 | void *server_entity_base(int idx); | ||
| 294 | const char *server_entity_classname(int idx); | ||
| 295 | bool server_trigger_info(int idx, char *map, size_t mapn, Vector &mins, | ||
| 296 | Vector &maxs); | ||
| 278 | int server_npc_turret_flags(int idx); | 297 | int server_npc_turret_flags(int idx); |
| 279 | int server_model_index(void *base); | 298 | int server_model_index(void *base); |
| 280 | void find_modules(); | 299 | void find_modules(); |
| @@ -288,11 +307,12 @@ bool esp_option(int opt); | |||
| 288 | bool bhop_autostrafe_enabled(); | 307 | bool bhop_autostrafe_enabled(); |
| 289 | bool jumpbug_assist_enabled(); | 308 | bool jumpbug_assist_enabled(); |
| 290 | bool spread_no_spread_enabled(); | 309 | bool spread_no_spread_enabled(); |
| 310 | bool spread_engine_enabled(); | ||
| 311 | bool aim_punch_enabled(); | ||
| 291 | unsigned aimbot_bone_mask(); | 312 | unsigned aimbot_bone_mask(); |
| 292 | int aimbot_smooth_step(); | 313 | int aimbot_smooth_step(); |
| 293 | bool aimbot_vischeck_enabled(); | 314 | bool aimbot_vischeck_enabled(); |
| 294 | int aimbot_fov(); | 315 | int aimbot_fov(); |
| 295 | int silentaim_fov(); | ||
| 296 | bool aimbot_fov_circle(); | 316 | bool aimbot_fov_circle(); |
| 297 | void aimbot_reset_lock(); | 317 | void aimbot_reset_lock(); |
| 298 | void silentaim_reset_lock(); | 318 | void 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); |
| 311 | void *trace_entity(const Vector &start, const Vector &end, void *ignore); | 331 | void *trace_entity(const Vector &start, const Vector &end, void *ignore); |
| 312 | float ground_distance(const Vector &origin, void *ignore, float max_dist); | 332 | float ground_distance(const Vector &origin, void *ignore, float max_dist); |
| 333 | bool 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) |
| 315 | bool bones_update(int idx, void *ent); | 336 | bool bones_update(int idx, void *ent); |
