summaryrefslogtreecommitdiff
path: root/internal_rewrite/begin_lock.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-11-13 00:42:56 +0100
committernavewindre <boneyaard@gmail.com>2018-11-13 00:42:56 +0100
commit5e5b152f4b62432655cc4069c1d95be636749b7d (patch)
tree3fc1433561fb6c90a04f3a671afca4df91a653a4 /internal_rewrite/begin_lock.cpp
parentd106396b02c486c9135c505ed82b73431f2c27de (diff)
yo sick
Diffstat (limited to 'internal_rewrite/begin_lock.cpp')
-rw-r--r--internal_rewrite/begin_lock.cpp29
1 files changed, 19 insertions, 10 deletions
diff --git a/internal_rewrite/begin_lock.cpp b/internal_rewrite/begin_lock.cpp
index 0210417..5312eec 100644
--- a/internal_rewrite/begin_lock.cpp
+++ b/internal_rewrite/begin_lock.cpp
@@ -15,17 +15,14 @@ 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( );
+ static float last_time = 0.f;
- g_ctx.m_local->cache_anim_data( );
+ if( g_ctx.run_frame( ) && g_ctx.m_local->is_valid( ) ) {
+ auto state = g_ctx.m_local->get_animstate( );
+ auto& anims = g_ctx.m_local->get_animdata( ).m_animlayers;
- /*
- if( g_settings.rage.anti_aim && g_ctx.run_frame( ) ) {
- static float last_time = 0.f;
-
- if( last_time != g_ctx.m_local->get_animstate( )->m_flLastClientSideAnimationUpdateTime ) {
- auto& anims = g_ctx.m_local->get_animdata( ).m_animlayers;
-
+ if( state && state->m_flLastClientSideAnimationUpdateTime != last_time ) {
for( size_t i{ }; i < 13; ++i ) {
auto& layer = g_ctx.m_local->m_AnimOverlay( ).GetElements( )[ i ];
@@ -34,13 +31,25 @@ void __fastcall hooks::begin_lock( void* ecx, void* edx ) { // THIS IS PROLLY NO
g_ctx.m_local->m_AnimOverlay( ).GetElements( ),
sizeof( C_AnimationLayer ) * 13 );
- last_time = g_ctx.m_local->get_animstate( )->m_flLastClientSideAnimationUpdateTime;
+ g_ctx.m_absyaw = state->m_flGoalFeetYaw;
+
+ last_time = state->m_flLastClientSideAnimationUpdateTime;
break;
}
}
}
}
- */
+
+
+
+ /*if( g_settings.rage.anti_aim && g_ctx.run_frame( ) ) {
+ static float last_time = 0.f;
+
+ if( last_time != g_ctx.m_local->get_animstate( )->m_flLastClientSideAnimationUpdateTime ) {
+
+ }
+ }*/
+
//g_con->game_console_print( "net postdataupdate start\n" );