What's new

Welcome to HvH Forum!

SignUp Now! Download Free HvH CS2/CS:GO Cheats, CFG, LUA/JS Scripts, And More!


SignUp Now!

Request how to update patterns in cs2 cheat

Newbie HvHer
User ID
116393
Messages
16
Reactions
1
Level
6
C++:
#include "../darkside.hpp"

#include "../directx/directx.hpp"
#include "../features/anti_hit/anti_hit.hpp"
#include "../features/movement/movement.hpp"
#include "../features/eng_pred/eng_pred.hpp"
#include "../entity_system/entity.hpp"
#include "../features/skins/skins.hpp"
#include "../features/visuals/world.hpp"

#include "../valve/classes/c_envy_sky.hpp"
#include "../features/visuals/visuals.hpp"
#include "../features/rage_bot/rage_bot.hpp"
#include "../features/anim_sync/anim_sync.hpp"

using namespace hooks;

bool c_hooks::initialize( ) {

    MH_Initialize( );

    g_skins->dump_items( );

    create_move::m_create_move.hook( vmt::get_v_method( g_interfaces->m_csgo_input, 5 ), create_move::hk_create_move );
    enable_cursor::m_enable_cursor.hook( vmt::get_v_method( g_interfaces->m_input_system, 76 ), enable_cursor::hk_enable_cursor );

    validate_view_angles::m_validate_view_angles.hook( vmt::get_v_method( g_interfaces->m_csgo_input, 7 ), validate_view_angles::hk_validate_view_angles );

    mouse_input_enabled::m_mouse_input_enabled.hook( vmt::get_v_method( g_interfaces->m_csgo_input, 19 ), mouse_input_enabled::hk_mouse_input_enabled );

    present::m_present.hook( g_directx->m_present_address, present::hk_present );

    update_global_vars::m_update_global_vars.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 8B 0D ? ? ? ? 4C 8D 05 ? ? ? ? 48 85 D2" ), update_global_vars::hk_update_global_vars );

    frame_stage_notify::m_frame_stage_notify.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 5C 24 ? 56 48 83 EC ? 8B 05 ? ? ? ? 8D 5A" ), frame_stage_notify::hk_frame_stage_notify );

    override_view::m_override_view.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 57 41 56 41 57 48 83 EC ? 48 8B FA E8" ), override_view::hk_override_view );

    on_add_entity::m_on_add_entity.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 74 24 ? 57 48 83 EC ? 48 8B F9 41 8B C0 B9" ), on_add_entity::hk_on_add_entity );

    on_remove_entity::m_on_remove_entity.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 74 24 ? 57 48 83 EC ? 48 8B F9 41 8B C0 25" ), on_remove_entity::hk_on_remove_entity );

    on_level_init::m_on_level_init.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 5C 24 18 56 48 83 EC 30 48" ), on_level_init::hk_on_level_init );

    on_level_shutdown::m_on_level_shutdown.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 83 EC ? 48 8B 0D ? ? ? ? 48 8D 15 ? ? ? ? 45 33 C9 45 33 C0 48 8B 01 FF 50 ? 48 85 C0 74 ? 48 8B 0D ? ? ? ? 48 8B D0 4C 8B 01 41 FF 50 ? 48 83 C4" ), on_level_shutdown::hk_on_level_shutdown );

    update_sky_box::m_update_sky_box.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 8B C4 48 89 58 18 48 89 70 20 55 57 41 54 41 55" ), update_sky_box::hk_update_sky_box );

    draw_light_scene::m_draw_light_scene.hook( g_opcodes->scan( g_modules->m_modules.scenesystem_dll.get_name( ), "48 89 54 24 ? 53 41 56 41 57" ), draw_light_scene::hk_draw_light_scene );

    update_aggregate_scene_object::m_update_aggregate_scene_object.hook( g_opcodes->scan( g_modules->m_modules.scenesystem_dll.get_name( ), "48 89 5C 24 ? 48 89 6C 24 ? 56 57 41 54 41 56 41 57 48 83 EC ? 4C 8B F95" ), update_aggregate_scene_object::hk_update_aggregate_scene_object );

    draw_aggregate_scene_object::m_draw_aggregate_scene_object.hook( g_opcodes->scan( g_modules->m_modules.scenesystem_dll.get_name( ), "48 89 54 24 ? 55 57 41 55 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 49 63 F9" ), draw_aggregate_scene_object::hk_draw_aggregate_scene_object );

    update_post_processing::m_update_post_processing.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 5C 24 08 57 48 83 EC 60 80" ), update_post_processing::hk_update_post_processing );

    should_update_sequences::m_should_update_sequences.hook( g_opcodes->scan( g_modules->m_modules.animation_system.get_name( ), "48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC 20 49 8B 40 48" ), should_update_sequences::hk_should_update_sequences );

    //xref: FirstpersonLegsPrepass

    should_draw_legs::m_should_draw_legs.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 5C 24 ? 48 89 74 24 ? 48 89 7C 24 ? 55 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 01" ), should_draw_legs::hk_should_draw_legs );

    mark_interp_latch_flags_dirty::m_mark_interp_latch_flags_dirty.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "85 D2 0F 84 ? ? ? ? 55 57 48 83 EC" ), mark_interp_latch_flags_dirty::hk_mark_interp_latch_flags_dirty );

    draw_scope_overlay::m_draw_scope_overlay.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "4C 8B DC 53 56 57 48 83 EC" ), draw_scope_overlay::hk_draw_scope_overlay );

    get_field_of_view::m_get_field_of_view.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "40 53 48 83 EC ? 48 8B D9 E8 ? ? ? ? 48 85 C0 74 ? 48 8B C8 48 83 C4" ), get_field_of_view::hk_get_field_of_view );

    LOG_INFO( xorstr_( "[+] Hooks initialization completed!" ) );

    return true;

}

how to update this sdk
 
Last edited by a moderator:
C++:
#include "../darkside.hpp"

#include "../directx/directx.hpp"
#include "../features/anti_hit/anti_hit.hpp"
#include "../features/movement/movement.hpp"
#include "../features/eng_pred/eng_pred.hpp"
#include "../entity_system/entity.hpp"
#include "../features/skins/skins.hpp"
#include "../features/visuals/world.hpp"

#include "../valve/classes/c_envy_sky.hpp"
#include "../features/visuals/visuals.hpp"
#include "../features/rage_bot/rage_bot.hpp"
#include "../features/anim_sync/anim_sync.hpp"

using namespace hooks;

bool c_hooks::initialize( ) {

    MH_Initialize( );

    g_skins->dump_items( );

    create_move::m_create_move.hook( vmt::get_v_method( g_interfaces->m_csgo_input, 5 ), create_move::hk_create_move );
    enable_cursor::m_enable_cursor.hook( vmt::get_v_method( g_interfaces->m_input_system, 76 ), enable_cursor::hk_enable_cursor );

    validate_view_angles::m_validate_view_angles.hook( vmt::get_v_method( g_interfaces->m_csgo_input, 7 ), validate_view_angles::hk_validate_view_angles );

    mouse_input_enabled::m_mouse_input_enabled.hook( vmt::get_v_method( g_interfaces->m_csgo_input, 19 ), mouse_input_enabled::hk_mouse_input_enabled );

    present::m_present.hook( g_directx->m_present_address, present::hk_present );

    update_global_vars::m_update_global_vars.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 8B 0D ? ? ? ? 4C 8D 05 ? ? ? ? 48 85 D2" ), update_global_vars::hk_update_global_vars );

    frame_stage_notify::m_frame_stage_notify.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 5C 24 ? 56 48 83 EC ? 8B 05 ? ? ? ? 8D 5A" ), frame_stage_notify::hk_frame_stage_notify );

    override_view::m_override_view.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 57 41 56 41 57 48 83 EC ? 48 8B FA E8" ), override_view::hk_override_view );

    on_add_entity::m_on_add_entity.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 74 24 ? 57 48 83 EC ? 48 8B F9 41 8B C0 B9" ), on_add_entity::hk_on_add_entity );

    on_remove_entity::m_on_remove_entity.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 74 24 ? 57 48 83 EC ? 48 8B F9 41 8B C0 25" ), on_remove_entity::hk_on_remove_entity );

    on_level_init::m_on_level_init.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 5C 24 18 56 48 83 EC 30 48" ), on_level_init::hk_on_level_init );

    on_level_shutdown::m_on_level_shutdown.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 83 EC ? 48 8B 0D ? ? ? ? 48 8D 15 ? ? ? ? 45 33 C9 45 33 C0 48 8B 01 FF 50 ? 48 85 C0 74 ? 48 8B 0D ? ? ? ? 48 8B D0 4C 8B 01 41 FF 50 ? 48 83 C4" ), on_level_shutdown::hk_on_level_shutdown );

    update_sky_box::m_update_sky_box.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 8B C4 48 89 58 18 48 89 70 20 55 57 41 54 41 55" ), update_sky_box::hk_update_sky_box );

    draw_light_scene::m_draw_light_scene.hook( g_opcodes->scan( g_modules->m_modules.scenesystem_dll.get_name( ), "48 89 54 24 ? 53 41 56 41 57" ), draw_light_scene::hk_draw_light_scene );

    update_aggregate_scene_object::m_update_aggregate_scene_object.hook( g_opcodes->scan( g_modules->m_modules.scenesystem_dll.get_name( ), "48 89 5C 24 ? 48 89 6C 24 ? 56 57 41 54 41 56 41 57 48 83 EC ? 4C 8B F95" ), update_aggregate_scene_object::hk_update_aggregate_scene_object );

    draw_aggregate_scene_object::m_draw_aggregate_scene_object.hook( g_opcodes->scan( g_modules->m_modules.scenesystem_dll.get_name( ), "48 89 54 24 ? 55 57 41 55 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 49 63 F9" ), draw_aggregate_scene_object::hk_draw_aggregate_scene_object );

    update_post_processing::m_update_post_processing.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 5C 24 08 57 48 83 EC 60 80" ), update_post_processing::hk_update_post_processing );

    should_update_sequences::m_should_update_sequences.hook( g_opcodes->scan( g_modules->m_modules.animation_system.get_name( ), "48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC 20 49 8B 40 48" ), should_update_sequences::hk_should_update_sequences );

    //xref: FirstpersonLegsPrepass

    should_draw_legs::m_should_draw_legs.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "48 89 5C 24 ? 48 89 74 24 ? 48 89 7C 24 ? 55 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 01" ), should_draw_legs::hk_should_draw_legs );

    mark_interp_latch_flags_dirty::m_mark_interp_latch_flags_dirty.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "85 D2 0F 84 ? ? ? ? 55 57 48 83 EC" ), mark_interp_latch_flags_dirty::hk_mark_interp_latch_flags_dirty );

    draw_scope_overlay::m_draw_scope_overlay.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "4C 8B DC 53 56 57 48 83 EC" ), draw_scope_overlay::hk_draw_scope_overlay );

    get_field_of_view::m_get_field_of_view.hook( g_opcodes->scan( g_modules->m_modules.client_dll.get_name( ), "40 53 48 83 EC ? 48 8B D9 E8 ? ? ? ? 48 85 C0 74 ? 48 8B C8 48 83 C4" ), get_field_of_view::hk_get_field_of_view );

    LOG_INFO( xorstr_( "[+] Hooks initialization completed!" ) );

    return true;

}

how to update this sdk
juts look for some repo with signatures and offsets, or some updated internal src with signatures
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Top