diff options
| author | navewindre <boneyaard@gmail.com> | 2018-12-24 00:36:10 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-12-24 00:36:10 +0100 |
| commit | f41bf6509390f12a4252f40daf0209e7a7d64666 (patch) | |
| tree | 79ed2c592ee15bc0e97a6d2f9c2a92226281009e /cheat/internal_rewrite/update_clientside_animation.cpp | |
| parent | fef68b3881d7b1a60abe2be85dde27b7b0ada3c3 (diff) | |
d
Diffstat (limited to 'cheat/internal_rewrite/update_clientside_animation.cpp')
| -rw-r--r-- | cheat/internal_rewrite/update_clientside_animation.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cheat/internal_rewrite/update_clientside_animation.cpp b/cheat/internal_rewrite/update_clientside_animation.cpp index b01d0f0..243d760 100644 --- a/cheat/internal_rewrite/update_clientside_animation.cpp +++ b/cheat/internal_rewrite/update_clientside_animation.cpp @@ -40,9 +40,8 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) { if( !first_update ) {
g_ctx.m_local->restore_anim_data( true );
- ent->set_abs_angles( vec3_t( 0, ent->get_animstate( )->m_flGoalFeetYaw, 0 ) );
- bool backup = ent->get_animstate( )->m_bOnGround;
- ent->get_animstate( )->m_bOnGround = false;
+ ent->set_abs_angles( vec3_t( 0, g_ctx.m_absyaw, 0 ) );
+ //ent->get_animstate( )->m_bOnGround = false;
ent->invalidate_bone_cache( );
@@ -58,8 +57,10 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) { }
}
+ byte backup = ent->get< byte >( 0x274 );
+ ent->get< byte >( 0x274 ) = 0;
ent->ce( )->SetupBones( nullptr, 128, BONE_USED_BY_ANYTHING, 0.f );
- ent->get_animstate( )->m_bOnGround = backup;
+ ent->get< byte >( 0x274 ) = backup;
}
first_update = false;
|
