Code: Select all
# extracts the sound.pak from Call of Duty: Black Ops/Modern Warfare 3 (Wii)
# resulting dsp files can be converted with the script at http://zenhax.com/viewtopic.php?f=6&t=2512
# written by AlphaTwentyThree of Zenhax
# script for QuickBMS http://quickbms.aluigi.org
idstring "PAK0"
get UNK long
get FILES long
get MULTIPLIER long
get DATASTART long
for i = 1 <= FILES
get CRC long
get OFFSET long
xmath OFFSET "OFFSET * MULTIPLIER + DATASTART"
get SIZE long
get NAME basename
string NAME p= "%s_0x%08x.dsp" NAME CRC
log NAME OFFSET SIZE
next i