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.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cheat/internal_rewrite/c_base_player.cpp b/cheat/internal_rewrite/c_base_player.cpp
index 30044db..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,14 +627,14 @@ 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( ) {
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,13 +1001,13 @@ 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;
- 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( ) {