DB/SpellVisualKitModelAttach: Difference between revisions

From wowdev
Jump to navigation Jump to search
No edit summary
(Added info for Cata/MoP)
Line 14: Line 14:
     float m_roll;
     float m_roll;
  };
  };
{{Template:Sandbox/VersionRange|min_expansionlevel=4}}
{| style="background:#FCFCFC; color:black"
|-
! width="80" | Column
! width="180 " | Field
! width="80" | Type
! width="600" | Notes
|-
| 1  || ID || Integer ||
|- style="background:#F0F8FF;"
| 2 || [[SpellVisualKit.dbc|Parent SpellVisualKit ID]] || iRefID ||
|- style="background:#F0F8FF;"
| 3 || [[SpellVisualEffectName.dbc|SpellVisualEffectName ID]] || iRefID ||
|-
| 4 || Attachment ID || Integer || the parent model's [[M2#Attachments|attachment]], -1 for model's base position
|-
| 5 || Offset X || Float || Relative to the attachment
|-
| 6 || Offset Y || Float || 
|-
| 7 || Offset Z || Float ||
|-
| 8 || Yaw || Float || In radians
|-
| 9 || Pitch || Float ||
|-
| 10 || Roll || Float ||
|-
| 11 || Unk || Integer ||
|- style="background:#F0F8FF;"
| 12  || [[AnimationData.dbc|Animation (Hold)]] || iRefID || Animation of the attached model while it is 'on' the character
|-  style="background:#F0F8FF;"
| 13  || [[AnimationData.dbc|Animation (Birth)]] || iRefID || Animation for the attached model to play once when it is spawned
|-  style="background:#F0F8FF;"
| 14  || [[AnimationData.dbc|Animation (Decay)]] || iRefID || Animation for the attached model to play as it despawns
|}


[[Category:DBC]]
[[Category:DBC]]
[[Category:DBC_WotLK]]
[[Category:DBC_WotLK]]
[[Category:DBC_Cata]]
[[Category:DBC_MoP]]

Revision as of 05:44, 5 February 2018

≥ Wrath

struct SpellVisualKitModelAttachRec {
   uint32_t m_ID;
   foreign_key<uint32_t, &SpellVisualKitRec::m_ID> m_parentSpellVisualKitID; 
   foreign_key<uint32_t, &SpellVisualEffectNameRec::m_ID> m_spellVisualEffectNameID; 
   uint32_t m_attachmentID;                                                           // the parent model's attachment, -1 for model's base position
   float m_offsetX;                                                                   // relative to the attachment
   float m_offsetY; 
   float m_offsetZ; 
   float m_yaw;                                                           // the three rotations seem to be in radians
   float m_pitch;
   float m_roll;
};


≥ Cata

Column Field Type Notes
1 ID Integer
2 Parent SpellVisualKit ID iRefID
3 SpellVisualEffectName ID iRefID
4 Attachment ID Integer the parent model's attachment, -1 for model's base position
5 Offset X Float Relative to the attachment
6 Offset Y Float
7 Offset Z Float
8 Yaw Float In radians
9 Pitch Float
10 Roll Float
11 Unk Integer
12 Animation (Hold) iRefID Animation of the attached model while it is 'on' the character
13 Animation (Birth) iRefID Animation for the attached model to play once when it is spawned
14 Animation (Decay) iRefID Animation for the attached model to play as it despawns