Handy Tip ! - Your sounds don't have to be in .ogg format, you can use any old wav file you have lying around !I think that .ogg files are smaller and have higher quality but since I'm no audiophile I'm happy with wav's.
You can find tons of great sounds from a site called Sounddogs here -
http://www.sounddogs.com/start.aspThey have lots of free samples, I understand that if you subscribe you get access to much longer high quality sounds, but so far I've been happy with the free stuff !
You can also make your own sounds using Sound Recorder and a cheap microphone or borrow sounds from TV shows, vidoes, other games etc. Don't forget - take copies for personal use only, otherwise there are copyright issues !
Sounddog files are all in WMA format - you can find lots of free WMA to WAV converters on the net. After downloading or creating a sound I generally cut it down to size using Sound Recorder since it's a) free, b) dead easy to use and c) every copy of Windows comes with it.
After you've finished with your file all you do is put the sound in a folder in your mission folder called Sounds and put the following lines in your description.ext file (create this in Notepad if you haven't already got a description.ext file).
class CfgSounds
{
sounds[] = {ping1, ping2, ping3};
class ping1
{
name = "ping1";
sound[] = {"\sounds\ping1.wav", 1.5, 1};
titles[] = {};
};
class ping2
{
name = "ping2";
sound[] = {"\sounds\ping2.wav", 1.5, 1};
titles[] = {};
};
class ping3
{
name = "ping3";
sound[] = {"\sounds\ping3.wav", 1.5, 1};
titles[] = {};
};
};Of course you can define as many sounds as you want, don't forget to make sure that your sound file has the same name as you used in the descriotion.ext (eg gunshot.wav, sound[] = {"\sounds\gunshot.wav", 1.5, 1};
Now in your scripts you can call any of those sounds using playSound "ping1" or whatever.
And that's it !
I didn't mean this to be a tutorial (please excuse me moderators !) but I use lots of custom sounds in my missions (it's what makes em all too big to post !) and think that they add heaps of colour to a mission.
Happy scripting !
Roni