diff options
Diffstat (limited to '')
| -rw-r--r-- | src/features.h | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/src/features.h b/src/features.h new file mode 100644 index 0000000..6890aa6 --- /dev/null +++ b/src/features.h | |||
| @@ -0,0 +1,136 @@ | |||
| 1 | #ifndef HL2H_FEATURES_H | ||
| 2 | #define HL2H_FEATURES_H | ||
| 3 | |||
| 4 | #include "core.h" | ||
| 5 | #include "settings.h" | ||
| 6 | |||
| 7 | // --------------------------------------------------------------------------- | ||
| 8 | // combat | ||
| 9 | // --------------------------------------------------------------------------- | ||
| 10 | bool aimbot_apply(CUserCmd *cmd); | ||
| 11 | bool triggerbot_apply(CUserCmd *cmd); | ||
| 12 | bool silent_aim_apply(CUserCmd *cmd); | ||
| 13 | bool melee_weapon_active(void *local_ent); | ||
| 14 | bool gravity_gun_active(void *local_ent); | ||
| 15 | bool melee_aimbot_apply(CUserCmd *cmd, bool gravity); | ||
| 16 | bool spread_control_apply(CUserCmd *cmd, void *local_ent); | ||
| 17 | int spread_best_seed(int pellets); | ||
| 18 | |||
| 19 | // --------------------------------------------------------------------------- | ||
| 20 | // cross-file declarations | ||
| 21 | // --------------------------------------------------------------------------- | ||
| 22 | void note_modified(const CUserCmd *cmd, int flags, const float *vel); | ||
| 23 | CUserCmd *get_usercmd(int seq); | ||
| 24 | void input_clear_mouse_states(); | ||
| 25 | void fix_verified_crc(int seq, uint32_t crc); | ||
| 26 | uint32_t usercmd_checksum(const CUserCmd *c); | ||
| 27 | bool find_input_global(); | ||
| 28 | void resolve_netvars(); | ||
| 29 | bool console_cmd(const char *cmd); | ||
| 30 | bool cvar_set_int(const char *name, int value); | ||
| 31 | void fullbright_update(); | ||
| 32 | void fullbright_invalidate(); | ||
| 33 | void world_tint_update(); | ||
| 34 | void world_tint_invalidate(); | ||
| 35 | void fog_update(); | ||
| 36 | void fog_invalidate(); | ||
| 37 | void skybox_update(); | ||
| 38 | void skybox_invalidate(); | ||
| 39 | void skybox_reload_image(); | ||
| 40 | bool resolve_server_netvars(); | ||
| 41 | int server_entity_health(int idx, int *maxhealth, int *lifestate, void **base_out); | ||
| 42 | // Authoritative server velocity; client-side m_vecVelocity is not networked for | ||
| 43 | // NPCs. Returns false when the server interface or datamap field is missing. | ||
| 44 | bool server_entity_velocity(int idx, Vector *out); | ||
| 45 | bool server_set_velocity_z(int idx, float vz); | ||
| 46 | int server_active_weapon(int idx); | ||
| 47 | int server_npc_relation(int idx, int local_idx); | ||
| 48 | bool server_npc_has_follow_target(int idx); | ||
| 49 | int server_npc_state(int idx); | ||
| 50 | int server_npc_takedamage(int idx); | ||
| 51 | int server_player_armor(int idx); | ||
| 52 | int server_player_ammo(int idx, int type); | ||
| 53 | uint32_t server_player_weapon(int idx, int slot); | ||
| 54 | float server_grenade_detonate(int idx); | ||
| 55 | float server_grenade_radius(int idx); | ||
| 56 | int server_grenade_thrower(int idx); | ||
| 57 | int server_item_juice(int idx); | ||
| 58 | int server_entity_count(); | ||
| 59 | void *server_entity_base(int idx); | ||
| 60 | const char *server_entity_classname(int idx); | ||
| 61 | bool server_trigger_info(int idx, char *map, size_t mapn, Vector &mins, | ||
| 62 | Vector &maxs); | ||
| 63 | int server_npc_turret_flags(int idx); | ||
| 64 | int server_model_index(void *base); | ||
| 65 | void find_modules(); | ||
| 66 | bool module_jump_slot(const char *path, const char *name, uintptr_t *vaddr, | ||
| 67 | uintptr_t *bias); | ||
| 68 | void init_conmsg(); | ||
| 69 | bool feature_active(int feature); // enabled AND bind held (or unbound) | ||
| 70 | bool feature_enabled(int feature); // enabled, regardless of bind | ||
| 71 | bool feature_has_bind(int feature); | ||
| 72 | bool feature_bind_held(int feature); | ||
| 73 | bool esp_option(int opt); | ||
| 74 | bool bhop_autostrafe_enabled(); | ||
| 75 | bool jumpbug_assist_enabled(); | ||
| 76 | bool spread_no_spread_enabled(); | ||
| 77 | bool spread_engine_enabled(); | ||
| 78 | bool aim_punch_enabled(); | ||
| 79 | unsigned aimbot_bone_mask(); | ||
| 80 | int aimbot_smooth_step(); | ||
| 81 | bool aimbot_vischeck_enabled(); | ||
| 82 | int aimbot_fov(); | ||
| 83 | bool aimbot_fov_circle(); | ||
| 84 | void aimbot_reset_lock(); | ||
| 85 | void silentaim_reset_lock(); | ||
| 86 | void *entitylist_get(int idx); | ||
| 87 | bool esp_is_npc_index(int idx); | ||
| 88 | bool esp_is_viewmodel_index(int idx); | ||
| 89 | int esp_npc_relation(int idx); | ||
| 90 | void *world_find_material(const char *name); | ||
| 91 | void chams_init(); | ||
| 92 | void chams_preload(); | ||
| 93 | int engine_get_local_player(); | ||
| 94 | void draw_text_col(int x, int y, const char *s, int r, int g, int b); | ||
| 95 | void draw_text_small_col(int x, int y, const char *s, int r, int g, int b); | ||
| 96 | void esp_draw(); | ||
| 97 | void esp_draw_fov_circle(); // aimbot cone, independent of the ESP toggle | ||
| 98 | void esp_reset_session(); // map change / respawn: clear per-map latches | ||
| 99 | void esp_draw_items(); | ||
| 100 | void esp_draw_projectiles(); | ||
| 101 | void prop_tint_update(); | ||
| 102 | void studio_props_init(); | ||
| 103 | bool world_to_screen(const Vector &w, float &sx, float &sy); | ||
| 104 | void set_silent_restore(const QAngle &angles); | ||
| 105 | bool is_visible(const Vector &eye, const Vector &point, | ||
| 106 | void *self = nullptr, void *target = nullptr); | ||
| 107 | void *trace_entity(const Vector &start, const Vector &end, void *ignore); | ||
| 108 | bool trace_solid_segment(const Vector &start, const Vector &end, void *ignore, | ||
| 109 | Vector &out_end, Vector &out_normal); | ||
| 110 | float ground_distance(const Vector &origin, void *ignore, float max_dist); | ||
| 111 | bool point_ground(const Vector &point, void *ignore); | ||
| 112 | |||
| 113 | // bones.cpp — client-side animated skeleton / hitbox access (see there) | ||
| 114 | bool bones_update(int idx, void *ent); | ||
| 115 | int bones_count(int idx); | ||
| 116 | int bone_find(int idx, const char *name); | ||
| 117 | int bone_parent(int idx, int bone); | ||
| 118 | bool bone_pos(int idx, int bone, Vector &out); | ||
| 119 | bool bone_is_skeleton_core(int idx, int bone); | ||
| 120 | int bone_nearest_core_parent(int idx, int bone); | ||
| 121 | bool bones_is_humanoid(int idx); | ||
| 122 | bool hitbox_center(int idx, const char *hitbox_name, Vector &out); | ||
| 123 | void bones_clear(); | ||
| 124 | bool head_position(int idx, Vector &out); | ||
| 125 | int aim_points(int idx, unsigned group_mask, Vector *out, int max); | ||
| 126 | |||
| 127 | void outer_draw(); | ||
| 128 | void gui_handle_input(); | ||
| 129 | void gui_draw(); | ||
| 130 | bool gui_is_open(); | ||
| 131 | bool gui_bind_capture_active(); | ||
| 132 | QAngle gui_frozen_view(); | ||
| 133 | void gui_config_init(); | ||
| 134 | void gui_config_write(FILE *f); | ||
| 135 | |||
| 136 | #endif | ||
