DB/SpellVisualKitModelAttach: Difference between revisions

From wowdev
Jump to navigation Jump to search
No edit summary
No edit summary
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
New in WotLK.


struct SpellVisualKitModelAttachEntry // sizeof(0x28)
{{Template:Sandbox/VersionRange|min_expansionlevel=3}}
  {
 
     m_ID; // +0x0, size 0x4, type 0
  struct SpellVisualKitModelAttachRec {
     m_parentSpellVisualKitID; // +0x4, size 0x4, type 0
     uint32_t m_ID;
     m_spellVisualEffectNameID; // +0x8, size 0x4, type 0
     {{Template:Type/foreign_key|table=SpellVisualKit}} m_parentSpellVisualKitID;  
     m_attachmentID; // +0xC, size 0x4, type 0
     {{Template:Type/foreign_key|table=SpellVisualEffectName}} m_spellVisualEffectNameID;  
     m_offsetX; // +0x10, size 0x4, type 3
     uint32_t m_attachmentID;                                                           // the parent model's [[M2#Attachments|attachment]], -1 for model's base position
     m_offsetY; // +0x14, size 0x4, type 3
     float m_offsetX;                                                                   // relative to the attachment
     m_offsetZ; // +0x18, size 0x4, type 3
     float m_offsetY;  
     m_yaw; // +0x1C, size 0x4, type 3
     float m_offsetZ;  
     m_pitch; // +0x20, size 0x4, type 3
     float m_yaw;                                                           // the three rotations seem to be in radians
     m_roll; // +0x24, size 0x4, type 3
     float m_pitch;
     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 (Birth)]] || iRefID || Animation for the attached model to play once when it is spawned
|-  style="background:#F0F8FF;"
| 13  || [[AnimationData.dbc|Animation (Hold)]] || iRefID || Animation of the attached model while it is 'on' the character
|-  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_Cataclysm]]
[[Category:DBC_MoP]]

Latest revision as of 16:46, 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 (Birth) iRefID Animation for the attached model to play once when it is spawned
13 Animation (Hold) iRefID Animation of the attached model while it is 'on' the character
14 Animation (Decay) iRefID Animation for the attached model to play as it despawns