OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gadolinite on 01 Jan 2006, 01:50:08

Title: Radio Static
Post by: gadolinite on 01 Jan 2006, 01:50:08
I made a *.wav file with my voice in it for a radio reception.  I read the tutorial.  It says use a distortion filter and a band pass filter.  I know what a band pass filter is, and that part worked well.  What do I do for the poor quality staticy radio voice?

Thanks
Title: Re:Radio Static
Post by: Pilot on 01 Jan 2006, 04:27:44
Doesn't OFP have a built-in static overlay for radio sounds?

-Pilot
Title: Re:Radio Static
Post by: gadolinite on 01 Jan 2006, 04:31:08
I don't know.
Title: Re:Radio Static
Post by: THobson on 01 Jan 2006, 10:18:15
Yes it does.  You need to define the sound in Description.ext using:
class CfgRadio.  For example:

Code: [Select]
class CfgRadio
{
   sounds[] = {};

   class Civi2_11
   {
      name = "";
      sound[] = {"\sound\Civi2_11.ogg", db-100, 1.0};
      title = "Well all the civilians are now safe in the lodge.  I am ready for your orders.";
   };

   class Civi2_12
   {
      name = "";
      sound[] = {"\sound\Civi2_12.ogg", db-100, 1.0};
      title = "I am now at the lodge, but I am afraid we suffered some civilian casualties on the way.  I am ready for your orders.";
   };

};
Note that there is a slight difference between this and defining sounds.  For CfgRadio you use title but for CfgSounds you use titles

You script the sound as follows:
Code: [Select]
unitname sideRadio "Civi2_11"This will give you the standard OFP radio static and click at the end.  

For a more pronounced radio interferrence what I have done in the past use some sound editing software that comes with the Roxio CD/DVD buring package.  This provides the ability to generate hiss, clicks, static etc.  I use this on my voice file.  I then tune a shortwave radio in between stations and record the sound.  I then use Dexter to merge the two sounds (Roxio doesn't provide the merge capability).  I then use this as a normal sound in the mission.

Title: Re:Radio Static
Post by: gadolinite on 01 Jan 2006, 10:33:27
Can you play the radio sound in a cutscene?  In a cutscene I plan on having a guy with a phone in his hand (I know how to do that) make it appear he is using the radio set you find in the back seat of a jeep to ask what his further orders are.  Gonna get that transistor radio out (made in 1964, AM Only) and put microphone up to speaker and see if i can get some good static from it.
Title: Re:Radio Static
Post by: gadolinite on 01 Jan 2006, 10:43:10
How is this for AM static?
http://www.megaupload.com/?d=18EENQ5K (http://www.megaupload.com/?d=18EENQ5K)

Be advised, this file hosting site is ridden with ads.
Title: Re:Radio Static
Post by: THobson on 01 Jan 2006, 12:47:53
I have not tried using sideRadio in a cutscene.  For what you want I suggest you do it the long way round and make your own sound file.  I can't download you exmaple yet, my cable connection is down so I am back to useing my slow dial up.

Attached is an example of what I made using the method described above:
Title: Re:Radio Static
Post by: 456820 on 01 Jan 2006, 12:59:03
ive tried sidechat in a cutscene aslong as its no an intro or outro it works i persume it might be the same for sideradio

I use playsound whilst dealing with cutscenes and edit the sound to sound like radio static i even made a tutorial and put it in the editors depot
Here it is (http://www.ofpec.com/editors/resource_view.php?id=919)
Not sure if thats the one you are refering to in your first post

OFP does have its on static which it adds but i dont think its that good it could be much better but yet again it could of been much worse
Title: Re:Radio Static
Post by: bored_onion on 01 Jan 2006, 13:11:11
if you can't fix it any other way, try google searching audacity which is a sound editing program which can handle wavs and oggs. it has, amongst some other cool features, the ability to generate white noise. this can sound good at a low volume in the background and loud short bursts at either end of the sound.

try it if all else fails.
Title: Re:Radio Static
Post by: The-Architect on 02 Jan 2006, 12:06:55
http://www.ofpec.com/editors/resource_view.php?id=752
Title: Re:Radio Static
Post by: Dinger on 05 Jan 2006, 15:15:36
All good ideas.
When I'm feeling really cheap, I just tune my AM radio between stations, and put it up really loud in the background during my recording sessions.
:D
Title: Re: Radio Static
Post by: Hellbender on 14 Sep 2006, 23:47:08
I've experimented with a few other things! I tried using two short range walkie talkies and put the recieving one right next to my mic. It worked like a charm and the file sounds excelent. The only problem with this is, you're sending your OFP sound files on the net and anyone using that channel within a two km radius will hear you! ::) In the long run I just don't feel comfortable with that!!

You can also download voice effect programs that allow you to edit the sound of your own voice and you can at least put some hiss or turn up the treble to make it sound more like a radio voice.

If anyone finds a program that has a radio effect, please let me know!