Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void HandleBackUpResolve(C_BaseEntity* pEnt) {
- if (!c_config::get().aimbot_resolver)
- return;
- if (pEnt->GetTeam() == Globals::LocalPlayer->GetTeam())
- return;
- auto animstate = pEnt->AnimState();
- if (animstate) {
- auto v9 = animstate->m_iLastClientSideAnimationUpdateFramecount - animstate->m_flLastClientSideAnimationUpdateTime;
- auto speedfraction = 0.0;
- if (animstate->m_flFeetSpeedForwardsOrSideWays < 0.0)
- speedfraction = 0.0;
- else
- speedfraction = animstate->m_flFeetSpeedForwardsOrSideWays;
- auto v2 = (*animstate->pad * -0.30000001 - 0.19999999) * speedfraction;
- auto v18 = v2;
- auto v3 = v2 + 1.0;
- auto v23 = v3;
- if (animstate->m_fDuckAmount > 0.0) {
- auto v29 = 0.0;
- if (animstate->m_flFeetSpeedUnknownForwardOrSideways < 0.0)
- v29 = 0.0;
- else
- v29 = animstate->m_flFeetSpeedUnknownForwardOrSideways;
- }
- auto localplayer = Globals::LocalPlayer;
- if (localplayer) {
- for (auto i = 0; i <= (g_pGlobalVars->maxClients); i++) {
- auto player = g_pEntityList->GetClientEntity(i);
- if (player && player->IsAlive()) {
- auto v28 = player->GetEyeAngles().y == 0.0 ? -58 : 58;
- if (v28)
- return;
- auto v27 = player->GetEyeAngles().y == 0.0 ? -89 : 89;
- if (v27)
- return;
- auto v26 = player->GetEyeAngles().y == 0.0 ? -79 : 79;
- if (v26)
- return;
- auto v25 = player->GetEyeAngles().y == 0.0 ? -125 : 125;
- if (v25)
- return;
- auto v24 = player->GetEyeAngles().y == 0.0 ? -78 : 78;
- if (v24)
- return;
- }
- }
- auto v8 = 0;
- auto v7 = 0;
- C_BaseEntity* Entity;
- for (auto a2a = 0; a2a < Entity->GetNumAnimOverlays(); ++a2a) {
- auto v32 = localplayer->GetAnimOverlay4(a2a);
- if (v32 && localplayer->GetSequence() == 979 && v32 + 44 != v32 + 28)
- auto v6 = localplayer->GetLowerBodyYaw();
- }
- auto anim_state = localplayer->AnimStatev2();
- auto v20 = anim_state->velocity_subtract_z * v23;
- auto a1 = anim_state->velocity_subtract_y * v23;
- auto v30 = 0.0;
- auto eye_angles_y = anim_state->eye_angles_y;
- auto goal_feet_yaw = anim_state->goal_feet_yaw;
- auto v22 = eye_angles_y - goal_feet_yaw;
- if (v20 < v22) {
- auto v11 = v20;
- v30 = eye_angles_y - v11;
- }
- else if (a1 > v22) {
- auto v12 = a1;
- v30 = v12 + eye_angles_y;
- }
- auto v36 = std::fmodf(v30, 360.0);
- if (v36 > 180.0)
- v36 = v36 - 360.0;
- if (v36 < 180.0)
- v36 = v36 + 360.0;
- anim_state->goal_feet_yaw = v36;
- auto misses = Globals::MissedShots[localplayer->EntIndex()];
- if (misses > 2) {
- auto v19 = Globals::MissedShots[localplayer->EntIndex()] % 4;
- switch (v19)
- {
- case 0:
- anim_state->goal_feet_yaw = anim_state->goal_feet_yaw + 45.0;
- break;
- case 1:
- anim_state->goal_feet_yaw = anim_state->goal_feet_yaw - 45.0;
- break;
- case 2:
- anim_state->goal_feet_yaw = anim_state->goal_feet_yaw - 30.0;
- break;
- case 3:
- anim_state->goal_feet_yaw = anim_state->goal_feet_yaw + 30.0;
- default:
- return;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement