From 96de4961c447d7009ba52b6bf04d4b7bfe487ab1 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 28 Nov 2018 22:02:33 +1300 Subject: fixed emitsound hook --- cheat/internal_rewrite/hooks.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cheat/internal_rewrite/hooks.cpp') diff --git a/cheat/internal_rewrite/hooks.cpp b/cheat/internal_rewrite/hooks.cpp index e786a2b..685d7ea 100644 --- a/cheat/internal_rewrite/hooks.cpp +++ b/cheat/internal_rewrite/hooks.cpp @@ -33,6 +33,7 @@ namespace hooks { decltype( &play_sound ) play_sound_o; decltype( &convar_getint ) convar_getint_o; decltype( &packet_start ) packet_start_o; + decltype(&emit_sound) emit_sound_o; } hooks::c_netvar_proxy hooks::lby_proxy; @@ -82,6 +83,9 @@ bool hooks::commit( factory::c_csgo* instance ) { scene_end_o = d->create_hook( &hooks::scene_end, instance->m_render_view->get_old_function< void* >( 9 ) ); get_screen_size_o = d->create_hook( &hooks::get_screen_size, instance->m_surface->get_old_function< void* >( 44 ) ); + // this has annoyed me for so long + emit_sound_o = d->create_hook(&hooks::emit_sound, instance->m_engine_sound->get_old_function< void * >(5)); + on_screen_size_changed_o = d->create_hook( &hooks::on_screen_size_changed, instance->m_surface->get_old_function< void* >( 116 ) ); play_sound_o = d->create_hook( &hooks::play_sound, instance->m_surface->get_old_function< void* >( 82 ) ); material_system_o = d->create_hook( &hooks::material_system, instance->m_mat_system->get_old_function< void* >( 21 ) ); -- cgit v1.2.3