Jump to content
Sign in to follow this  
Gunnykat

How Can I add Custom Song on Domination 2 Intro

Recommended Posts

I want to add a custom song to Domination 2 fly by. I have the .ogg file already just need to know what I sould put in the line. I tried placing this script with no luck.

#ifndef __OA__
playMusic "army.ogg";
#else
playMusic "army.ogg";
#endif

I put the .ogg song army in a folder called music.

Edited by Gunnykat

Share this post


Link to post
Share on other sites

Read the link mousetrap posted. You have to edit description.ext as well to define the song.

Share this post


Link to post
Share on other sites
I wan to add a custom song to Domination 2 fly by. I have the .ogg file already just need to know what I sould put in the line. I tried placeing this script with no luck.

#ifndef __OA__
playMusic "army.ogg";
#else
playMusic "army.ogg";
#endif

I put the .ogg song army in a folder called music.

first thing - your if statement looks wrong:

shouldnt it be

#if ndef __OA__ :

i dont remember the exact way of doing it in sqs, but i remember you need to have a : at the end of the condition.

also, if the song is in a folder called music, you need to add the address to it as well.

"music\army.ogg"

except this should be done inside the description.ext, where you define the music using cfgMusic

Share this post


Link to post
Share on other sites

Ok here is what i did to get it to all work.

Desciption.ext

class RscTitles {
#include "x_dlg\IntroText.hpp"
#ifdef __MANDO__
#include "mando_missiles\mando_missiletitles.h"
#endif
};

class CfgMusic {
      tracks[]={army};

      class army {
      name="army";
      sound[]={"sound\army.ogg", db+10, 1.0};
     };
};

class CfgIdentities {
class DHQ_EN1 {
	name = "Winters, HQ";
	face = "Default";
	glasses = "None";
	speaker = "Male03EN";
	pitch = 1.0;
};
class DHQ_EN2: DHQ_EN1 {
	name = "Meyers, HQ";
};
class DHQ_RU1: DHQ_EN1 {
	name = "Rustov, HQ";
	speaker = "Male03RU";
};
class DHQ_RU2: DHQ_EN1 {
	name = "Krustshov, HQ";
	speaker = "Male03RU";

      };

      }; 

I placed my music cfg between the two other script lines. I would get an error then crash to the desk top if I place it at the end. So if you place it like this you are all good.

x_intro.sqf located in the x_client folder

#ifndef __OA__
playMusic "army";
#else
playMusic "army";
#endif

I changed the name of his song to mine. And then it all worked. Thanks for the help all my server is shaping up.:yay:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×