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,
|
2026-02-12 22:56:36 -08:00
|
|
|
"UNIT_FIELD_TARGET_LO": 6,
|
|
|
|
|
"UNIT_FIELD_TARGET_HI": 7,
|
2026-02-19 19:33:50 -08:00
|
|
|
"UNIT_FIELD_BYTES_0": 23,
|
2026-02-12 22:56:36 -08:00
|
|
|
"UNIT_FIELD_HEALTH": 24,
|
|
|
|
|
"UNIT_FIELD_POWER1": 25,
|
|
|
|
|
"UNIT_FIELD_MAXHEALTH": 32,
|
|
|
|
|
"UNIT_FIELD_MAXPOWER1": 33,
|
|
|
|
|
"UNIT_FIELD_LEVEL": 54,
|
|
|
|
|
"UNIT_FIELD_FACTIONTEMPLATE": 55,
|
|
|
|
|
"UNIT_FIELD_FLAGS": 59,
|
|
|
|
|
"UNIT_FIELD_FLAGS_2": 60,
|
|
|
|
|
"UNIT_FIELD_DISPLAYID": 67,
|
|
|
|
|
"UNIT_FIELD_MOUNTDISPLAYID": 69,
|
|
|
|
|
"UNIT_NPC_FLAGS": 82,
|
|
|
|
|
"UNIT_DYNAMIC_FLAGS": 147,
|
2026-02-19 17:45:09 -08:00
|
|
|
"UNIT_FIELD_RESISTANCES": 99,
|
2026-02-12 22:56:36 -08:00
|
|
|
"UNIT_END": 148,
|
|
|
|
|
"PLAYER_FLAGS": 150,
|
2026-02-26 13:38:29 -08:00
|
|
|
"PLAYER_BYTES": 153,
|
|
|
|
|
"PLAYER_BYTES_2": 154,
|
2026-02-12 22:56:36 -08:00
|
|
|
"PLAYER_XP": 634,
|
|
|
|
|
"PLAYER_NEXT_LEVEL_XP": 635,
|
2026-03-10 07:35:30 -07:00
|
|
|
"PLAYER_REST_STATE_EXPERIENCE": 636,
|
2026-02-12 22:56:36 -08:00
|
|
|
"PLAYER_FIELD_COINAGE": 1170,
|
|
|
|
|
"PLAYER_QUEST_LOG_START": 158,
|
|
|
|
|
"PLAYER_FIELD_INV_SLOT_HEAD": 324,
|
|
|
|
|
"PLAYER_FIELD_PACK_SLOT_1": 370,
|
2026-02-26 11:12:34 -08:00
|
|
|
"PLAYER_FIELD_BANK_SLOT_1": 402,
|
|
|
|
|
"PLAYER_FIELD_BANKBAG_SLOT_1": 458,
|
2026-02-12 22:56:36 -08:00
|
|
|
"PLAYER_SKILL_INFO_START": 636,
|
|
|
|
|
"PLAYER_EXPLORED_ZONES_START": 1041,
|
|
|
|
|
"GAMEOBJECT_DISPLAYID": 8,
|
2026-02-13 22:14:34 -08:00
|
|
|
"ITEM_FIELD_STACK_COUNT": 14,
|
2026-03-10 16:21:09 -07:00
|
|
|
"ITEM_FIELD_DURABILITY": 60,
|
|
|
|
|
"ITEM_FIELD_MAXDURABILITY": 61,
|
2026-02-13 22:14:34 -08:00
|
|
|
"CONTAINER_FIELD_NUM_SLOTS": 64,
|
|
|
|
|
"CONTAINER_FIELD_SLOT_1": 66
|
2026-02-12 22:56:36 -08:00
|
|
|
}
|