summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/c_base_player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cheat/internal_rewrite/c_base_player.cpp')
-rw-r--r--cheat/internal_rewrite/c_base_player.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/cheat/internal_rewrite/c_base_player.cpp b/cheat/internal_rewrite/c_base_player.cpp
index 981f63b..865f809 100644
--- a/cheat/internal_rewrite/c_base_player.cpp
+++ b/cheat/internal_rewrite/c_base_player.cpp
@@ -212,14 +212,14 @@ void c_base_player::invalidate_physics_recursive( int flags ) {
}
}
-void c_base_player::update_clientside_animation() {
- bool backup = m_bClientSideAnimation();
- m_bClientSideAnimation() = true;
+void c_base_player::update_clientside_animation( ) {
+ bool backup = m_bClientSideAnimation( );
+ m_bClientSideAnimation( ) = true;
- using fn = void(__fastcall*)(void*);
- pattern::first_code_match<fn>(g_csgo.m_chl.dll(), xors("55 8B EC 51 56 8B F1 80 BE ? ? ? ? ? 74 36"))(this);
+ using fn = void( __fastcall* )( void* );
+ pattern::first_code_match<fn>( g_csgo.m_chl.dll( ), xors( "55 8B EC 51 56 8B F1 80 BE ? ? ? ? ? 74 36" ) )( this );
- m_bClientSideAnimation() = backup;
+ m_bClientSideAnimation( ) = backup;
}
@@ -582,7 +582,8 @@ void c_base_player::do_ent_interpolation( bool reset ) {
if( !lerp )
return;
- if( anim_data->m_last_interp_origin.dist_to( anim_data->m_interp_origin ) > 64.f )
+ //yes
+ if( anim_data->m_last_interp_origin.dist_to( anim_data->m_interp_origin ) > 128.f )
return;
for( size_t i{ }; i < 3; ++i ) {