CEffect
struct · objectlayer · 144 bytes
- Meaning
- Holds a spell effect model: model, GUIDs, spell, records, attachment, sound, flags, times, references and link
- Confidence
- verified, proof one
- Finding
- objectlayer/effects#the-effect-object
Finding: The effect object in objectlayer: effects
| offset | member |
|---|---|
+0x00, +0x04 | the model; the fishing pole's line model |
+0x08, +0x10 | the owner's and the target's GUIDs |
+0x18, +0x1c | the spell id and the SpellVisualKit record |
+0x20, +0x24 | the SpellVisualEffectName record and the attachment, −1 for none |
+0x28, +0x2c | the playing sound and the flags, below |
+0x30 to +0x38 | three chain beams |
+0x48, +0x54, +0x58 | the position, the start time and the end time |
+0x60 to +0x68 | three saved animation speeds |
+0x80 | the world object of a planted effect |
+0x84, +0x88, +0x8c | the reference count (1 at construction) and the list link |
Flags: 0x1 the kit sound loops, 0x2 planted at +0x48, 0x4 animation-speed override, 0x10
camera shake, 0x20 no end time, 0x100 hidden, 0x200 scaled to its target, which no creator sets, 0x400 no kit sound,
0x800 set up, 0x4000 follows its owner.
The derivation is in the doc.
Fields 17
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | CM2Model * | m_model | Points at the effect model | verified, proof one | objectlayer/effects#the-effect-object |
0x0004 | 4 | CM2Model * | m_lineModel | Points at the fishing line model | verified, proof one | objectlayer/effects#the-effect-object |
0x0008 | 8 | uint64_t | m_owner | Holds the owner GUID | verified, proof one | objectlayer/effects#the-effect-object |
0x0010 | 8 | uint64_t | m_target | Holds the target GUID | verified, proof one | objectlayer/effects#the-effect-object |
0x0018 | 4 | uint32_t | m_spellId | Holds the spell id | verified, proof one | objectlayer/effects#the-effect-object |
0x001c | 4 | void * | m_kit | Points at the SpellVisualKit record | verified, proof one | objectlayer/effects#the-effect-object |
0x0020 | 4 | void * | m_effectName | Points at the SpellVisualEffectName record | verified, proof one | objectlayer/effects#the-effect-object |
0x0024 | 4 | int32_t | m_attachment | Holds the attachment, -1 for none | verified, proof one | objectlayer/effects#the-effect-object |
0x0028 | 4 | void * | m_sound | Points at the playing kit sound | verified, proof one | objectlayer/effects#the-effect-object |
0x002c | 4 | uint32_t | m_flags | Holds the sound, planted, speed, shake, timing, visibility, scale and set-up flags | verified, proof one | objectlayer/effects#the-effect-object |
0x0048 | 12 | float[3] | m_position | Holds the position of a planted effect | verified, proof one | objectlayer/effects#the-effect-object |
0x0054 | 4 | uint32_t | m_startTime | Holds the start time | verified, proof one | objectlayer/effects#the-effect-object |
0x0058 | 4 | uint32_t | m_endTime | Holds the end time | verified, proof one | objectlayer/effects#the-effect-object |
0x0080 | 4 | void * | m_worldObject | Points at the world object of a planted effect | verified, proof one | objectlayer/effects#the-effect-object |
0x0084 | 4 | uint32_t | m_refCount | Holds the reference count, 1 at construction | verified, proof one | objectlayer/effects#the-effect-object |
0x0088 | 4 | CEffect ** | m_prevLink | Points at the slot that points at the effect | verified, proof one | objectlayer/effects#the-effect-object |
0x008c | 4 | CEffect * | m_next | Points at the next effect on its list | verified, proof one | objectlayer/effects#the-effect-object |
Globals of this type
0xc4dec8s_timedEffects0xc4dee4s_dyingEffects