OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Messiah on 21 Aug 2002, 21:39:08

Title: sound in briefings?
Post by: Messiah on 21 Aug 2002, 21:39:08
is it possible?

basically having some1 say summit in the briefing page would be funny (well the use i have for it will) so is it possible and .... ummmm.... how?

cheers
Title: Re:sound in briefings?
Post by: mikeb on 21 Aug 2002, 21:43:08
Something to do with

 OnBriefingGear "GEARVOICEOVER"

 and so on for the other parts of the briefing.

However, the official comref isn't clear on exactly what goes in the voiceover part (v1.75 only) be it soundfile.ogg or whatever.  I guess it must be, and just defined in the description.ext.
Title: Re:sound in briefings?
Post by: Messiah on 21 Aug 2002, 21:48:06
thanx.... at least i now know its possible. i checked the com ref and its not very clear - as you said....

has any1 out there got an example?

cheers
Title: Re:sound in briefings?
Post by: Black_Feather on 21 Aug 2002, 22:50:37
I think it goes in the description.ext

onBriefingGear = "soundclass"

but I ain't sure, I got it to work once but never again.  ???
Title: Re:sound in briefings?
Post by: Messiah on 22 Aug 2002, 02:32:54
hmmmm.... loooked at the command referece and saw nothing about it (old com ref)

does any1 out there have a working example? and is it possible for the speech only to occur on a certain page of the briefing or if some1 clicks on a button?
Title: Re:sound in briefings?
Post by: Nagual on 22 Aug 2002, 03:59:07
Define your sound in the description.ext like any other sound
Code: [Select]
class CfgSounds
{
             sounds[] =
   { yoursound };
   
   class yoursound
   
   {
      name = "yoursound";
      sound[] = {"yoursound.ogg", 1, 1.0};
      titles[] = {   };
   };
};

then put the :

OnBriefingGear "yoursound"

in the init.sqs, thats it, you can have one for briefing, notes, gear selection and group info, it will play the first time each page is viewed.

Title: Re:sound in briefings?
Post by: Messiah on 22 Aug 2002, 11:47:09
aaaaah, briliant.

so then to get sound in like notes it would be...

OnNotesGear "yoursound"

???

thanx for the help.
Title: Re:sound in briefings?
Post by: Nagual on 22 Aug 2002, 12:30:37
ya, from comref:

onBriefingGear "sound"
onBriefingGroup "sound"
onBriefingNotes "sound"
onBriefingPlan "sound"

plan is the main briefing. :)
Title: Re:sound in briefings?
Post by: Anmac on 22 Aug 2002, 13:36:43
Yep, the init file is the place.

I've used all four in my new mission.

Works like a charm.

Too easy... I will complain to BIS... ::)
Title: Re:sound in briefings?
Post by: Messiah on 22 Aug 2002, 16:51:16
oooh cheers

thats great stuff - and yes, it does seem a bit too easy  ;D
Title: Re:sound in briefings?
Post by: T.S.C.Plage on 22 Aug 2002, 16:57:20
Yeah, of course very nice and also easily done! ;D

Why have they done things like that in such an easy way and for other more important things you've to study a whole year?

Ok, trying to use this feature in my next mission briefing (overview?)

Greetz
Plage