diff options
Diffstat (limited to 'src/server/game/Movement/MovementStructures.h')
-rw-r--r-- | src/server/game/Movement/MovementStructures.h | 145 |
1 files changed, 76 insertions, 69 deletions
diff --git a/src/server/game/Movement/MovementStructures.h b/src/server/game/Movement/MovementStructures.h index 87439bbedbc..d87878ad26c 100644 --- a/src/server/game/Movement/MovementStructures.h +++ b/src/server/game/Movement/MovementStructures.h @@ -87,7 +87,7 @@ enum MovementStatusElements MSEFallCosAngle, MSEFallSinAngle, MSEFallHorizontalSpeed, - MSESplineElev, + MSESplineElevation, // Special MSEZeroBit, // writes bit value 1 or skips read bit @@ -96,70 +96,77 @@ enum MovementStatusElements MSE_COUNT }; -//4.2.2 -MovementStatusElements PlayerMoveSequence[] = { +//4.3.4 +MovementStatusElements PlayerMoveSequence[] = +{ + MSEHasFallData, + MSEHasGuidByte3, + MSEHasGuidByte6, + MSEHasMovementFlags2, + MSEHasSpline, + MSEHasTimestamp, + MSEHasGuidByte0, + MSEHasGuidByte1, + MSEMovementFlags2, + MSEHasGuidByte7, + MSEHasMovementFlags, + MSEHasOrientation, + MSEHasGuidByte2, MSEHasSplineElev, - MSEHasTransportData, + MSEZeroBit, + MSEHasGuidByte4, + MSEHasFallDirection, MSEHasGuidByte5, - MSEHasTransportGuidByte2, - MSEHasTransportGuidByte4, - MSEHasTransportGuidByte1, + MSEHasTransportData, + MSEMovementFlags, MSEHasTransportGuidByte3, - MSEHasTransportGuidByte0, - MSEHasTransportTime2, - MSEHasTransportGuidByte7, MSEHasTransportTime3, MSEHasTransportGuidByte6, + MSEHasTransportGuidByte1, + MSEHasTransportGuidByte7, + MSEHasTransportGuidByte0, + MSEHasTransportGuidByte4, + MSEHasTransportTime2, MSEHasTransportGuidByte5, - MSEHasGuidByte7, - MSEHasGuidByte3, - MSEHasGuidByte1, - MSEHasGuidByte4, - MSEHasGuidByte0, - MSEMovementFlags, + MSEHasTransportGuidByte2, MSEHasPitch, - MSEHasGuidByte2, - MSEMovementFlags2, - MSEHasGuidByte6, - MSEHasFallData, - MSEHasFallDirection, - MSEHasSpline, - MSEGuidByte4, - MSEGuidByte0, - MSEOrientation, - MSEGuidByte6, + MSEGuidByte5, + MSEFallHorizontalSpeed, + MSEFallCosAngle, + MSEFallSinAngle, + MSEFallVerticalSpeed, + MSEFallTime, + MSESplineElevation, MSEGuidByte7, - MSESplineElev, - MSETransportGuidByte4, - MSETransportGuidByte2, - MSETransportOrientation, - MSETransportTime, + MSEPositionY, + MSEGuidByte3, + MSETransportTime3, + MSETransportGuidByte6, MSETransportSeat, - MSETransportGuidByte3, + MSETransportGuidByte5, MSETransportPositionX, - MSETransportPositionY, - MSETransportPositionZ, MSETransportGuidByte1, + MSETransportOrientation, + MSETransportGuidByte2, MSETransportTime2, - MSETransportTime3, - MSETransportGuidByte5, MSETransportGuidByte0, - MSETransportGuidByte6, + MSETransportPositionZ, MSETransportGuidByte7, - MSEGuidByte2, - MSETimestamp, - MSEGuidByte1, - MSEPitch, + MSETransportGuidByte4, + MSETransportGuidByte3, + MSETransportPositionY, + MSETransportTime, + MSEGuidByte4, MSEPositionX, - MSEPositionY, + MSEGuidByte6, MSEPositionZ, - MSEGuidByte5, - MSEGuidByte3, - MSEFallHorizontalSpeed, - MSEFallCosAngle, - MSEFallSinAngle, - MSEFallVerticalSpeed, - MSEFallTime, + MSETimestamp, + MSEGuidByte2, + MSEPitch, + MSEGuidByte0, + MSEOrientation, + MSEGuidByte1, + MSEEnd, }; //4.2.2 @@ -224,7 +231,7 @@ MovementStatusElements MovementFallLandSequence[] = { MSETransportGuidByte1, MSETransportGuidByte0, MSETransportGuidByte4, - MSESplineElev, + MSESplineElevation, MSEGuidByte1, }; @@ -263,7 +270,7 @@ MovementStatusElements MovementHeartBeatSequence[] = { MSEOrientation, MSEGuidByte7, MSEGuidByte5, - MSESplineElev, + MSESplineElevation, MSEGuidByte1, MSEGuidByte6, MSEGuidByte4, @@ -327,7 +334,7 @@ MovementStatusElements MovementJumpSequence[] = { MSEPositionX, MSEPositionY, MSEPositionZ, - MSESplineElev, + MSESplineElevation, MSEGuidByte0, MSEGuidByte5, MSEGuidByte3, @@ -395,7 +402,7 @@ MovementStatusElements MovementSetFacingSequence[] = { MSEPositionZ, MSEGuidByte7, MSEGuidByte5, - MSESplineElev, + MSESplineElevation, MSEGuidByte4, MSEGuidByte1, MSEGuidByte2, @@ -461,7 +468,7 @@ MovementStatusElements MovementSetPitchSequence[] = { MSEOrientation, MSEGuidByte1, MSEGuidByte4, - MSESplineElev, + MSESplineElevation, MSETransportSeat, MSETransportOrientation, MSETransportPositionX, @@ -528,7 +535,7 @@ MovementStatusElements MovementStartBackwardSequence[] = { MSEGuidByte3, MSEGuidByte0, MSEGuidByte1, - MSESplineElev, + MSESplineElevation, MSEGuidByte4, MSEPitch, MSEGuidByte7, @@ -624,7 +631,7 @@ MovementStatusElements MovementStartForwardSequence[] = MSETransportGuidByte0, MSETransportSeat, MSETransportTime2, - MSESplineElev, + MSESplineElevation, MSEPitch, MSEOrientation, MSETimestamp, @@ -666,7 +673,7 @@ MovementStatusElements MovementStartStrafeLeftSequence[] = { MSEOrientation, MSETimestamp, MSEPitch, - MSESplineElev, + MSESplineElevation, MSEGuidByte7, MSEGuidByte5, MSEFallTime, @@ -734,7 +741,7 @@ MovementStatusElements MovementStartStrafeRightSequence[] = { MSEGuidByte4, MSEGuidByte1, MSEGuidByte2, - MSESplineElev, + MSESplineElevation, MSEGuidByte0, MSEPitch, MSEGuidByte6, @@ -820,7 +827,7 @@ MovementStatusElements MovementStartTurnLeftSequence[] = { MSEGuidByte6, MSEGuidByte5, MSEGuidByte3, - MSESplineElev, + MSESplineElevation, MSEFallTime, MSEFallVerticalSpeed, MSEFallHorizontalSpeed, @@ -892,7 +899,7 @@ MovementStatusElements MovementStartTurnRightSequence[] = { MSEGuidByte3, MSEGuidByte1, MSEGuidByte0, - MSESplineElev, + MSESplineElevation, MSEGuidByte5, }; @@ -957,7 +964,7 @@ MovementStatusElements MovementStopSequence[] = { MSETransportGuidByte4, MSEGuidByte1, MSEGuidByte0, - MSESplineElev, + MSESplineElevation, MSEGuidByte6, MSEGuidByte4, }; @@ -1008,7 +1015,7 @@ MovementStatusElements MovementStopStrafeSequence[] = { MSEFallSinAngle, MSEGuidByte3, MSEPitch, - MSESplineElev, + MSESplineElevation, MSETransportSeat, MSETransportOrientation, MSETransportPositionX, @@ -1073,7 +1080,7 @@ MovementStatusElements MovementStopTurnSequence[] = { MSEFallHorizontalSpeed, MSEFallCosAngle, MSEFallSinAngle, - MSESplineElev, + MSESplineElevation, MSEGuidByte0, MSEGuidByte2, MSETransportSeat, @@ -1136,7 +1143,7 @@ MovementStatusElements MovementStartAscendSequence[] = { MSEPitch, MSEGuidByte0, MSEGuidByte5, - MSESplineElev, + MSESplineElevation, MSEGuidByte1, MSETransportSeat, MSETransportOrientation, @@ -1193,7 +1200,7 @@ MovementStatusElements MovementStartDescendSequence[] = { MSEPositionY, MSEPositionZ, MSEOrientation, - MSESplineElev, + MSESplineElevation, MSEGuidByte7, MSEGuidByte4, MSEGuidByte2, @@ -1260,7 +1267,7 @@ MovementStatusElements MovementStartSwimSequence[] = { MSEOrientation, MSETimestamp, MSEPitch, - MSESplineElev, + MSESplineElevation, MSEGuidByte2, MSEGuidByte0, MSEGuidByte5, @@ -1354,7 +1361,7 @@ MovementStatusElements MovementStopAscendSequence[] = { MSEGuidByte5, MSEGuidByte4, MSEGuidByte3, - MSESplineElev, + MSESplineElevation, MSEGuidByte6, }; @@ -1362,8 +1369,8 @@ MovementStatusElements* GetMovementStatusElementsSequence(Opcodes opcode) { switch (opcode) { - //case SMSG_PLAYER_MOVE: - // return PlayerMoveSequence; + case SMSG_PLAYER_MOVE: + return PlayerMoveSequence; //case MSG_MOVE_FALL_LAND: // return MovementFallLandSequence; //case MSG_MOVE_HEARTBEAT: |