From a5f5dfd279deef761b77de88fb577429b488a4f7 Mon Sep 17 00:00:00 2001 From: navewindre Date: Thu, 29 Nov 2018 00:22:14 +0100 Subject: dsadsafdsfafs --- cheat/internal_rewrite/emit_sound.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cheat/internal_rewrite/emit_sound.cpp') diff --git a/cheat/internal_rewrite/emit_sound.cpp b/cheat/internal_rewrite/emit_sound.cpp index de4962b..f27bb4c 100644 --- a/cheat/internal_rewrite/emit_sound.cpp +++ b/cheat/internal_rewrite/emit_sound.cpp @@ -19,9 +19,12 @@ void __fastcall hooks::emit_sound( void* ecx_, void* edx_, void* filter, int ent volume = 0.f; // todo: fix this not being drawn - //if( g_settings.visuals.sound && ( strstr( sample, xors( "player/footsteps" ) ) || strstr( sample, xors( "player/land" ) ) ) && origin ) { - // g_cheat.m_visuals.store_sound( ent, *origin ); - //} + // it's not drawn cause the option isn't in menu you dumbhead + if( g_settings.visuals.sound && ( strstr( sample, xors( "player/footsteps" ) ) || strstr( sample, xors( "player/land" ) ) ) && origin ) { + g_cheat.m_visuals.store_sound( ent, *origin ); + } + + //a emit_sound_o( ecx_, 0, filter, ent, channel, sound, hash, sample, volume, attenuation, seed, flags, pitch, origin, direction, -- cgit v1.2.3