summaryrefslogtreecommitdiff
path: root/internal_rewrite/ragebot_antiaim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/ragebot_antiaim.cpp')
-rw-r--r--internal_rewrite/ragebot_antiaim.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal_rewrite/ragebot_antiaim.cpp b/internal_rewrite/ragebot_antiaim.cpp
index c73ad54..efb225c 100644
--- a/internal_rewrite/ragebot_antiaim.cpp
+++ b/internal_rewrite/ragebot_antiaim.cpp
@@ -119,7 +119,7 @@ namespace features
pitch = math::vector_angles( g_ctx.m_local->get_eye_pos( ), t->get_hitbox_pos( 0 ) ).x;
}
else
- pitch = -10.f;
+ pitch = 0.f;
real_angle.x = pitch;
}
@@ -586,10 +586,11 @@ namespace features
float speed = velocity->length( );
if( speed >= 0.1f ) {
- float friction = sv_friction->get_float( );
+ //if it works, it works
+ float friction = sv_friction->get_float( ) * 1.12f;
float stop_speed = std::max< float >( speed, sv_stopspeed->get_float( ) );
float time = std::max< float >( g_csgo.m_globals->m_interval_per_tick, g_csgo.m_globals->m_frametime );
- *velocity *= std::max< float >( 0.f, speed - friction * stop_speed * time / speed );
+ *velocity *= std::max< float >( 0.f, speed - friction * stop_speed * time / speed );
}
};