diff options
Diffstat (limited to 'internal_rewrite/begin_lock.cpp')
| -rw-r--r-- | internal_rewrite/begin_lock.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal_rewrite/begin_lock.cpp b/internal_rewrite/begin_lock.cpp index 0417654..b7e310e 100644 --- a/internal_rewrite/begin_lock.cpp +++ b/internal_rewrite/begin_lock.cpp @@ -15,6 +15,18 @@ void __fastcall hooks::begin_lock( void* ecx, void* edx ) { // THIS IS PROLLY NO g_ctx.m_stage = FRAME_NET_UPDATE_POSTDATAUPDATE_START;
g_cheat.m_visuals.world_modulate( );
+ if( g_settings.rage.anti_aim && g_ctx.run_frame( ) ) {
+ auto& anims = g_ctx.m_local->get_animdata( ).m_animlayers;
+
+ for( size_t i{ }; i < 13; ++i ) {
+ auto& layer = g_ctx.m_local->m_AnimOverlay( ).GetElements( )[ i ];
+
+ if( layer.m_flWeight != anims.at( i ).m_flWeight || layer.m_flCycle != anims.at( i ).m_flCycle ) {
+ g_ctx.m_local->cache_anim_data( );
+ break;
+ }
+ }
+ }
//g_con->game_console_print( "net postdataupdate start\n" );
// FRAME_NET_UPDATE_POSTDATAUPDATE_START
|
