Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __fastcall Hooked_FrameStageNotify ( void* ecx, void* edx, unsigned int curStage )
- {
- Vector3* aimPunch = nullptr;
- Vector3* viewPunch = nullptr;
- Vector3 punchAim, punchView;
- if ( curStage == 5 )
- {
- if ( m_pLocalEntity && !m_pLocalEntity->IsDead () )
- {
- viewPunch = (Vector3*)( m_pLocalEntity + NetVar::Entity::m_Local + NetVar::Entity::m_viewPunchAngle );
- aimPunch = (Vector3*)( m_pLocalEntity + NetVar::Entity::m_Local + NetVar::Entity::m_aimPunchAngle );
- punchAim = *aimPunch;
- punchView = *viewPunch;
- aimPunch->Init ();
- viewPunch->Init ();
- }
- }
- m_pClientHook->GetMethod<FrameStageNotifyFn> ( ID_FRAME_STAGE_NOTIFY )( ecx, curStage );
- if ( aimPunch && viewPunch )
- {
- *aimPunch = punchAim;
- *viewPunch = punchView;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement