MOD: Toggle Sound/music on dynamite


(mechevar) #1

Wondering if anyone knows how to make a general mod so that when dynamite is armed, music starts playing and then when dynamite is disarmed, the music is stopped.

I looked into speakerdefs, but that looks like that has to be hardcoded into every map script file. I was hoping to be able to simply edit the vo_allies.sounds so that I just edit the dynamite entries to start a sound and stop a sound. Unfortunately I can’t find any documentation about all the options/parameters in a vo_allies.sounds file.

Any help would be greatly appreciated.