DB/CameraShakes: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
==0.5.3.3368== | ==0.5.3.3368== | ||
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 { | struct CameraShakesRec { | ||
uint32_t m_ID; | uint32_t m_ID; | ||
CGCameraShakeType m_shakeType; | |||
CGCameraDir m_direction; | |||
float m_amplitude; | float m_amplitude; | ||
float m_frequency; | float m_frequency; |
Revision as of 16:11, 5 June 2016
Actually there's no real Information. Mostly shaking cameras.
0.5.3.3368
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; };
Structure
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 |
Used in client:
CGCamera::AddShake( vector, shakeType, direction, amplitude*0.027777778, frequency, duration, phase, coefficient );
6.0.1.18179
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; };