I was very impressed by the immersive environment created by the author of A Normal Day, which we played on Friday evening. His name is R 3 4 P 3 R and he has obviously done this before, as he has a whole directory full of custom scripts.
To get to the files you need pbomanager which works like winzip and compiles and decompiles .pbo files. (
http://www.armaholic.com/page.php?id=16369)
I worked out how he got the radios to play different audio streams, which works as follows:
There is a file called "description.ext" in which you can define custom classes within some of the Bohemia cfg classes. It needs to be in the mission directory alongside "mission.sqf". This is initialized at mission start with no calls, and allows you to change stuff which then gets reused throughout the mission.
The class for sounds is CfgSounds.
So description.ext looks like this
class CfgSounds
{
class ambient_radio //any name, no spaces and no leading _ which is for local variables, therefore this is public
{
name = "ambient_radio"; //repeat of the name
sound[] = {"music\radio.ogg", 0.8, 1}; //directory location of the sound file, volume, pitch
titles[] = {0, ""}; //not used
};
};You then place down an object (in this case called "radio"), and have the following code in the init.sqf file:
[] spawn {
while {true} do {
if(player distance radio < 26) then {
radio say ["ambient_radio", 26]; //this will play the the sound file defined inside the class when player is < 26 distance from it
sleep 104;
};
sleep 2;
};
};To mess with sound you need a program called audacity (
http://audacityteam.org/download/) which can produce the required .ogg file type from most standard audio files.
There are tools to get sound files out of youtube videos, but I have yet to find one that works without a load of adware attached. Nonetheless, audacity allows you to record your own sounds with your microphone, so if you wanted to do custom briefings during insertion, you would record the briefing, place an object in the insertion vehicle and voila.
He did a lot of other cool stuff which I will work at understanding and repeating.
D