summaryrefslogtreecommitdiff
path: root/internal_rewrite/ragebot_antiaim.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-11-13 00:42:56 +0100
committernavewindre <boneyaard@gmail.com>2018-11-13 00:42:56 +0100
commit5e5b152f4b62432655cc4069c1d95be636749b7d (patch)
tree3fc1433561fb6c90a04f3a671afca4df91a653a4 /internal_rewrite/ragebot_antiaim.cpp
parentd106396b02c486c9135c505ed82b73431f2c27de (diff)
yo sick
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 );
}
};