Skip to content

Commit

Permalink
added more 4.4.0 movement opcode parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovahlord committed Jul 8, 2024
1 parent 0270c28 commit f3e4f9f
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions WowPacketParserModule.V4_4_0_54481/Parsers/MovementHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,27 @@ public static void HandleMoveTeleportAck(Packet packet)
packet.ReadInt32("MoveTime");
}

[Parser(Opcode.SMSG_MOVE_SET_COLLISION_HEIGHT)]
public static void HandleSetCollisionHeight(Packet packet)
{
packet.ReadPackedGuid128("MoverGUID");
packet.ReadInt32("SequenceIndex");
packet.ReadSingle("Height");
packet.ReadSingle("Scale");
packet.ReadByte("Reason");
packet.ReadUInt32("MountDisplayID");
packet.ReadInt32("ScaleDuration");
}

[Parser(Opcode.CMSG_MOVE_SET_COLLISION_HEIGHT_ACK)]
public static void HandleMoveSetCollisionHeightAck(Packet packet)
{
V6_0_2_19033.Parsers.MovementHandler.ReadMovementAck(packet, "MovementAck");
packet.ReadSingle("Height");
packet.ReadInt32("MountDisplayID");
packet.ReadByte("Reason");
}

[Parser(Opcode.SMSG_MOVE_SET_ACTIVE_MOVER)]
[Parser(Opcode.SMSG_MOVE_SPLINE_ROOT)]
[Parser(Opcode.SMSG_MOVE_SPLINE_UNROOT)]
Expand Down Expand Up @@ -543,5 +564,40 @@ public static void HandleMovementUpdateSpeed(Packet packet)
ReadMovementStats(packet, "MovementStats");
packet.ReadSingle("Speed");
}

[Parser(Opcode.SMSG_MOVE_SET_RUN_SPEED)]
[Parser(Opcode.SMSG_MOVE_SET_SWIM_SPEED)]
[Parser(Opcode.SMSG_MOVE_SET_FLIGHT_SPEED)]
[Parser(Opcode.SMSG_MOVE_SET_WALK_SPEED)]
[Parser(Opcode.SMSG_MOVE_SET_RUN_BACK_SPEED)]
public static void HandleMovementIndexSpeed(Packet packet)
{
packet.ReadPackedGuid128("MoverGUID");
packet.ReadInt32("SequenceIndex");

packet.ReadSingle("Speed");
}

[Parser(Opcode.SMSG_MOVE_ENABLE_GRAVITY)]
[Parser(Opcode.SMSG_MOVE_DISABLE_GRAVITY)]
[Parser(Opcode.SMSG_MOVE_SET_LAND_WALK)]
[Parser(Opcode.SMSG_MOVE_ROOT)]
[Parser(Opcode.SMSG_MOVE_SET_CAN_FLY)]
[Parser(Opcode.SMSG_MOVE_ENABLE_TRANSITION_BETWEEN_SWIM_AND_FLY)]
[Parser(Opcode.SMSG_MOVE_SET_HOVERING)]
[Parser(Opcode.SMSG_MOVE_UNSET_CAN_FLY)]
[Parser(Opcode.SMSG_MOVE_DISABLE_TRANSITION_BETWEEN_SWIM_AND_FLY)]
[Parser(Opcode.SMSG_MOVE_UNSET_HOVERING)]
[Parser(Opcode.SMSG_MOVE_UNROOT)]
[Parser(Opcode.SMSG_MOVE_SET_WATER_WALK)]
[Parser(Opcode.SMSG_MOVE_SET_FEATHER_FALL)]
[Parser(Opcode.SMSG_MOVE_SET_NORMAL_FALL)]
[Parser(Opcode.SMSG_MOVE_SET_IGNORE_MOVEMENT_FORCES)]
[Parser(Opcode.SMSG_MOVE_UNSET_IGNORE_MOVEMENT_FORCES)]
public static void HandleMovementIndex(Packet packet)
{
packet.ReadPackedGuid128("MoverGUID");
packet.ReadInt32("SequenceIndex");
}
}
}

0 comments on commit f3e4f9f

Please sign in to comment.