Sound Curve Asset

From COD Engine Research
Jump to: navigation, search

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];
	int knotCount;
	vec2_t knots[8];
#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:


0.0000 1.0000
0.2500 0.6500
0.5000 0.4200
0.7500 0.2000
1.0000 0.0000