summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/hooks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cheat/internal_rewrite/hooks.cpp')
-rw-r--r--cheat/internal_rewrite/hooks.cpp4
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 ) );