DB/CreatureDisplayInfo: Difference between revisions

From wowdev
Jump to navigation Jump to search
Line 29: Line 29:
| 2 || [[CreatureModelData.dbc|Model]] || iRefID || A model to be used.
| 2 || [[CreatureModelData.dbc|Model]] || iRefID || A model to be used.
|- style="background:#F0F8FF;"
|- style="background:#F0F8FF;"
| 3 || [[CreatureSoundData.dbc|Sound]] || iRefID || Not set for that much models. Can also be set in CreatureModelData.
| 3 || [[CreatureSoundData.dbc|Sound]] || iRefID || If 0 - CreatureModelData information is used. Otherwise, overrides generic model settings for this displayID.
|- style="background:#F0F8FF;"
|- style="background:#F0F8FF;"
| 4 || [[CreatureDisplayInfoExtra.dbc|ExtraDisplayInformation]] || iRefID || Applies only to NPCs with character model (hair/facial feature/... and equipment settings). Not used for creatures.
| 4 || [[CreatureDisplayInfoExtra.dbc|ExtraDisplayInformation]] || iRefID || Applies only to NPCs with character model (hair/facial feature/... and equipment settings). Not used for creatures.

Revision as of 11:08, 23 July 2017

This defines textures, scale, models and some other things that are used for showing creatures.

Classic

0.5.3.3368

Struct

struct CreatureDisplayInfoRec {
  uint32_t m_ID;
  uint32_t m_modelID;
  uint32_t m_soundID;
  uint32_t m_extendedDisplayInfoID;
  float m_creatureModelScale;
  uint32_t m_creatureModelAlpha;
  stringref m_textureVariation[3];
  uint32_t m_bloodID;
};

Wrath

3.0.2.8905-3.3.5.12340

Table

Column Field Type Notes
1 ID Integer
2 Model iRefID A model to be used.
3 Sound iRefID If 0 - CreatureModelData information is used. Otherwise, overrides generic model settings for this displayID.
4 ExtraDisplayInformation iRefID Applies only to NPCs with character model (hair/facial feature/... and equipment settings). Not used for creatures.
5 Scale Float Default scale. Stacks (by multiplying) with other scale settings (in creature_template, applied auras...).
6 Opacity Integer 0 (transparent) to 255 (opaque).
7 Texture1 String Name of texture for 1st geoset with type 2 (see this). Texture must be in the same dir as M2 file of creature is.
8 Texture2 String Name of texture for 2nd geoset with type 2 (see this). Texture must be in the same dir as M2 file of creature is.
9 Texture3 String Name of texture for 3rd geoset with type 2 (see this). Texture must be in the same dir as M2 file of creature is.
10 portraitTextureName String Holding an icon like INV_Misc_Food_59. Only on a few.
cata sizeClass Integer
11 bloodLevel iRefID If 0, this is read from CreatureModelData. (CGUnit::RefreshDataPointers) Seems to have no effect in game.
12 blood iRefID Sets up color of blood.
13 NPCSounds iRefID Sounds used when interacting with the NPC (on-left-click said hello talk).
14 Particles iRefID Values are 0 and >281. Wherever they are used ..
15 creatureGeosetData Integer With this one, you can select an geoset out of the first 8 groups. 0x00200000 will select geoset 2 out of group 600 and therefore 602.
16 objectEffectPackageID iRefID Set for gyrocopters, catapults, rocketmounts and siegevehicles. (WotLK)

Warlords

6.0.1.18179

Struct

struct CreatureDisplayInfoRec {
  uint32_t m_ID;
  foreign_key<uint32_t, &CreatureModelDataRec::m_ID> m_modelID;
  foreign_key<uint32_t, &CreatureSoundDataRec::m_ID> m_soundID;                              // if not found, resolve via CreatureModelDataRec::m_soundID
  foreign_key<uint32_t, &CreatureDisplayInfoExtraRec::m_ID> m_extendedDisplayInfoID;
  float m_creatureModelScale;
  uint32_t m_creatureModelAlpha;
  stringref m_textureVariation[3];
  stringref m_portraitTextureName;
  uint32_t m_portraitCreatureDisplayInfoID;
  uint32_t m_sizeClass;
  uint32_t m_bloodID;
  uint32_t m_NPCSoundID;
  uint32_t m_particleColorID;
  uint32_t m_creatureGeosetData;
  uint32_t m_objectEffectPackageID;
  uint32_t m_animReplacementSetID;
  uint32_t m_flags;
  uint32_t m_gender;
  uint32_t m_stateSpellVisualKitID;
};