WAK¶
Description¶
.wak files were used in C&C Generals and Zero Hour to store ocean and pond wave definitions. In later SAGE games, this data became part of the .map format.
Not all maps have accompanying .wak files, but those that require wave movement do.
File Structure¶
The file has a variable number of entries. The number of entries is stored at the end of the file.
| Offset | Bytes | Type | Name |
|---|---|---|---|
| 0 | NumEntries * 20 | WAVE_ENTRY[NumEntries] | Entries |
| NumEntries * 20 | 4 | UINT32 | NumEntries |
- Entries: See WAVE_ENTRY structure.
- NumEntries: Number of entries. Don’t ask me why this is at the end of the file, not the beginning… Thankfully WAVE_ENTRY is a fixed-length structure.