Crowdedlight / Crows-Electronic-Warfare

Arma 3 Mod that enables electronic warfare features such as Radio/Drone jamming and spectrum signal tracking
https://crowdedlight.github.io/Crows-Electronic-Warfare/
Other
19 stars 7 forks source link

Add more sounds #24

Open Crowdedlight opened 3 years ago

Crowdedlight commented 3 years ago
Longshot133 commented 2 years ago

possibly a way to add custom sounds via the mission file or such?

Crowdedlight commented 2 years ago

hmm. Could do something so you can load extra in through the mission-file. Having them register in the module somehow. Will think about it.

Longshot133 commented 2 years ago

Thank you, it would severely help with mission immersion letting scenario based sounds be added instead of just download a big pack XD. Sorry to bother.

Crowdedlight commented 2 years ago

I had an thought and I think you can actually do it already.

If you add the following in a initPlayerLocal.sqf file in your mission, and put the sound-file next to it, it should be added the the list of the module. However it will most likely be added in the end of the list and not sorted alphabetically.

crowsEW_sounds_soundAttributes set ["your_sound_unique_name", [1.5, "your_sound_path.ogg", "Your Sound displayname (2s)"]];

Replace the "your_sound" parts accordingly. (unique name for the sound, the path to the soundfile, displayname for the sound).

The 1.5 is the length of the sound in seconds. Its important you include that as this is what make it play the entire sound.

I haven't personally had time to test it, but its essential the same way I add the sounds in the mod, so should work fine.