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