Jump to content

ONETAP.COM SIDE ANGLE RESOLVER


Dana22222
 Share

Recommended Posts

void OneTap::Features::Ragebot::AngleResolver (void *player, LagRecord *data, LagRecord *prevData) {

  if (data || prevData) {

      data->m_way = 0; //reset value.

      if ( *(player + 0x370) ) {
        if (data->m_flags & 1 && prevData->m_flags & 1) { //FL_ONGROUND.
          float speed = ((data->m_vecVelocity.y * data->m_vecVelocity.y) + (data->m_vecVelocity.z * data->m_vecVelocity.z));
          if (speed <= 0.1 ) {
            if (data->m_serverLayers[C_SDK::BaseAnimations::Type::ADJUST_WEIGHT] == 0.0 && data->m_serverLayers[C_SDK::BaseAnimations::Type::ADJUST_CYCLE] == 0.0) {
              angles = data->m_resolve.m_eyeAngles.y;
              data->m_way = 1;
              delta = C_SDK::Utils::Math::AngleDiff (angles, *(player + 0xDD));
              data->m_side = 2 * (delta.clamp <= 0.0) - 1;
            }
         }
        else if (!(data->m_serverLayers[C_SDK::BaseAnimations::Type::LEAN] * 1000.0) && data->m_serverLayers[C_SDK::BaseAnimations::Type::MOVEMENT] * 1000.0 == prevData->m_serverLayers[C_SDK::BaseAnimations::Type::MOVEMENT] * 1000.0 && !*(player + 0x384) ) {

          //As you can see: 0, 1, 2 - None, Left, Right sides.

          float firstDelta = abs (data->m_serverLayers[C_SDK::BaseAnimations::Type::MOVEMENT].playRate - data->m_resolverLayers[0] [C_SDK::BaseAnimations::Type::MOVEMENT].playRate),
          secondDelta = abs (data->m_serverLayers[C_SDK::BaseAnimations::Type::MOVEMENT].playRate - data->m_resolverLayers[1][C_SDK::BaseAnimations::Type::MOVEMENT].playRate),
          thirdDelta = abs (data->m_serverLayers[C_SDK::BaseAnimations::Type::MOVEMENT].playRate - data->m_resolverLayers[2][C_SDK::BaseAnimations::Type::MOVEMENT].playRate);

          if (firstDelta < secondDelta || thirdDelta <= secondDelta || (secondDelta * 1000.0) ) {
            if (firstDelta >= thirdDelta && secondDelta > thirdDelta && ! (thirdDelta* 1000.0) ) {
              data->m_way = 1;
              data->m_side = 1; //Left side.
            }
          } else {
            data->m_way = 1;
            data->m_side = -1; //Right side.
          }
        }
      }
    }
}

 

BTW ITS USELESS IF U CAN NOT PASTE IT NORMALLY. CUZ OT USES FREESTAND AND I WILL POST THAT TO IN A FEW MOMENTS.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...