summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/emit_sound.cpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2018-11-29 12:27:54 +1300
committerboris <wzn@moneybot.cc>2018-11-29 12:27:54 +1300
commitf3e9e0adc48dc6a78527a078c847f326cfd21469 (patch)
tree3b973aa7dc8199be191c3cc3662821f3be095056 /cheat/internal_rewrite/emit_sound.cpp
parentfaf3603d97986f75b36da2010faad303a7e289cf (diff)
parenta5f5dfd279deef761b77de88fb577429b488a4f7 (diff)
Merge remote-tracking branch 'origin/master'
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,