MSG_MOVE_START_PITCH_UP/DOWN 5.4.8 18414

This commit is contained in:
zamalaev 2020-02-19 23:56:22 +00:00 committed by Antz
parent 19b3d676d0
commit f715dd5087
3 changed files with 110 additions and 102 deletions

View file

@ -264,8 +264,8 @@ void InitializeOpcodes()
OPCODE(MSG_MOVE_START_TURN_LEFT, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); OPCODE(MSG_MOVE_START_TURN_LEFT, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes );
OPCODE(MSG_MOVE_START_TURN_RIGHT, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); OPCODE(MSG_MOVE_START_TURN_RIGHT, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes );
OPCODE(MSG_MOVE_STOP_TURN, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); OPCODE(MSG_MOVE_STOP_TURN, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes );
OPCODE(CMSG_MOVE_START_PITCH_UP, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); OPCODE(MSG_MOVE_START_PITCH_UP, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes );
OPCODE(CMSG_MOVE_START_PITCH_DOWN, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); OPCODE(MSG_MOVE_START_PITCH_DOWN, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes );
OPCODE(MSG_MOVE_STOP_PITCH, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); OPCODE(MSG_MOVE_STOP_PITCH, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes );
OPCODE(CMSG_MOVE_SET_RUN_MODE, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); OPCODE(CMSG_MOVE_SET_RUN_MODE, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes );
OPCODE(CMSG_MOVE_SET_WALK_MODE, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes ); OPCODE(CMSG_MOVE_SET_WALK_MODE, STATUS_LOGGEDIN, PROCESS_THREADSAFE, &WorldSession::HandleMovementOpcodes );

View file

@ -257,8 +257,8 @@ enum Opcodes
MSG_MOVE_START_TURN_LEFT = 0x01D0, // 5.4.8 18414 MSG_MOVE_START_TURN_LEFT = 0x01D0, // 5.4.8 18414
MSG_MOVE_START_TURN_RIGHT = 0x107B, // 5.4.8 18414 MSG_MOVE_START_TURN_RIGHT = 0x107B, // 5.4.8 18414
MSG_MOVE_STOP_TURN = 0x1170, // 5.4.8 18414 MSG_MOVE_STOP_TURN = 0x1170, // 5.4.8 18414
CMSG_MOVE_START_PITCH_UP = 0x0FE1, // 5.4.1 17538 MSG_MOVE_START_PITCH_UP = 0x00D8, // 5.4.8 18414
CMSG_MOVE_START_PITCH_DOWN = 0x16E8, // 5.4.1 17538 MSG_MOVE_START_PITCH_DOWN = 0x08D8, // 5.4.8 18414
MSG_MOVE_STOP_PITCH = 0x007A, // 5.4.8 18414 MSG_MOVE_STOP_PITCH = 0x007A, // 5.4.8 18414
CMSG_MOVE_SET_RUN_MODE = 0x0748, // 5.4.1 17538 CMSG_MOVE_SET_RUN_MODE = 0x0748, // 5.4.1 17538
CMSG_MOVE_SET_WALK_MODE = 0x0BE1, // 5.4.1 17538 CMSG_MOVE_SET_WALK_MODE = 0x0BE1, // 5.4.1 17538

View file

@ -1697,144 +1697,152 @@ MovementStatusElements MovementStopPitchSequence[] =
MovementStatusElements MovementStartPitchDownSequence[] = MovementStatusElements MovementStartPitchDownSequence[] =
{ {
MSEPositionX,
MSEPositionZ, MSEPositionZ,
MSEPositionY, MSEPositionY,
MSEHasMovementFlags, MSEPositionX,
MSEGuidBit7,
MSEGuidBit6,
MSEHasPitch,
MSEHasUnknownBit,
MSEGuidBit1,
MSEGuidBit4,
MSEHasTimestamp,
MSEHasSplineElevation,
MSEHasMovementFlags2,
MSEHasTransportData,
MSEGuidBit0,
MSEGuidBit5,
MSEGuidBit3,
MSEHasSpline,
MSEHasOrientation,
MSEHasFallData,
MSEGuidBit2, MSEGuidBit2,
MSETransportGuidBit1, MSEGuidBit7,
MSETransportGuidBit5, MSEGuidBit3,
MSEHasTransportTime3, MSEHasOrientation,
MSETransportGuidBit7, MSEGuidBit5,
MSETransportGuidBit4, MSEHasUnknownBit,
MSETransportGuidBit6, MSEHasUnkTime,
MSEHasUnknownBit,
MSEHasMovementFlags,
MSEGuidBit4,
MSEGuidBit1,
MSEHasSplineElevation,
MSEHasFallData,
MSEHasUnknownBit,
MSEHasTransportData,
MSEHasTimestamp,
MSEHasMovementFlags2,
MSECounterCount,
MSEGuidBit6,
MSEGuidBit0,
MSEHasPitch,
MSEHasTransportTime2, MSEHasTransportTime2,
MSETransportGuidBit0,
MSETransportGuidBit3,
MSETransportGuidBit2, MSETransportGuidBit2,
MSETransportGuidBit6,
MSETransportGuidBit3,
MSETransportGuidBit7,
MSETransportGuidBit5,
MSETransportGuidBit4,
MSEHasTransportTime3,
MSETransportGuidBit1,
MSETransportGuidBit0,
MSEFlags,
MSEFlags2, MSEFlags2,
MSEHasFallDirection, MSEHasFallDirection,
MSEFlags,
MSEGuidByte3,
MSEGuidByte7,
MSEGuidByte0,
MSEGuidByte5,
MSEGuidByte2,
MSEGuidByte6, MSEGuidByte6,
MSEGuidByte3,
MSEGuidByte5,
MSEGuidByte0,
MSEGuidByte4, MSEGuidByte4,
MSEMovementCounter,
MSEGuidByte7,
MSEGuidByte2,
MSEGuidByte1, MSEGuidByte1,
MSETransportTime3,
MSETransportGuidByte3,
MSETransportTime2,
MSETransportGuidByte5,
MSETransportGuidByte1,
MSETransportPositionY,
MSETransportGuidByte6,
MSETransportGuidByte4,
MSETransportTime,
MSETransportPositionZ,
MSETransportPositionX,
MSETransportGuidByte0,
MSETransportSeat,
MSETransportGuidByte2,
MSETransportGuidByte7,
MSETransportPositionO,
MSEFallSinAngle,
MSEFallHorizontalSpeed, MSEFallHorizontalSpeed,
MSEFallCosAngle, MSEFallCosAngle,
MSEFallVerticalSpeed, MSEFallSinAngle,
MSEFallTime, MSEFallTime,
MSEPitch, MSEFallVerticalSpeed,
MSETransportPositionO,
MSETransportGuidByte4,
MSETransportGuidByte7,
MSETransportPositionZ,
MSETransportGuidByte0,
MSETransportTime,
MSETransportGuidByte6,
MSETransportGuidByte1,
MSETransportGuidByte2,
MSETransportGuidByte5,
MSETransportPositionX,
MSETransportTime3,
MSETransportPositionY,
MSETransportGuidByte3,
MSETransportTime2,
MSEPositionO, MSEPositionO,
MSESplineElevation,
MSETimestamp, MSETimestamp,
MSESplineElevation,
MSEUnkTime,
MSEPitch,
MSEEnd, MSEEnd,
}; };
MovementStatusElements MovementStartPitchUpSequence[] = MovementStatusElements MovementStartPitchUpSequence[] =
{ {
MSEPositionZ,
MSEPositionY, MSEPositionY,
MSEPositionZ,
MSEPositionX, MSEPositionX,
MSEGuidBit4, MSEGuidBit0,
MSEHasMovementFlags, MSEHasPitch,
MSEHasMovementFlags2,
MSEHasSpline,
MSEGuidBit2,
MSEGuidBit6,
MSEGuidBit3, MSEGuidBit3,
MSEHasUnknownBit, MSEHasUnknownBit,
MSEHasSplineElevation,
MSEHasFallData,
MSEGuidBit0,
MSEHasTransportData,
MSEGuidBit1,
MSEGuidBit5,
MSEHasPitch,
MSEHasTimestamp,
MSEHasOrientation, MSEHasOrientation,
MSEGuidBit5,
MSEHasUnknownBit,
MSEGuidBit2,
MSEGuidBit7, MSEGuidBit7,
MSEFlags2, MSEGuidBit1,
MSETransportGuidBit7, MSEHasFallData,
MSETransportGuidBit3, MSEHasMovementFlags2,
MSEHasTransportData,
MSEHasUnkTime,
MSEHasMovementFlags,
MSEGuidBit6,
MSECounterCount,
MSEHasTimestamp,
MSEGuidBit4,
MSEHasUnknownBit,
MSEHasSplineElevation,
MSETransportGuidBit5,
MSETransportGuidBit1, MSETransportGuidBit1,
MSEHasTransportTime2, MSEHasTransportTime2,
MSETransportGuidBit4, MSETransportGuidBit4,
MSEHasTransportTime3,
MSETransportGuidBit0,
MSETransportGuidBit6,
MSETransportGuidBit5,
MSETransportGuidBit2, MSETransportGuidBit2,
MSETransportGuidBit6,
MSETransportGuidBit0,
MSEHasTransportTime3,
MSETransportGuidBit7,
MSETransportGuidBit3,
MSEFlags2,
MSEFlags, MSEFlags,
MSEHasFallDirection, MSEHasFallDirection,
MSEGuidByte0,
MSEGuidByte3,
MSEGuidByte4,
MSEGuidByte6, MSEGuidByte6,
MSEMovementCounter,
MSEGuidByte0,
MSEGuidByte5,
MSEGuidByte7, MSEGuidByte7,
MSEGuidByte1, MSEGuidByte1,
MSEGuidByte5, MSEGuidByte3,
MSEGuidByte4,
MSEGuidByte2, MSEGuidByte2,
MSETransportPositionX,
MSETransportGuidByte1,
MSETransportGuidByte3, MSETransportGuidByte3,
MSETransportGuidByte2,
MSETransportGuidByte0,
MSETransportTime,
MSETransportPositionZ,
MSETransportPositionO,
MSETransportGuidByte7,
MSETransportTime2,
MSETransportSeat,
MSETransportGuidByte6,
MSETransportGuidByte5,
MSETransportTime3, MSETransportTime3,
MSETransportGuidByte2,
MSETransportGuidByte7,
MSETransportGuidByte0,
MSETransportPositionY, MSETransportPositionY,
MSETransportGuidByte4, MSETransportGuidByte4,
MSEFallTime, MSETransportGuidByte5,
MSEFallCosAngle, MSETransportTime2,
MSEFallSinAngle, MSETransportGuidByte1,
MSEFallHorizontalSpeed, MSETransportPositionX,
MSEFallVerticalSpeed, MSETransportPositionO,
MSETransportGuidByte6,
MSETransportTime,
MSETransportPositionZ,
MSEPitch,
MSEPositionO, MSEPositionO,
MSESplineElevation, MSESplineElevation,
MSEPitch, MSEFallVerticalSpeed,
MSEFallHorizontalSpeed,
MSEFallSinAngle,
MSEFallCosAngle,
MSEFallTime,
MSEUnkTime,
MSETimestamp, MSETimestamp,
MSEEnd, MSEEnd,
}; };
@ -2701,9 +2709,9 @@ MovementStatusElements* GetMovementStatusElementsSequence(uint16 opcode)
return MovementStopSwimSequence; return MovementStopSwimSequence;
case MSG_MOVE_STOP_ASCEND:// 5.4.8 case MSG_MOVE_STOP_ASCEND:// 5.4.8
return MovementStopAscendSequence; return MovementStopAscendSequence;
case CMSG_MOVE_START_PITCH_DOWN: case MSG_MOVE_START_PITCH_DOWN: // 5.4.8
return MovementStartPitchDownSequence; return MovementStartPitchDownSequence;
case CMSG_MOVE_START_PITCH_UP: case MSG_MOVE_START_PITCH_UP: // 5.4.8
return MovementStartPitchUpSequence; return MovementStartPitchUpSequence;
case MSG_MOVE_STOP_PITCH: // 5.4.8 case MSG_MOVE_STOP_PITCH: // 5.4.8
return MovementStopPitchSequence; return MovementStopPitchSequence;