Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //src\game\object\Player.cpp
- void Player::SetCanFly(bool enable)
- {
- WorldPacket data;
- if (enable)
- data.Initialize(MSG_MOVE_START_SWIM, 12);
- else
- data.Initialize(MSG_MOVE_STOP_SWIM, 12);
- data << GetPackGUID();
- data << uint32(0);
- SendMessageToSet(&data, true);
- /*data.Initialize(MSG_MOVE_UPDATE_CAN_FLY, 64); //hope we can skip this
- data << GetPackGUID();
- m_movementInfo.Write(data);
- SendMessageToSet(&data, false);*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement