diff options
| author | navewindre <boneyaard@gmail.com> | 2018-11-29 00:22:14 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-11-29 00:22:14 +0100 |
| commit | a5f5dfd279deef761b77de88fb577429b488a4f7 (patch) | |
| tree | b9680896c3a1c534446a713d9a4a4fd1002c515a /cheat/internal_rewrite/emit_sound.cpp | |
| parent | c163c5575af4d1e7755510b03a7cd7809869eeef (diff) | |
dsadsafdsfafs
Diffstat (limited to 'cheat/internal_rewrite/emit_sound.cpp')
| -rw-r--r-- | cheat/internal_rewrite/emit_sound.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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, |
