Okay, it took me a long while to try and understand it, but I think I get it. (The guide does explain it correctly, but not very helpfully.) Remember that this is only for replacing a sound, not adding one.
Go to YourMod\GameData\Sound\Generated\SoundDescriptors.ndf. I'm going to use the 20mm cannon sound as an example.
Code: Select all
template Template_SoundDescriptor_CC_Autocanon_20mm
[
UseSpecialLoop,
]
is TSoundDescriptor
(
TheSoundStream = TSoundStream ( FileName = 'GameData:\Assets\Sons\SFX_Normandie\CC\CC_Autocanon_20mm.wav' )
SoundSettings = $/SoundSettings/SFX_SoundSettings
UseSpecialLoop = <UseSpecialLoop>
)
Now if I want to replace it with my own sound file called My20Mm.wav, I have to put that file in the folder YourMod\GameData\Assets\SoundModding\. (Remember to set your .wav file to the very exact specifications that are listed in the guide.) Now replace the code above with this:
Code: Select all
template Template_SoundDescriptor_CC_Autocanon_20mm
[
UseSpecialLoop,
]
is TSoundDescriptor
(
TheSoundStream = SoundStreamModded( FileName = 'my20Mm.wav' )
SoundSettings = $/SoundSettings/SFX_SoundSettings
UseSpecialLoop = <UseSpecialLoop>
)
Notice how I replaced TSoundStream with SoundStreamModded. I believe that is what the arrows mean. For example, you are modding a unit's voice acting, you want to replace the Template_GlobalAcknow with Template_GlobalAcknowModded. Lastly, note that the file name is now relative to the folder YourMod\GameData\Assets\SoundModding\.
Eugen or anybody else, if I messed up on something, please correct me. I hope this helps, mvginda. Feel free to friend me on Steam @ The W:RD Noob to ask more questions anytime.