mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 16:10:14 +00:00
Handle SMSG_GAMEOBJECT_CUSTOM_ANIM to unfreeze gameobjects on use
When the server sends a custom animation packet (e.g. chest being opened), unfreeze the M2 instance so it plays its open animation.
This commit is contained in:
parent
58681753e5
commit
639df4815e
3 changed files with 26 additions and 0 deletions
|
|
@ -2259,6 +2259,16 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
case Opcode::SMSG_GAMEOBJECT_PAGETEXT:
|
||||
handleGameObjectPageText(packet);
|
||||
break;
|
||||
case Opcode::SMSG_GAMEOBJECT_CUSTOM_ANIM: {
|
||||
if (packet.getSize() >= 12) {
|
||||
uint64_t guid = packet.readUInt64();
|
||||
uint32_t animId = packet.readUInt32();
|
||||
if (gameObjectCustomAnimCallback_) {
|
||||
gameObjectCustomAnimCallback_(guid, animId);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Opcode::SMSG_PAGE_TEXT_QUERY_RESPONSE:
|
||||
handlePageTextQueryResponse(packet);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue