madmedic 0 Posted April 12, 2005 I am working on a script (well modifying a script, actually) so that fighter planes will notify the other members of their group when they have fired a missle (i.e. "FOX ONE", "FOX TWO", etc) over the radio, via a group radio command. I already have the radio messages I want to use in .wav format the problem is...I dont know how to add the sounds to the game. I want to permanently add the sounds to an addon, not add them to individual missions. where do I start? Share this post Link to post Share on other sites
madmedic 0 Posted April 12, 2005 Ahhh...I figured it out. Share this post Link to post Share on other sites
HuNtA 0 Posted April 12, 2005 Can you share this info with everybody else if they wanna do the same.... Share this post Link to post Share on other sites
madmedic 0 Posted April 12, 2005 Can you share this info with everybody else if they wanna do the same.... Yes...but I am on my way out the door right now. I will post it when I get home (about 9:30 EST). I tried it on Footmuch's F14s, and it works perfectly. Share this post Link to post Share on other sites
madmedic 0 Posted April 13, 2005 Okay...here goes. I used Footmuch's F14 for this, but it should work with any plane that uses  "draw missles", and "fire missles" scripts. First, I stole three .wav sounds from the game "Wings over Viet Nam". They are sounds of a pilot saying over the radio: "FOX ONE", "FOX TWO", and "FOX THREE". I converted them to .ogg format, and put them into the sound folder inside the addon. (They are named: "A2fox1001.ogg, A2fox2001.ogg, and A2fox3001.ogg") Then, in the config file...I edited the "class cfgradio" section. the ORIGINAL looked like THIS: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgRadio { class RKT_F14_IncomingPips {  sound[]={"\rkttomcat\snd\incoming.ogg",db20,1};  name = "RKT_F14_IncomingPips"; title = ""; }; }; I EDITED it to look like THIS: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgRadio { class RKT_F14_IncomingPips {  sound[]={"\rkttomcat\snd\incoming.ogg",db20,1};  name = "RKT_F14_IncomingPips"; title = ""; }; class RKT_F14_fox1 {  sound[]={"\rkttomcat\snd\A2fox1001.ogg",db20,1};  name = "RKT_F14_fox1"; title = ""; }; class RKT_F14_fox2 {  sound[]={"\rkttomcat\snd\A2fox2001.ogg",db20,1};  name = "RKT_F14_fox2"; title = ""; }; class RKT_F14_fox3 {  sound[]={"\rkttomcat\snd\A2fox3001.ogg",db20,1};  name = "RKT_F14_fox3"; title = ""; }; }; Now the three new radio messages are part of the addons cfgradio. NEXT, I opened up the FIREMISS.sqs script, and added the appropriate radio message to each missle launch, Like THIS: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#spAaway _plane groupradio "RKT_F14_fox1" _plane setobjecttexture[6, ""] _missmove = -2.6 goto "MoveMissile" #spBaway _plane groupradio "RKT_F14_fox1" _plane setobjecttexture[7, ""] _missmove = 2.6 goto "MoveMissile" #phAaway _plane groupradio "RKT_F14_fox3" _plane setobjecttexture[8, ""] _missmove = -0.5 goto "MoveMissile" #phBaway _plane groupradio "RKT_F14_fox3" _plane setobjecttexture[9, ""] _missmove = 0.5 goto "MoveMissile" #phCaway _plane groupradio "RKT_F14_fox3" _plane setobjecttexture[10, ""] _missmove = 0.5 goto "MoveMissile" #phDaway _plane groupradio "RKT_F14_fox3" _plane setobjecttexture[11, ""] _missmove = -0.5 goto "MoveMissile" #swAaway _plane groupradio "RKT_F14_fox2" _plane setobjecttexture[4, ""] _missmove = -3 goto "MoveMissile" #swBaway _plane groupradio "RKT_F14_fox2" _plane setobjecttexture[5, ""] _missmove = 3 goto "MoveMissile" This makes the pilots (AI, and player) to call out the appropriate radio messages, signaling to other members of their group that they have fired a radar guided (Fox 1), heat seeking (Fox 2), or fully active (Fox 3) missle. NOTICE: I used the Footmuch/TomiD F14s for this experiment because they are some my favorite planes in OFP right now...I do not plan to "release" any addon made from these planes, and please do not use the information in this post to edit, and release any version of any addon without the addon makers  expressed permission Share this post Link to post Share on other sites