mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add arena/BG opcodes, fix mount speed, buff bar icons, and autorun cancel
Add 36 arena and battleground opcodes with handlers for queue status, team events, invites, and errors. Fix SMSG_FORCE_RUN_SPEED_CHANGE parsing (uint8 not uint32) and remove manual mount speed tracking. Buff bar now shows spell icons and is positioned below the minimap. Both mouse buttons cancel autorun.
This commit is contained in:
parent
22b9ee9726
commit
7a2bb28dc0
5 changed files with 313 additions and 46 deletions
|
|
@ -659,6 +659,14 @@ private:
|
|||
// ---- Speed change handler ----
|
||||
void handleForceRunSpeedChange(network::Packet& packet);
|
||||
|
||||
// ---- Arena / Battleground handlers ----
|
||||
void handleBattlefieldStatus(network::Packet& packet);
|
||||
void handleArenaTeamCommandResult(network::Packet& packet);
|
||||
void handleArenaTeamQueryResponse(network::Packet& packet);
|
||||
void handleArenaTeamInvite(network::Packet& packet);
|
||||
void handleArenaTeamEvent(network::Packet& packet);
|
||||
void handleArenaError(network::Packet& packet);
|
||||
|
||||
// ---- Taxi handlers ----
|
||||
void handleShowTaxiNodes(network::Packet& packet);
|
||||
void handleActivateTaxiReply(network::Packet& packet);
|
||||
|
|
@ -914,7 +922,6 @@ private:
|
|||
NpcSwingCallback npcSwingCallback_;
|
||||
MountCallback mountCallback_;
|
||||
uint32_t currentMountDisplayId_ = 0;
|
||||
float preMountRunSpeed_ = 0.0f;
|
||||
float serverRunSpeed_ = 7.0f;
|
||||
bool playerDead_ = false;
|
||||
bool releasedSpirit_ = false;
|
||||
|
|
|
|||
|
|
@ -263,6 +263,46 @@ enum class Opcode : uint16_t {
|
|||
SMSG_ACTIVATETAXIREPLY = 0x01AE,
|
||||
SMSG_NEW_TAXI_PATH = 0x01AF,
|
||||
CMSG_ACTIVATETAXIEXPRESS = 0x0312,
|
||||
|
||||
// ---- Battleground ----
|
||||
SMSG_BATTLEFIELD_PORT_DENIED = 0x014B,
|
||||
SMSG_REMOVED_FROM_PVP_QUEUE = 0x0170,
|
||||
CMSG_BATTLEFIELD_LIST = 0x023C,
|
||||
SMSG_BATTLEFIELD_LIST = 0x023D,
|
||||
CMSG_BATTLEFIELD_JOIN = 0x023E,
|
||||
CMSG_BATTLEFIELD_STATUS = 0x02D3,
|
||||
SMSG_BATTLEFIELD_STATUS = 0x02D4,
|
||||
CMSG_BATTLEFIELD_PORT = 0x02D5,
|
||||
CMSG_BATTLEMASTER_HELLO = 0x02D7,
|
||||
MSG_PVP_LOG_DATA = 0x02E0,
|
||||
CMSG_LEAVE_BATTLEFIELD = 0x02E1,
|
||||
SMSG_GROUP_JOINED_BATTLEGROUND = 0x02E8,
|
||||
MSG_BATTLEGROUND_PLAYER_POSITIONS = 0x02E9,
|
||||
SMSG_BATTLEGROUND_PLAYER_JOINED = 0x02EC,
|
||||
SMSG_BATTLEGROUND_PLAYER_LEFT = 0x02ED,
|
||||
CMSG_BATTLEMASTER_JOIN = 0x02EE,
|
||||
SMSG_JOINED_BATTLEGROUND_QUEUE = 0x038A,
|
||||
|
||||
// ---- Arena Team ----
|
||||
CMSG_ARENA_TEAM_CREATE = 0x0348,
|
||||
SMSG_ARENA_TEAM_COMMAND_RESULT = 0x0349,
|
||||
CMSG_ARENA_TEAM_QUERY = 0x034B,
|
||||
SMSG_ARENA_TEAM_QUERY_RESPONSE = 0x034C,
|
||||
CMSG_ARENA_TEAM_ROSTER = 0x034D,
|
||||
SMSG_ARENA_TEAM_ROSTER = 0x034E,
|
||||
CMSG_ARENA_TEAM_INVITE = 0x034F,
|
||||
SMSG_ARENA_TEAM_INVITE = 0x0350,
|
||||
CMSG_ARENA_TEAM_ACCEPT = 0x0351,
|
||||
CMSG_ARENA_TEAM_DECLINE = 0x0352,
|
||||
CMSG_ARENA_TEAM_LEAVE = 0x0353,
|
||||
CMSG_ARENA_TEAM_REMOVE = 0x0354,
|
||||
CMSG_ARENA_TEAM_DISBAND = 0x0355,
|
||||
CMSG_ARENA_TEAM_LEADER = 0x0356,
|
||||
SMSG_ARENA_TEAM_EVENT = 0x0357,
|
||||
CMSG_BATTLEMASTER_JOIN_ARENA = 0x0358,
|
||||
SMSG_ARENA_TEAM_STATS = 0x035B,
|
||||
SMSG_ARENA_ERROR = 0x0376,
|
||||
MSG_INSPECT_ARENA_TEAMS = 0x0377,
|
||||
};
|
||||
|
||||
} // namespace game
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue