From fef68b3881d7b1a60abe2be85dde27b7b0ada3c3 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 23 Dec 2018 17:08:57 +0100 Subject: d --- cheat/internal_rewrite/c_base_player.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cheat/internal_rewrite/c_base_player.cpp') 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; -- cgit v1.2.3 From f41bf6509390f12a4252f40daf0209e7a7d64666 Mon Sep 17 00:00:00 2001 From: navewindre Date: Mon, 24 Dec 2018 00:36:10 +0100 Subject: d --- cheat/internal_rewrite/c_base_player.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cheat/internal_rewrite/c_base_player.cpp') diff --git a/cheat/internal_rewrite/c_base_player.cpp b/cheat/internal_rewrite/c_base_player.cpp index c2364a7..d0c8272 100644 --- a/cheat/internal_rewrite/c_base_player.cpp +++ b/cheat/internal_rewrite/c_base_player.cpp @@ -614,8 +614,8 @@ void c_base_player::do_ent_interpolation( bool reset ) { if( !isfinite( vec_lerp[ i ] ) ) return; - byte backup = *( byte* )( uintptr_t( this ) + 0x270 ); - *( byte* )( uintptr_t( this ) + 0x270 ) = 0; + byte backup = *( byte* )( uintptr_t( this ) + 0x274 ); + *( byte* )( uintptr_t( this ) + 0x274 ) = 0; restore_anim_data( true ); @@ -627,7 +627,7 @@ void c_base_player::do_ent_interpolation( bool reset ) { ce( )->SetupBones( nullptr, -1, BONE_USED_BY_ANYTHING, g_csgo.m_globals->m_curtime ); this->m_iMostRecentModelBoneCounter( )++; - *( byte* )( uintptr_t( this ) + 0x270 ) = backup; + *( byte* )( uintptr_t( this ) + 0x274 ) = backup; } void c_base_player::validate_animation_layers( ) { @@ -1006,8 +1006,8 @@ void c_base_player::fix_animations( bool reset, bool resolver_change ) { //clear occlusion for setupbones (pvs fix) *( int* )( uintptr_t( this ) + 0xa30 ) = 0; - byte backup = get< byte >( 0x270 ); - get< byte >( 0x270 ) = 0; + byte backup = get< byte >( 0x274 ); + get< byte >( 0x274 ) = 0; invalidate_bone_cache( ); ce( )->SetupBones( nullptr, -1, BONE_USED_BY_ANYTHING, anim_time ); @@ -1022,7 +1022,7 @@ void c_base_player::fix_animations( bool reset, bool resolver_change ) { //disable animations again m_bClientSideAnimation( ) = false; - get< byte >( 0x270 ) = backup; + get< byte >( 0x274 ) = backup; } player_info_t c_base_player::get_info( ) { -- cgit v1.2.3