Sound Curve Asset: Difference between revisions
Aerosoul94 (talk | contribs) Created page with "__NOTOC__ Category:Assets Category:CoD4 Category:MW2 Category:MW3 Category:Ghosts The sndcurve asset is used only in Call of Duty 4, Modern Warfare 2 & 3, ..." |
Aerosoul94 (talk | contribs) mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 13: | Line 13: | ||
#ifndef COD4 | #ifndef COD4 | ||
unsigned __int16 knotCount; | unsigned __int16 knotCount; | ||
vec2_t knots[16]; | |||
#else | #else | ||
int knotCount; | int knotCount; | ||
vec2_t knots[8]; | |||
#endif | #endif | ||
}; | }; | ||
Latest revision as of 12:41, 23 February 2014
The sndcurve asset is used only in Call of Duty 4, Modern Warfare 2 & 3, and Ghosts.
#pragma pack(push, 4)
struct SndCurve
{
const char *filename;
#ifndef COD4
unsigned __int16 knotCount;
vec2_t knots[16];
#else
int knotCount;
vec2_t knots[8];
#endif
};
#pragma pack(pop)Source Format
The source files are located in "raw/soundaliases/" and use the extension ".vfcurve" although after being compiled, the extension is removed. Here is an example sndcurve file named "default.vfcurve" from Call of Duty 4:
SNDCURVE 5 0.0000 1.0000 0.2500 0.6500 0.5000 0.4200 0.7500 0.2000 1.0000 0.0000