2026-02-12 22:56:36 -08:00
|
|
|
{
|
feat: track shapeshift form and fire UPDATE_SHAPESHIFT_FORM events
Add UNIT_FIELD_BYTES_1 to all expansion update field tables (Classic=133,
TBC/WotLK=137). Byte 3 of this field contains the shapeshift form ID
(Bear=1, Cat=3, Travel=4, Moonkin=31, Tree=36, Battle Stance=17, etc.).
Track form changes in the VALUES update handler and fire
UPDATE_SHAPESHIFT_FORM + UPDATE_SHAPESHIFT_FORMS events when the
form changes. This enables stance bar addons and druid form tracking.
New Lua functions:
- GetShapeshiftForm() — returns current form ID (0 = no form)
- GetNumShapeshiftForms() — returns form count by class (Warrior=3,
Druid=6, DK=3, Rogue=1, Priest=1, Paladin=3)
2026-03-22 22:12:17 -07:00
|
|
|
"CONTAINER_FIELD_NUM_SLOTS": 64,
|
|
|
|
|
"CONTAINER_FIELD_SLOT_1": 66,
|
|
|
|
|
"GAMEOBJECT_DISPLAYID": 8,
|
feat(animation): 452 named constants, 30-phase character animation state machine
Add animation_ids.hpp/cpp with all 452 WoW animation ID constants (anim::STAND,
anim::RUN, anim::FIRE_BOW, ... anim::FLY_BACKWARDS, etc.), nameFromId() O(1)
lookup, and flyVariant() compact 218-element ground→FLY_* resolver.
Expand AnimationController into a full state machine with 20+ named states:
spell cast (directed→omni→cast fallback chain, instant one-shot release),
hit reactions (WOUND/CRIT/DODGE/BLOCK/SHIELD_BLOCK), stun, wounded idle,
stealth animation substitution, loot, fishing channel, sit/sleep/kneel
down→loop→up transitions, sheathe/unsheathe combat enter/exit, ranged weapons
(BOW/GUN/CROSSBOW/THROWN with reload states), game object OPEN/CLOSE/DESTROY,
vehicle enter/exit, mount flight directionals (FLY_LEFT/RIGHT/UP/DOWN/BACKWARDS),
emote state variants, off-hand/pierce/dual-wield alternation, NPC
birth/spawn/drown/rise, sprint aura override, totem idle, NPC greeting/farewell.
Add spell_defines.hpp with SpellEffect (~45 constants) and SpellMissInfo
(12 constants) namespaces; replace all magic numbers in spell_handler.cpp.
Add GAMEOBJECT_BYTES_1 to update field table (all 4 expansion JSONs) and wire
GameObjectStateCallback. Add DBC cross-validation on world entry.
Expand tools/_ANIM_NAMES from ~35 to 452 entries in m2_viewer.py and
asset_pipeline_gui.py. Add tests/test_animation_ids.cpp.
Bug fixes included:
- Stand state 1 was animating READY_2H(27) — fixed to SITTING(97)
- Spell casts ended freeze-frame — add one-shot release animation
- NPC 2H swing probe chain missing ATTACK_2H_LOOSE (polearm/staff)
- Chair sits (states 2/4/5/6) incorrectly played floor-sit transition
- STOP(3) used for all spell casts — replaced with model-aware chain
2026-04-04 23:02:53 +03:00
|
|
|
"GAMEOBJECT_BYTES_1": 17,
|
feat: track shapeshift form and fire UPDATE_SHAPESHIFT_FORM events
Add UNIT_FIELD_BYTES_1 to all expansion update field tables (Classic=133,
TBC/WotLK=137). Byte 3 of this field contains the shapeshift form ID
(Bear=1, Cat=3, Travel=4, Moonkin=31, Tree=36, Battle Stance=17, etc.).
Track form changes in the VALUES update handler and fire
UPDATE_SHAPESHIFT_FORM + UPDATE_SHAPESHIFT_FORMS events when the
form changes. This enables stance bar addons and druid form tracking.
New Lua functions:
- GetShapeshiftForm() — returns current form ID (0 = no form)
- GetNumShapeshiftForms() — returns form count by class (Warrior=3,
Druid=6, DK=3, Rogue=1, Priest=1, Paladin=3)
2026-03-22 22:12:17 -07:00
|
|
|
"ITEM_FIELD_DURABILITY": 60,
|
|
|
|
|
"ITEM_FIELD_MAXDURABILITY": 61,
|
|
|
|
|
"ITEM_FIELD_STACK_COUNT": 14,
|
2026-02-12 22:56:36 -08:00
|
|
|
"OBJECT_FIELD_ENTRY": 3,
|
feat: propagate OBJECT_FIELD_SCALE_X through creature and GO spawn pipeline
Reads OBJECT_FIELD_SCALE_X (field 4, cross-expansion) from CREATE_OBJECT
update fields and passes it through the full creature and game object spawn
chain: game_handler callbacks → pending spawn structs → async load results
→ createInstance() calls. This gives boss giants, gnomes, children, and
other non-unit-scale NPCs correct visual size, and ensures scaled GOs
(e.g. large treasure chests, oversized plants) render at the server-specified
scale rather than always at 1.0.
- Added OBJECT_FIELD_SCALE_X to UF enum and all expansion update_fields.json
- Added float scale to CreatureSpawnCallback and GameObjectSpawnCallback
- Propagated scale through PendingCreatureSpawn, PreparedCreatureModel,
PendingGameObjectSpawn, PreparedGameObjectWMO
- Used scale in charRenderer/m2Renderer/wmoRenderer createInstance() calls
- Sanity-clamped raw float to [0.01, 100.0] range before use
2026-03-10 22:45:47 -07:00
|
|
|
"OBJECT_FIELD_SCALE_X": 4,
|
feat: track shapeshift form and fire UPDATE_SHAPESHIFT_FORM events
Add UNIT_FIELD_BYTES_1 to all expansion update field tables (Classic=133,
TBC/WotLK=137). Byte 3 of this field contains the shapeshift form ID
(Bear=1, Cat=3, Travel=4, Moonkin=31, Tree=36, Battle Stance=17, etc.).
Track form changes in the VALUES update handler and fire
UPDATE_SHAPESHIFT_FORM + UPDATE_SHAPESHIFT_FORMS events when the
form changes. This enables stance bar addons and druid form tracking.
New Lua functions:
- GetShapeshiftForm() — returns current form ID (0 = no form)
- GetNumShapeshiftForms() — returns form count by class (Warrior=3,
Druid=6, DK=3, Rogue=1, Priest=1, Paladin=3)
2026-03-22 22:12:17 -07:00
|
|
|
"PLAYER_BYTES": 237,
|
|
|
|
|
"PLAYER_BYTES_2": 238,
|
|
|
|
|
"PLAYER_EXPLORED_ZONES_START": 1312,
|
|
|
|
|
"PLAYER_FIELD_ARENA_CURRENCY": 1506,
|
|
|
|
|
"PLAYER_FIELD_BANKBAG_SLOT_1": 784,
|
|
|
|
|
"PLAYER_FIELD_BANK_SLOT_1": 728,
|
|
|
|
|
"PLAYER_FIELD_COINAGE": 1441,
|
|
|
|
|
"PLAYER_FIELD_HONOR_CURRENCY": 1505,
|
|
|
|
|
"PLAYER_FIELD_INV_SLOT_HEAD": 650,
|
|
|
|
|
"PLAYER_FIELD_PACK_SLOT_1": 696,
|
|
|
|
|
"PLAYER_FLAGS": 236,
|
|
|
|
|
"PLAYER_NEXT_LEVEL_XP": 927,
|
|
|
|
|
"PLAYER_QUEST_LOG_START": 244,
|
|
|
|
|
"PLAYER_REST_STATE_EXPERIENCE": 1440,
|
|
|
|
|
"PLAYER_SKILL_INFO_START": 928,
|
|
|
|
|
"PLAYER_XP": 926,
|
|
|
|
|
"UNIT_DYNAMIC_FLAGS": 164,
|
|
|
|
|
"UNIT_END": 234,
|
2026-02-13 19:40:54 -08:00
|
|
|
"UNIT_FIELD_BYTES_0": 36,
|
feat: track shapeshift form and fire UPDATE_SHAPESHIFT_FORM events
Add UNIT_FIELD_BYTES_1 to all expansion update field tables (Classic=133,
TBC/WotLK=137). Byte 3 of this field contains the shapeshift form ID
(Bear=1, Cat=3, Travel=4, Moonkin=31, Tree=36, Battle Stance=17, etc.).
Track form changes in the VALUES update handler and fire
UPDATE_SHAPESHIFT_FORM + UPDATE_SHAPESHIFT_FORMS events when the
form changes. This enables stance bar addons and druid form tracking.
New Lua functions:
- GetShapeshiftForm() — returns current form ID (0 = no form)
- GetNumShapeshiftForms() — returns form count by class (Warrior=3,
Druid=6, DK=3, Rogue=1, Priest=1, Paladin=3)
2026-03-22 22:12:17 -07:00
|
|
|
"UNIT_FIELD_BYTES_1": 137,
|
|
|
|
|
"UNIT_FIELD_DISPLAYID": 152,
|
2026-02-12 22:56:36 -08:00
|
|
|
"UNIT_FIELD_FACTIONTEMPLATE": 35,
|
|
|
|
|
"UNIT_FIELD_FLAGS": 46,
|
|
|
|
|
"UNIT_FIELD_FLAGS_2": 47,
|
feat: track shapeshift form and fire UPDATE_SHAPESHIFT_FORM events
Add UNIT_FIELD_BYTES_1 to all expansion update field tables (Classic=133,
TBC/WotLK=137). Byte 3 of this field contains the shapeshift form ID
(Bear=1, Cat=3, Travel=4, Moonkin=31, Tree=36, Battle Stance=17, etc.).
Track form changes in the VALUES update handler and fire
UPDATE_SHAPESHIFT_FORM + UPDATE_SHAPESHIFT_FORMS events when the
form changes. This enables stance bar addons and druid form tracking.
New Lua functions:
- GetShapeshiftForm() — returns current form ID (0 = no form)
- GetNumShapeshiftForms() — returns form count by class (Warrior=3,
Druid=6, DK=3, Rogue=1, Priest=1, Paladin=3)
2026-03-22 22:12:17 -07:00
|
|
|
"UNIT_FIELD_HEALTH": 22,
|
|
|
|
|
"UNIT_FIELD_LEVEL": 34,
|
|
|
|
|
"UNIT_FIELD_MAXHEALTH": 28,
|
|
|
|
|
"UNIT_FIELD_MAXPOWER1": 29,
|
2026-02-12 22:56:36 -08:00
|
|
|
"UNIT_FIELD_MOUNTDISPLAYID": 154,
|
feat: track shapeshift form and fire UPDATE_SHAPESHIFT_FORM events
Add UNIT_FIELD_BYTES_1 to all expansion update field tables (Classic=133,
TBC/WotLK=137). Byte 3 of this field contains the shapeshift form ID
(Bear=1, Cat=3, Travel=4, Moonkin=31, Tree=36, Battle Stance=17, etc.).
Track form changes in the VALUES update handler and fire
UPDATE_SHAPESHIFT_FORM + UPDATE_SHAPESHIFT_FORMS events when the
form changes. This enables stance bar addons and druid form tracking.
New Lua functions:
- GetShapeshiftForm() — returns current form ID (0 = no form)
- GetNumShapeshiftForms() — returns form count by class (Warrior=3,
Druid=6, DK=3, Rogue=1, Priest=1, Paladin=3)
2026-03-22 22:12:17 -07:00
|
|
|
"UNIT_FIELD_POWER1": 23,
|
2026-02-19 17:45:09 -08:00
|
|
|
"UNIT_FIELD_RESISTANCES": 185,
|
2026-03-10 23:08:15 -07:00
|
|
|
"UNIT_FIELD_STAT0": 159,
|
|
|
|
|
"UNIT_FIELD_STAT1": 160,
|
|
|
|
|
"UNIT_FIELD_STAT2": 161,
|
|
|
|
|
"UNIT_FIELD_STAT3": 162,
|
|
|
|
|
"UNIT_FIELD_STAT4": 163,
|
feat: track shapeshift form and fire UPDATE_SHAPESHIFT_FORM events
Add UNIT_FIELD_BYTES_1 to all expansion update field tables (Classic=133,
TBC/WotLK=137). Byte 3 of this field contains the shapeshift form ID
(Bear=1, Cat=3, Travel=4, Moonkin=31, Tree=36, Battle Stance=17, etc.).
Track form changes in the VALUES update handler and fire
UPDATE_SHAPESHIFT_FORM + UPDATE_SHAPESHIFT_FORMS events when the
form changes. This enables stance bar addons and druid form tracking.
New Lua functions:
- GetShapeshiftForm() — returns current form ID (0 = no form)
- GetNumShapeshiftForms() — returns form count by class (Warrior=3,
Druid=6, DK=3, Rogue=1, Priest=1, Paladin=3)
2026-03-22 22:12:17 -07:00
|
|
|
"UNIT_FIELD_TARGET_HI": 17,
|
|
|
|
|
"UNIT_FIELD_TARGET_LO": 16,
|
|
|
|
|
"UNIT_NPC_FLAGS": 168
|
2026-02-12 22:56:36 -08:00
|
|
|
}
|