DB/CameraShakes: Difference between revisions

From wowdev
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 2: Line 2:
Actually there's no real Information. Mostly shaking cameras.
Actually there's no real Information. Mostly shaking cameras.


==Classic==
==0.5.3.3368-3.0.2.8905-3.3.5.12340==
===0.5.3.3368===
===Table===
====Struct====
enum CGCameraShakeType : uint32_t
{
  CAMSHAKE_SINE=0,
  CAMSHAKE_DECAYED_SINE=1,
  NUM_CAMERA_SHAKETYPES=2
};
enum CGCameraDir : uint32_t
{
  CAMERA_FORWARD=0,
  CAMERA_RIGHT=1,
  CAMERA_UP=2,
  NUM_CAMERA_DIRECTIONS=3
};
struct CameraShakesRec {
  uint32_t m_ID;
  CGCameraShakeType m_shakeType;
  CGCameraDir m_direction;
  float m_amplitude;
  float m_frequency;
  float m_duration;
  float m_phase;
  float m_coefficient;
};
 
==Wrath==
===3.0.2.8905===
====Table====
{| style="background:#FCFCFC; color:black"
{| style="background:#FCFCFC; color:black"
|-  
|-  
Line 56: Line 28:
|}
|}


Used in client:
===Struct===
CGCamera::AddShake( vector, shakeType, direction, amplitude*0.027777778, frequency, duration, phase, coefficient );
enum CGCameraShakeType : uint32_t
 
{
===3.3.5.12340===
  CAMSHAKE_SINE=0,
====Table====
  CAMSHAKE_DECAYED_SINE=1,
{| style="background:#FCFCFC; color:black"
  NUM_CAMERA_SHAKETYPES=2
|-
};
! width="80" | Column
enum CGCameraDir : uint32_t
! width="180 " | Field
{
! width="80" | Type
  CAMERA_FORWARD=0,
! width="600" | Notes
  CAMERA_RIGHT=1,
|-
  CAMERA_UP=2,
| 1 || ID  || Integer  ||
  NUM_CAMERA_DIRECTIONS=3
|-
};
| 2  || shakeType  || CGCameraShakeType ||
  struct CameraShakesRec {
|-
  uint32_t m_ID;
| 3  || direction  || CGCameraDir ||
  CGCameraShakeType m_shakeType;
|-
  CGCameraDir m_direction;
| 4  || amplitude  || Float || Multiplied by 0.027777778f when passed to CGCamera::AddShake.
  float m_amplitude;
|-
  float m_frequency;
| 5  || frequency  || Float
  float m_duration;
|-
  float m_phase;
| 6  || duration  || Float
  float m_coefficient;
|-
  };
| 7  || phase  || Float
|-
| 8  || coefficient || Float
|}


==Warlords==
==6.0.1.18179==
===6.0.1.18179===
===Struct===
====Struct====
  struct CameraShakesRec {
  struct CameraShakesRec {
   uint32_t m_ID;
   uint32_t m_ID;

Revision as of 13:47, 16 July 2016

Actually there's no real Information. Mostly shaking cameras.

0.5.3.3368-3.0.2.8905-3.3.5.12340

Table

Column Field Type Notes
1 ID Integer
2 shakeType CGCameraShakeType
3 direction CGCameraDir
4 amplitude Float Multiplied by 0.027777778f when passed to CGCamera::AddShake.
5 frequency Float
6 duration Float
7 phase Float
8 coefficient Float

Struct

enum CGCameraShakeType : uint32_t
{
  CAMSHAKE_SINE=0,
  CAMSHAKE_DECAYED_SINE=1,
  NUM_CAMERA_SHAKETYPES=2
};
enum CGCameraDir : uint32_t
{
  CAMERA_FORWARD=0,
  CAMERA_RIGHT=1,
  CAMERA_UP=2,
  NUM_CAMERA_DIRECTIONS=3
};
struct CameraShakesRec {
  uint32_t m_ID;
  CGCameraShakeType m_shakeType;
  CGCameraDir m_direction;
  float m_amplitude;
  float m_frequency;
  float m_duration;
  float m_phase;
  float m_coefficient;
};

6.0.1.18179

Struct

struct CameraShakesRec {
  uint32_t m_ID;
  uint32_t m_shakeType;
  uint32_t m_direction;
  float m_amplitude;
  float m_frequency;
  float m_duration;
  float m_phase;
  float m_coefficient;
  uint32_t m_flags;
};