diff options
| author | navewindre <boneyaard@gmail.com> | 2018-12-23 17:08:57 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-12-23 17:08:57 +0100 |
| commit | fef68b3881d7b1a60abe2be85dde27b7b0ada3c3 (patch) | |
| tree | 894a486c940cb4708053061638c8a936c8ef1af7 | |
| parent | 8a6e64f020047709f53ddd35797c511a5d3239fe (diff) | |
d
| -rw-r--r-- | cheat/internal_rewrite/c_base_player.cpp | 6 | ||||
| -rw-r--r-- | cheat/internal_rewrite/context.cpp | 4 | ||||
| -rw-r--r-- | cheat/internal_rewrite/lag_mgr.cpp | 16 | ||||
| -rw-r--r-- | cheat/internal_rewrite/ragebot_antiaim.cpp | 6 | ||||
| -rw-r--r-- | cheat/internal_rewrite/update_clientside_animation.cpp | 6 |
5 files changed, 24 insertions, 14 deletions
diff --git a/cheat/internal_rewrite/c_base_player.cpp b/cheat/internal_rewrite/c_base_player.cpp index 30044db..c2364a7 100644 --- a/cheat/internal_rewrite/c_base_player.cpp +++ b/cheat/internal_rewrite/c_base_player.cpp @@ -634,7 +634,7 @@ void c_base_player::validate_animation_layers( ) { for( size_t i{ }; i < m_AnimOverlay( ).GetSize( ); ++i ) {
auto& layer = m_AnimOverlay( ).GetElements( )[ i ];
layer.m_flCycle = std::clamp( layer.m_flCycle, 0.f, 1.f );
- layer.m_flWeight = std::clamp( layer.m_flWeight, 0.f, 1.f );
+ //layer.m_flWeight = std::clamp( layer.m_flWeight, 0.f, 1.f );
layer.m_player = this;
}
@@ -864,7 +864,7 @@ void c_base_player::fix_animations( bool reset, bool resolver_change ) { get_animstate( )->m_flGoalFeetYaw = get_animstate( )->m_flCurrentFeetYaw = feet_yaw;
}*/
- get_animstate( )->m_flFeetYawRate = 0.f;
+ //get_animstate( )->m_flFeetYawRate = 0.f;
//why?
//because this calls pAttachmentHelper->CalcAbsVelocity
@@ -1001,7 +1001,7 @@ void c_base_player::fix_animations( bool reset, bool resolver_change ) { m_angEyeAngles( ) = eye_angles;
m_flDuckAmount( ) = original_duck;
- get_animstate( )->m_flUnknownFraction = 0.f;
+ //get_animstate( )->m_flUnknownFraction = 0.f;
//clear occlusion for setupbones (pvs fix)
*( int* )( uintptr_t( this ) + 0xa30 ) = 0;
diff --git a/cheat/internal_rewrite/context.cpp b/cheat/internal_rewrite/context.cpp index cec25ba..4de1479 100644 --- a/cheat/internal_rewrite/context.cpp +++ b/cheat/internal_rewrite/context.cpp @@ -30,8 +30,8 @@ void c_context::on_cmove_end( user_cmd_t* cmd ) { //m_last_realangle.x = m_last_fakeangle.x; } - if( g_cheat.m_lagmgr.get_choked( ) == 1 ) { - m_thirdperson_angle = m_last_realangle; + if( !g_cheat.m_lagmgr.get_state( ) ) { + m_thirdperson_angle = cmd->m_viewangles; } m_thirdperson_angle.x = std::clamp( cmd->m_viewangles.x, -89.f, 89.f ); diff --git a/cheat/internal_rewrite/lag_mgr.cpp b/cheat/internal_rewrite/lag_mgr.cpp index 8f293e7..092cfe1 100644 --- a/cheat/internal_rewrite/lag_mgr.cpp +++ b/cheat/internal_rewrite/lag_mgr.cpp @@ -51,6 +51,9 @@ namespace features //2017 sucked //i hope 2018 goes better + //2018 sucked + //but 2019 will be better + if( !g_settings.rage.fakelag.mode( ) || !g_settings.rage.fakelag.ticks( ) ) { m_breaking_lc = false; @@ -63,9 +66,9 @@ namespace features auto weapon = g_ctx.m_local->get_weapon( ); - if( g_cheat.m_ragebot.m_antiaim->is_fakewalking( ) ) { - return; - } + //if( g_cheat.m_ragebot.m_antiaim->is_fakewalking( ) ) { + // return; + //} bool moving = g_ctx.m_local->m_vecVelocity( ).length2d( ) > 0.f; @@ -115,9 +118,13 @@ namespace features } } + bool send = true; static bool was_onground{ }; + if( !moving && ( g_ctx.m_local->m_fFlags( ) & FL_ONGROUND ) && g_settings.rage.anti_aim( ) && g_settings.rage.fake_yaw ) + send = false; + if( settings.in_move && ( g_ctx.m_local->m_fFlags( ) & FL_ONGROUND ) && moving ) { send = false; } @@ -206,7 +213,8 @@ namespace features } } - *m_sendpacket = !( get_choked( ) < 10 ); + *m_sendpacket = send || force_send; + if( *m_sendpacket ) { m_breaking_lc = delta.length2d( ) > 64.f; last_rand = ( 1.f + math::random_number( -settings.fluctuate, settings.fluctuate( ) ) * 0.01f ); diff --git a/cheat/internal_rewrite/ragebot_antiaim.cpp b/cheat/internal_rewrite/ragebot_antiaim.cpp index b109328..0e05e8a 100644 --- a/cheat/internal_rewrite/ragebot_antiaim.cpp +++ b/cheat/internal_rewrite/ragebot_antiaim.cpp @@ -537,11 +537,7 @@ namespace features }
if( is_fake ) {
- int jitter = g_settings.rage.edge_dtc_jitter;
- if( jitter ) {
- aim_angle.y += math::random_number< float >( -jitter, jitter );
- }
- aim_angle.y -= 180.f;
+ aim_angle.y -= 50.f;
}
else {
int jitter = g_settings.rage.edge_dtc_real_jitter;
diff --git a/cheat/internal_rewrite/update_clientside_animation.cpp b/cheat/internal_rewrite/update_clientside_animation.cpp index 9a0dd2b..b01d0f0 100644 --- a/cheat/internal_rewrite/update_clientside_animation.cpp +++ b/cheat/internal_rewrite/update_clientside_animation.cpp @@ -29,7 +29,13 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) { last_update = g_csgo.m_globals->m_curtime;
ent->get_animstate( )->m_iLastClientSideAnimationUpdateFramecount = g_csgo.m_globals->m_framecount;
+
+ float backup_time = ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime;
+
+ ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime = g_csgo.m_globals->m_curtime;
old_func( ecx_, edx_ );
+ ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime = backup_time;
+
if( !first_update ) {
g_ctx.m_local->restore_anim_data( true );
|
