diff options
| -rw-r--r-- | cheat/internal_rewrite/emit_sound.cpp | 9 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ragebot_antiaim.cpp | 2 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ui.h | 4 | ||||
| -rw-r--r-- | cheat/internal_rewrite/visual_player.cpp | 1 |
4 files changed, 9 insertions, 7 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, diff --git a/cheat/internal_rewrite/ragebot_antiaim.cpp b/cheat/internal_rewrite/ragebot_antiaim.cpp index 958a5c1..b391100 100644 --- a/cheat/internal_rewrite/ragebot_antiaim.cpp +++ b/cheat/internal_rewrite/ragebot_antiaim.cpp @@ -895,7 +895,7 @@ namespace features ent->m_vecOrigin( ),
g_ctx.m_local->m_vecOrigin( ) );
- yaw = ang.y + m_direction ? 90.f : -90.f;
+ yaw = ang.y + m_direction ? -90.f : 90.f;
}
}
else {
diff --git a/cheat/internal_rewrite/ui.h b/cheat/internal_rewrite/ui.h index 1dd6481..bf7cae9 100644 --- a/cheat/internal_rewrite/ui.h +++ b/cheat/internal_rewrite/ui.h @@ -533,8 +533,8 @@ namespace ui player_form->add_item( std::make_shared< ui::c_checkbox >( 0, 0, xors( "high ping warning" ), &g_settings.visuals.ping ) );
player_form->add_item( std::make_shared< ui::c_checkbox >( 0, 0, xors( "resolver indicator" ), &g_settings.visuals.resolver_indicator ) )->add_item(
std::make_shared< ui::c_color_picker >( 160, 4, 15, &g_settings.visuals.lby_bar_clr( ) ) );
- //player_form->add_item( std::make_shared< ui::c_checkbox >( 0, 0, xors( "sound" ), &g_settings.visuals.sound ) )->set_cond( [ ]( ) { return !g_settings.misc.hide_from_obs; } );
- //player_form->add_item( std::make_shared< ui::c_slider< int > >( 0, 0, 120, 220, 500, &g_settings.visuals.sound_range ) )->set_cond( [ ]( ) { return g_settings.visuals.sound && !g_settings.misc.hide_from_obs; } );
+ player_form->add_item( std::make_shared< ui::c_checkbox >( 0, 0, xors( "sound" ), &g_settings.visuals.sound ) )->set_cond( [ ]( ) { return !g_settings.misc.hide_from_obs; } );
+ player_form->add_item( std::make_shared< ui::c_slider< int > >( 0, 0, 120, 220, 500, &g_settings.visuals.sound_range ) )->set_cond( [ ]( ) { return g_settings.visuals.sound && !g_settings.misc.hide_from_obs; } );
}
auto hud_form = std::make_shared< ui::c_form >( 0, 0, 215, 0, xors( "hud" ) ); {
diff --git a/cheat/internal_rewrite/visual_player.cpp b/cheat/internal_rewrite/visual_player.cpp index f14a0d7..b685adc 100644 --- a/cheat/internal_rewrite/visual_player.cpp +++ b/cheat/internal_rewrite/visual_player.cpp @@ -1070,7 +1070,6 @@ namespace features if( m_sounds.empty( ) )
return;
-
for( size_t i{ }; i < m_sounds.size( ) && !m_sounds.empty( ); ++i ) {
auto& tr = m_sounds[ i ];
|
