OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 08 Jul 2003, 23:19:24

Title: STILL dont know how to do voices in cutscenes
Post by: Gooner861 on 08 Jul 2003, 23:19:24
How can u make cutscenes with actual speaking in it or is silence and subtitles gud enuff?
Title: Re:STILL dont know how to do voices in cutscenes
Post by: Zombie on 09 Jul 2003, 11:12:42
Try this, make a folder, ofp/users/yourname/missions/missionname/sound
put your sounds in the sound folder
in the description.ext put:
// ***********************************************************************
// **** Description file for Operation Flashpoint
// **** Generated by Chris's OFP Script Editor
// **** Create Description Wizard
// ***********************************************************************

class CfgSounds
{
   // List of sounds (.ogg files without the .ogg extension)
   sounds[] = {blah1, blah2};

   // Class definition needed for each sound
   class blah1
   {
      // Name to display in mission editor
      name = "blah1";
      // Sound path, volume, pitch
      sound[] = {\sound\blah1.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class blah2
   {
      // Name to display in mission editor
      name = "blah2";
      // Sound path, volume, pitch
      sound[] = {\sound\blah2.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
};


then the sounds can be played from script:
PlaySound "blah1"
or even called from a trigger in the editor:
trigger-effects-voice-blah1

All of that is really the easy part.  The hard part is making your sounds, (I called them blah1,blah2 etc), you gotta record the voice, then make it an .ogg.  There are plenty tutes on how to make a .wav and .ogg
  The sounds fom the game campaign missions are also usable, but I haven't figured that out yet.
Hope this helps.  If you noticed, I use Chris's OFP Script Editor, it is an essential tool avail in the editors depot.  Good luck and good scripting!
Title: Re:STILL dont know how to do voices in cutscenes
Post by: Gooner861 on 09 Jul 2003, 18:41:46
Dont really understand it that much but thanks alot for the effort u put into writing all that, ill keep looking in the tuts section. Cheers.  :D