mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Opcode tables: sync Classic/WotLK to canonical headers and expand logical mapping coverage
Classic: synchronized Data/expansions/classic/opcodes.json to /home/k/Desktop/classicopcodes.h with exact symbol/value parity (0 missing, 0 mismatches). WotLK: synchronized Data/expansions/wotlk/opcodes.json to /home/k/Desktop/azerothcoreOpcodes.h and aligned symbol names to AzerothCore naming. Logical opcode layer: expanded include/game/opcode_table.hpp and src/game/opcode_table.cpp to include missing canonical opcode symbols required by synced tables, and removed legacy alias fallback block so canonical names are used directly. Gameplay/handler updates included from ongoing fixes: duel/taxi stale opcode cleanup, level-up/sound handling adjustments, and related parser/packet references updated to match canonical opcode identifiers. Validated by successful full build: cmake --build build -j32.
This commit is contained in:
parent
b24703db30
commit
52ac3bcba3
14 changed files with 4956 additions and 645 deletions
|
|
@ -1313,60 +1313,60 @@ void CameraController::update(float deltaTime) {
|
|||
if (movementCallback) {
|
||||
// Forward/backward
|
||||
if (nowForward && !wasMovingForward) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_START_FORWARD));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_START_FORWARD));
|
||||
}
|
||||
if (nowBackward && !wasMovingBackward) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_START_BACKWARD));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_START_BACKWARD));
|
||||
}
|
||||
if ((!nowForward && wasMovingForward) || (!nowBackward && wasMovingBackward)) {
|
||||
if (!nowForward && !nowBackward) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_STOP));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_STOP));
|
||||
}
|
||||
}
|
||||
|
||||
// Strafing
|
||||
if (nowStrafeLeft && !wasStrafingLeft) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_START_STRAFE_LEFT));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_START_STRAFE_LEFT));
|
||||
}
|
||||
if (nowStrafeRight && !wasStrafingRight) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_START_STRAFE_RIGHT));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_START_STRAFE_RIGHT));
|
||||
}
|
||||
if ((!nowStrafeLeft && wasStrafingLeft) || (!nowStrafeRight && wasStrafingRight)) {
|
||||
if (!nowStrafeLeft && !nowStrafeRight) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_STOP_STRAFE));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_STOP_STRAFE));
|
||||
}
|
||||
}
|
||||
|
||||
// Turning
|
||||
if (nowTurnLeft && !wasTurningLeft) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_START_TURN_LEFT));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_START_TURN_LEFT));
|
||||
}
|
||||
if (nowTurnRight && !wasTurningRight) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_START_TURN_RIGHT));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_START_TURN_RIGHT));
|
||||
}
|
||||
if ((!nowTurnLeft && wasTurningLeft) || (!nowTurnRight && wasTurningRight)) {
|
||||
if (!nowTurnLeft && !nowTurnRight) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_STOP_TURN));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_STOP_TURN));
|
||||
}
|
||||
}
|
||||
|
||||
// Jump
|
||||
if (nowJump && !wasJumping && grounded) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_JUMP));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_JUMP));
|
||||
}
|
||||
|
||||
// Fall landing
|
||||
if (wasFalling && grounded) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_FALL_LAND));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_FALL_LAND));
|
||||
}
|
||||
}
|
||||
|
||||
// Swimming state transitions
|
||||
if (movementCallback) {
|
||||
if (swimming && !wasSwimming) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_START_SWIM));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_START_SWIM));
|
||||
} else if (!swimming && wasSwimming) {
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::CMSG_MOVE_STOP_SWIM));
|
||||
movementCallback(static_cast<uint32_t>(game::Opcode::MSG_MOVE_STOP_SWIM));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue