diff options
| author | boris <wzn@moneybot.cc> | 2018-11-28 22:02:33 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-11-28 22:02:33 +1300 |
| commit | 96de4961c447d7009ba52b6bf04d4b7bfe487ab1 (patch) | |
| tree | d2a2135529d8682ca75055a81bc5cee9e0aad00e /cheat/internal_rewrite/hooks.cpp | |
| parent | cf9a9d4fd2cf95a5c534302a3eb776f74d5dd6cf (diff) | |
fixed emitsound hook
Diffstat (limited to 'cheat/internal_rewrite/hooks.cpp')
| -rw-r--r-- | cheat/internal_rewrite/hooks.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 ) ); |
