summaryrefslogtreecommitdiff
path: root/internal_rewrite/visual_local.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-10-06 12:09:36 +0200
committernavewindre <boneyaard@gmail.com>2018-10-06 12:09:36 +0200
commit3e0d8199fec5b6979dc280533de69dded4260a0f (patch)
treed34767fd1041642024a41254c3488fb8e082b076 /internal_rewrite/visual_local.cpp
parent66dcb4cdcdb0d3efce0ba74c0c5ad79bc7c51111 (diff)
z\cxdtgs
Diffstat (limited to 'internal_rewrite/visual_local.cpp')
-rw-r--r--internal_rewrite/visual_local.cpp22
1 files changed, 15 insertions, 7 deletions
diff --git a/internal_rewrite/visual_local.cpp b/internal_rewrite/visual_local.cpp
index e77a128..dc311c0 100644
--- a/internal_rewrite/visual_local.cpp
+++ b/internal_rewrite/visual_local.cpp
@@ -110,19 +110,27 @@ namespace features
}
}
+ bool onground = g_ctx.m_local->m_fFlags( ) & FL_ONGROUND;
+ bool air_lag = g_settings.rage.fakelag.in_air;
+ bool move_lag = g_settings.rage.fakelag.in_move;
+
+ bool should_lag = ( air_lag && !onground ) || ( move_lag && onground );
+
if( g_settings.rage.fakelag.mode( ) &&
g_settings.rage.fakelag.ticks( ) &&
- g_settings.rage.fakelag.in_air( ) ) {
+ should_lag ) {
int min_dist = 64;
int max_ticks = g_settings.rage.fakelag.ticks;
- if( g_settings.rage.fakelag.mode == 2 ) {
- max_ticks += max_ticks * g_settings.rage.fakelag.fluctuate * 0.01f;
- max_ticks = math::min( max_ticks, 15 );
- }
+ max_ticks += g_settings.rage.fakelag.fluctuate * max_ticks * 0.01f;
+#ifdef _DEBUG
+ max_ticks = std::min( max_ticks, 16 );
+#else
+ max_ticks = std::min( max_ticks, 14 );
+#endif
float speed = g_ctx.m_local->m_vecVelocity( ).length2d( );
- if( speed > 255.f && speed * g_csgo.m_globals->m_interval_per_tick * max_ticks > 50 ) {
- bool breaking = g_cheat.m_lagmgr.is_breaking_lc( );
+ bool breaking = g_cheat.m_lagmgr.is_breaking_lc( );
+ if( speed * g_csgo.m_globals->m_interval_per_tick * max_ticks > 55 && speed >= 245.f || breaking ) {
draw_really_big_string( 9, ( cur_pos += offset ), clr_t( 110, 110, 110, 255 ), xors( "LC" ) );
draw_really_big_string( 11, cur_pos + 2, clr_t( 0, 0, 0, 255 ), xors( "LC" ) );
draw_really_big_string( 10, cur_pos, breaking ? esp_green( ) : esp_red( ), xors( "LC" ) );