OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Pr0ph3t on 09 Mar 2005, 23:34:56

Title: Description.ext quickie REALLY quick question! plz
Post by: Pr0ph3t on 09 Mar 2005, 23:34:56
Okay I have two sound samples I want to include: shooting.ogg and scream.ogg and they're under the \sound directory.

what do I need to add to this description.ext file I've been trying stuff but it won't show up.

debriefing = 0

class CfgMusic
{
tracks[]=
{
navras
};

class navras
{
name = "navras";
sound[] = {\music\navras.ogg, db+0, 1.0};
};

class CfgSounds
{
name="scream";
sound[] = {\sound\scream.ogg, db+5, 1.0};
}

};

what am I doing wrong?
Title: Re:Description.ext quickie REALLY quick question! plz
Post by: Silencer on 09 Mar 2005, 23:38:48
One thing I notice:

- You don't need a CfgMusic class if you only have a "Sound" map.
Title: Re:Description.ext quickie REALLY quick question! plz
Post by: Pr0ph3t on 09 Mar 2005, 23:40:10
navras is music.. scream is sound effect
Title: Re:Description.ext quickie REALLY quick question! plz
Post by: Planck on 09 Mar 2005, 23:41:16
class CfgSounds
{
class Scream
{
name="scream";
sound[] = {"\sound\scream.ogg", db+5, 1.0};
titles[]={};
}
}

That should do it.....I hope


Planck
Title: Re:Description.ext quickie REALLY quick question! plz
Post by: Flauta on 09 Mar 2005, 23:47:23
mh.. try this:


***EDITED***
Code: [Select]

debriefing = 0

class CfgMusic
{
       tracks[]={navras};

       class navras
       {
                            name = "navras";
                            sound[] = {\music\navras.ogg, db+0, 1.0};
       };
};

class CfgSounds
{
           sounds[]={scream};

           class scream
           {                            
            name="scream";
            sound[] = {\sound\scream.ogg, db+5, 1.0};
            titles[]={};
           };

};


tellme if it works!

P.D: Thanks Pr0ph3t
Title: Re:Description.ext quickie REALLY quick question! plz
Post by: Pr0ph3t on 09 Mar 2005, 23:52:39
neither worked.. Hang on I'm gonna trying mixing together
Title: Re:Description.ext quickie REALLY quick question! plz
Post by: Pr0ph3t on 10 Mar 2005, 00:02:35
Good job fellas, with planck's title= and flauta's snippet it worked.

thanks!
Title: Re:Description.ext quickie REALLY quick question! plz
Post by: Pr0ph3t on 15 Mar 2005, 04:42:44
For anyone stuck in my shoes, here's what the description.ext file looks like for multiple sounds and songs

debriefing = 0

class CfgMusic
{
      tracks[]={whorse,mattek};

      class whorse
      {
                            name = "whorse";
                            sound[] = {\music\whorse.ogg, db+0, 1.0};
      };

      class  mattek
      {
                            name = "mattek";
                            sound[] = {\music\mattek.ogg, db+0, 1.0};
      };

};

class CfgSounds
{
          sounds[]={scream,shooting};

          class scream
          {                            
            name="scream";
            sound[] = {\sound\scream.ogg, db+5, 1.0};
            titles[]={};  
          };

          class shooting
          {                            
            name="shooting";
            sound[] = {\sound\shooting.ogg, db+5, 1.0};
            titles[]={};  
          };
};