Home   Help Search Login Register  

Author Topic: Multiple songs in Descrip. file???  (Read 984 times)

0 Members and 1 Guest are viewing this topic.

ProP-JunKie

  • Guest
Multiple songs in Descrip. file???
« on: 30 Sep 2002, 05:54:40 »
Can someone please tell me how to script more than one song into the description file. I get one song to work fine, but I'd like to place a few song in there to have some choces....please help  ???
« Last Edit: 30 Sep 2002, 05:55:46 by ProP-JunKie »

Mike

  • Guest
Re:Multiple songs in Descrip. file???
« Reply #1 on: 30 Sep 2002, 20:37:14 »
this should be your discription file:

--------------------------------------------
// Music
class CfgMusic
{
// Contains a list of all the .ogg files (without the .ogg extension) which are
// in all of the CfgMusic class instances below.
tracks[]=
{
song1, song2, song3, song4
};


// Definition for a specific music track
// The class name is referenced in the mission.sqm file. (E.g. track="01demo"
class song1
{
// Name. How is this used?
name = "song1";


// Sound file to use
// First entry is sound file to use (from music directory)
// Second field?
// Third field? Pitch maybe?
sound[] = {\music\song1.ogg, db+0, 1.0};
};

// Definition for a specific music track
// The class name is referenced in the mission.sqm file. (E.g. track="01demo"
class song2
{
// Name. How is this used?
name = "song2";


// Sound file to use
// First entry is sound file to use (from music directory)
// Second field?
// Third field? Pitch maybe?
sound[] = {\music\song2.ogg, db+0, 1.0};
};

// Definition for a specific music track
// The class name is referenced in the mission.sqm file. (E.g. track="01demo"
class song3
{
// Name. How is this used?
name = "song3";


// Sound file to use
// First entry is sound file to use (from music directory)
// Second field?
// Third field? Pitch maybe?
sound[] = {\music\song3.ogg, db+0, 1.0};
};

// Definition for a specific music track
// The class name is referenced in the mission.sqm file. (E.g. track="01demo"
class song4
{
// Name. How is this used?
name = "song4";


// Sound file to use
// First entry is sound file to use (from music directory)
// Second field?
// Third field? Pitch maybe?
sound[] = {\music\song4.ogg, db+0, 1.0};
};
};
---------------------------------------------------

Replace song1, song2, song3 and song 4 with your song file names... Hope u get the idear

ProP-JunKie

  • Guest
Re:Multiple songs in Descrip. file???
« Reply #2 on: 30 Sep 2002, 20:56:02 »
thanks.... it works great