Jump to content

xeross155

Members
  • Posts

    702
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by xeross155

  1. Thanks but when i git apply then I have this result:

    Anticheat_313_OK.diff:52: trailing whitespace.
    Anticheat_313_OK.diff:522: trailing whitespace.
    Anticheat_313_OK.diff:527: trailing whitespace.
    Anticheat_313_OK.diff:530: trailing whitespace.
    Anticheat_313_OK.diff:535: trailing whitespace.
    warning: squelched 3 whitespace errors
    warning: 8 lines add whitespace errors.
    

    Why and when fix it ?

    Sorry for my english but i am french :)

    Dont need fixing it applied but just some whitespace not matching. Doesn't affect anything afaik.

  2. I've checked insiders mangos and the knockback function is as follows:

    void WorldSession::HandleMoveKnockBackAck( WorldPacket & recv_data )
    {
       sLog.outDebug("CMSG_MOVE_KNOCK_BACK_ACK");
    
       MovementInfo movementInfo;
       uint32 unk1,unk2,unk3;
       recv_data >> unk1 >> unk2 >> unk3;
       ReadMovementInfo(recv_data, &movementInfo);
    
       //Save movement flags
       _player->m_movementInfo.SetMovementFlags(MovementFlags(movementInfo.flags));
    
    #ifdef MOVEMENT_ANTICHEAT_DEBUG
       sLog.outBasic("%s CMSG_MOVE_KNOCK_BACK_ACK: tm:%d ftm:%d | %f,%f,%fo(%f) [%X]",GetPlayer()->GetName(),movementInfo.time,movementInfo.fallTime,movementInfo.x,movementInfo.y,movementInfo.z,movementInfo.o,movementInfo.flags);
       sLog.outBasic("%s CMSG_MOVE_KNOCK_BACK_ACK additional: vspeed:%f, hspeed:%f",GetPlayer()->GetName(), movementInfo.j_unk, movementInfo.j_xyspeed);
    #endif
    
       _player->m_movementInfo = movementInfo;
       _player->m_anti_Last_HSpeed = movementInfo.j_xyspeed;
       _player->m_anti_Last_VSpeed = movementInfo.j_unk < 3.2f ? movementInfo.j_unk - 1.0f : 3.2f;
    
       uint32 dt = (_player->m_anti_Last_VSpeed < 0) ? (int)(ceil(_player->m_anti_Last_VSpeed/-25)*1000) : (int)(ceil(_player->m_anti_Last_VSpeed/25)*1000);
       _player->m_anti_LastSpeedChangeTime = movementInfo.time + dt + 1000;
    }
    

  3. Am applying manually now to a new rev but stuck with this

    @@ -489,34 +827,33 @@ void WorldSession::HandleMountSpecialAnimOpcode(WorldPacket& /*recvdata*/)
        GetPlayer()->SendMessageToSet(&data, false);
    }
    
    -void WorldSession::HandleMoveKnockBackAck( WorldPacket & /*recv_data*/ )
    +void WorldSession::HandleMoveKnockBackAck( WorldPacket & recv_data )
    {
        // CHECK_PACKET_SIZE(recv_data,?);
        sLog.outDebug("CMSG_MOVE_KNOCK_BACK_ACK");
        // Currently not used but maybe use later for recheck final player position
        // (must be at call same as into "recv_data >> x >> y >> z >> orientation;"
    
    -    /*
    -    uint32 flags, time;
    -    float x, y, z, orientation;
    -    uint64 guid;
    -    uint32 sequence;
    -    uint32 ukn1;
    -    float xdirection,ydirection,hspeed,vspeed;
    +    /* extract packet */
    +    MovementInfo movementInfo;
    +    uint32 unk1,unk2,unk3;
    +    recv_data >> unk1 >> unk2 >> unk3;
    +    ReadMovementInfo(recv_data, &movementInfo);
    
    -    recv_data >> guid;
    -    recv_data >> sequence;
    -    recv_data >> flags >> time;
    -    recv_data >> x >> y >> z >> orientation;
    -    recv_data >> ukn1; //unknown
    -    recv_data >> vspeed >> xdirection >> ydirection >> hspeed;
    +    //Save movement flags
    +    _player->m_movementInfo.SetMovementFlags(MovementFlags(movementInfo.flags));
    
    -    // skip not personal message;
    -    if(GetPlayer()->GetGUID()!=guid)
    -        return;
    +    #ifdef MOVEMENT_ANTICHEAT_DEBUG
    +    sLog.outBasic("%s CMSG_MOVE_KNOCK_BACK_ACK: tm:%d ftm:%d | %f,%f,%fo(%f) [%X]",GetPlayer()->GetName(),movementInfo.time,movementInfo.fallTime,movementInfo.x,movementInfo.y,movementInfo.z,movementInfo.o,movementInfo.flags);
    +    sLog.outBasic("%s CMSG_MOVE_KNOCK_BACK_ACK additional: vspeed:%f, hspeed:%f",GetPlayer()->GetName(), movementInfo.j_unk, movementInfo.j_xyspeed);
    +    #endif
    +
    +    _player->m_movementInfo = movementInfo;
    +    _player->m_anti_Last_HSpeed = movementInfo.j_xyspeed;
    +    _player->m_anti_Last_VSpeed = movementInfo.j_unk < 3.2f ? movementInfo.j_unk - 1.0f : 3.2f;
    
    -    // check code
    -    */
    +    uint32 dt = (_player->m_anti_Last_VSpeed < 0) ? (int)(ceil(_player->m_anti_Last_VSpeed/-25)*1000) : (int)(ceil(_player->m_anti_Last_VSpeed/25)*1000);
    +    _player->m_anti_LastSpeedChangeTime = movementInfo.time + dt + 1000;
    }

    as the code for that function has changed to

       sLog.outDebug("CMSG_MOVE_KNOCK_BACK_ACK");
    
       recv_data.read_skip<uint64>();                          // guid
       recv_data.read_skip<uint32>();                          // unk
    
       MovementInfo movementInfo;
       ReadMovementInfo(recv_data, &movementInfo);
    

    So what would be the patch code for that part in the new mangos revs ?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use