Core/Units: Added method to send SMSG_SET_PLAY_HOVER_ANIM
This commit is contained in:
1 parent
2c99ae454d
commit
bbee011401
4 files changed
+31
-1
No files matched your search
@@ -16818,6 +16818,32 @@ void Unit::SendMovementSwimming()
|
||||
Movement::PacketSender(this, SMSG_SPLINE_MOVE_STOP_SWIM, NULL_OPCODE).Send();
|
||||
}
|
||||
|
||||
void Unit::SendSetPlayHoverAnim(bool enable)
|
||||
{
|
||||
ObjectGuid guid = GetGUID();
|
||||
WorldPacket data(SMSG_SET_PLAY_HOVER_ANIM, 10);
|
||||
data.WriteBit(guid[4]);
|
||||
data.WriteBit(guid[0]);
|
||||
data.WriteBit(guid[1]);
|
||||
data.WriteBit(enable);
|
||||
data.WriteBit(guid[3]);
|
||||
data.WriteBit(guid[7]);
|
||||
data.WriteBit(guid[5]);
|
||||
data.WriteBit(guid[2]);
|
||||
data.WriteBit(guid[6]);
|
||||
|
||||
data.WriteByteSeq(guid[3]);
|
||||
data.WriteByteSeq(guid[2]);
|
||||
data.WriteByteSeq(guid[1]);
|
||||
data.WriteByteSeq(guid[7]);
|
||||
data.WriteByteSeq(guid[0]);
|
||||
data.WriteByteSeq(guid[5]);
|
||||
data.WriteByteSeq(guid[4]);
|
||||
data.WriteByteSeq(guid[6]);
|
||||
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
bool Unit::IsSplineEnabled() const
|
||||
{
|
||||
return movespline->Initialized();
|
||||
|
||||
Reference in new issue
Block a user