benilla-re systems structs docs

BlizzardObject

struct · spell · 324 bytes

Meaning
Holds an area shard emitter: link, model path, world object, position, radius, accumulator, rate and shard list
Confidence
verified, proof one
Finding
spell/visuals#area-shard-emitter-creation

Finding: Area shard emitter creation in spell: visuals

A dynamic object starts an emitter from the first kit procedure of kind 9 in its spell's visual kit: 0x6ece30(position, radius, type, rate), with its radius, type the low byte of bits(f32(param0 + 512.0)) >> 14 and rate the raw param1. 0x6ece30 takes an emitter from the pool, zeroes it, links it at the tail and initializes it with the path 0x870e24[type], unbounded: types 0 to 6 are Spells\ Blizzard_Impact_Base, RainOfFire_Impact_Base, CallLightning_Impact, FlamestrikeSmall_Impact_Base, DeathAndDecay_Area_Base, ArcaneShot_Area, StarShards_Impact_Base (.mdx); type 7 reads the first path's bytes as a pointer. A failed allocation is not tested. The dynamic object's stop calls 0x6ecf20, which sets the rate to 0.0 and clears its handle.

The derivation is in the doc.

Fields 10

offsetsizetypenamemeaningconfidencefinding
0x00004void *m_prevLinkHolds the address of the previous link in the emitter listverified, proof onespell/visuals#area-shard-emitter-creation
0x00044void *m_nextHolds the next emitter, or the terminator address marked by bit 0verified, proof onespell/visuals#area-shard-emitter-creation
0x0008260char[260]m_modelPathHolds the shard model path 0x6eb930 copiesverified, proof onespell/visuals#emitter-initialization
0x010c4void *m_worldObjectHolds the world object 0x670db0 creates with the draw callbackverified, proof onespell/visuals#emitter-initialization
0x011012float[3]m_positionHolds the emitter positionverified, proof onespell/visuals#emitter-initialization
0x011c4floatm_radiusHolds the spread radius the shard placement multipliesverified, proof onespell/visuals#shard-placement
0x01204floatm_accumulatorHolds the fractional shards carried between updates, zeroed at creationverified, proof onespell/visuals#shard-emission-rate
0x01244floatm_rateHolds the shards per second after the spellEffectLevel scale; 0.0 once stoppedverified, proof onespell/visuals#shard-emission-rate
0x012816uint32_t[4]m_unused128Holds four dwords 0x6ece30 zeroes and no function of this file readsverified, proof onespell/visuals#area-shard-emitter-creation
0x013812uint32_t[3]m_shardsHolds the shard list: link offset 0, then the terminator linkverified, proof onespell/visuals#area-shard-emitter-creation