Jump to content
Sign in to follow this  
celery

Making custom sounds work

Recommended Posts

I want to play custom sounds and music in my missions but it doesn't work like it did in Armed Assault anymore. How exactly is it done?

Share this post


Link to post
Share on other sites

Well today i tryed to define sound in the "Description.ext" of a mission. It doesn't worked.

Only thing works, is to make a "Config.cpp" define your sound and musik there and load it like a Addon/Mod.

Share this post


Link to post
Share on other sites

Considering we have new say2d and say3d commands, I don't think sounds will (at least forever) be restricted to addons. Probably just new ways of doing things that we don't know about yet.

I guess you already checked existing missions? How about the OFP single mission pack that Wolle came out with?

Share this post


Link to post
Share on other sites
Considering we have new say2d and say3d commands, I don't think sounds will (at least forever) be restricted to addons. Probably just new ways of doing things that we don't know about yet.

I guess you already checked existing missions? How about the OFP single mission pack that Wolle came out with?

I checked the campaign missions and they don't contain custom sounds. W0lle's missions have custom sounds but they don't work.

Share this post


Link to post
Share on other sites

I got the custom sounds and music to work just fine...

Try this with RSCtitles and music..


class Header
{
 gameType = Coop;
 minPlayers = 1;
 maxPlayers = 8;
};



OnLoadMission = "FOG of WAR: Dolores Assault";
OnloadMissionTime = False;


class RscStdText
 {
type=0;
idc=-1;
style=2;
colorBackground[]={0,0,0,0}; 
colorText[]={1,1,1,1};       
font="TahomaB";
size=1;
 };

class RscTitles
{
titles[]={fog1,fog2,fog3,fog4,fog5,fog6,fog7,test1}; 



class fog1
{
  	idd=-1;
  	movingEnable=0;
  	duration=10;
  	fadein=2;
	fadeout=2;
  	name="fog1";
	sizeEx=1;
  	controls[]={"Pic","Text",};

  	class Pic : RscStdText
	{
  	  	style=48; 
  	  	text="image\fog1.JPG";
  	  	x=0.25;
  	  	y=0.2;
  	  	w=0.5;
  	  	h=0.5;
		sizeEx=0.05;
	};
  	class Text : RscStdText 
	{
  	  	text="";
		colorText[]={1,1,1,1};
		font="TahomaB";
		size=0.8;	  	  	
  	  	x=0.095;
  	  	y=0.3;
  	  	w=0.8;
  	  	h=0.05;
		sizeEx=0.03;
	};

};

class fog2
{
  	idd=-1;
  	movingEnable=0;
  	duration=5;
  	fadein=0;
	fadeout=0;
  	name="fog2";
	sizeEx=1;
  	controls[]={"Pic","Text",};

  	class Pic : RscStdText
	{
  	  	style=48; 
  	  	text="image\fog2.JPG";
  	  	x=0.0;
  	  	y=0.0;
  	  	w=1.0;
  	  	h=1.0;
		sizeEx=0.05;
	};
  	class Text : RscStdText 
	{
  	  	text="";
		colorText[]={1,1,1,1};
		font="TahomaB";
		size=0.8;	  	  	
  	  	x=0.095;
  	  	y=0.3;
  	  	w=0.8;
  	  	h=0.05;
		sizeEx=0.03;
	};

};

class fog3
{
  	idd=-1;
  	movingEnable=0;
  	duration=5;
  	fadein=0;
	fadeout=0;
  	name="fog3";
	sizeEx=1;
  	controls[]={"Pic","Text",};

  	class Pic : RscStdText
	{
  	  	style=48; 
  	  	text="image\fog3.JPG";
  	  	x=0.0;
  	  	y=0.0;
  	  	w=1.0;
  	  	h=1.0;
		sizeEx=0.05;
	};
  	class Text : RscStdText 
	{
  	  	text="";
		colorText[]={1,1,1,1};
		font="TahomaB";
		size=0.8;	  	  	
  	  	x=0.095;
  	  	y=0.3;
  	  	w=0.8;
  	  	h=0.05;
		sizeEx=0.03;
	};

};

class fog4
{
  	idd=-1;
  	movingEnable=0;
  	duration=5;
  	fadein=0;
	fadeout=0;
  	name="fog4";
	sizeEx=1;
  	controls[]={"Pic","Text",};

  	class Pic : RscStdText
	{
  	  	style=48; 
  	  	text="image\fog4.JPG";
  	  	x=0.0;
  	  	y=0.0;
  	  	w=1.0;
  	  	h=1.0;
		sizeEx=0.05;
	};
  	class Text : RscStdText 
	{
  	  	text="";
		colorText[]={1,1,1,1};
		font="TahomaB";
		size=0.8;	  	  	
  	  	x=0.095;
  	  	y=0.3;
  	  	w=0.8;
  	  	h=0.05;
		sizeEx=0.03;
	};

};

class fog5
{
  	idd=-1;
  	movingEnable=0;
  	duration=5;
  	fadein=0;
	fadeout=0;
  	name="fog5";
	sizeEx=1;
  	controls[]={"Pic","Text",};

  	class Pic : RscStdText
	{
  	  	style=48; 
  	  	text="image\fog5.JPG";
  	  	x=0.0;
  	  	y=0.0;
  	  	w=1.0;
  	  	h=1.0;
		sizeEx=0.05;
	};
  	class Text : RscStdText 
	{
  	  	text="";
		colorText[]={1,1,1,1};
		font="TahomaB";
		size=0.8;	  	  	
  	  	x=0.095;
  	  	y=0.3;
  	  	w=0.8;
  	  	h=0.05;
		sizeEx=0.03;
	};

};

class fog6
{
  	idd=-1;
  	movingEnable=0;
  	duration=5;
  	fadein=0;
	fadeout=0;
  	name="fog6";
	sizeEx=1;
  	controls[]={"Pic","Text",};

  	class Pic : RscStdText
	{
  	  	style=48; 
  	  	text="image\fog6.JPG";
  	  	x=0.0;
  	  	y=0.0;
  	  	w=1.0;
  	  	h=1.0;
		sizeEx=0.05;
	};
  	class Text : RscStdText 
	{
  	  	text="";
		colorText[]={1,1,1,1};
		font="TahomaB";
		size=0.8;	  	  	
  	  	x=0.095;
  	  	y=0.3;
  	  	w=0.8;
  	  	h=0.05;
		sizeEx=0.03;
	};

};

class fog7
{
  	idd=-1;
  	movingEnable=0;
  	duration=1;
  	fadein=0;
	fadeout=5;
  	name="fog7";
	sizeEx=1;
  	controls[]={"Pic","Text",};

  	class Pic : RscStdText
	{
  	  	style=48; 
  	  	text="image\fog7.JPG";
  	  	x=0.0;
  	  	y=0.0;
  	  	w=1.0;
  	  	h=1.0;
		sizeEx=0.05;
	};
  	class Text : RscStdText 
	{
  	  	text="";
		colorText[]={1,1,1,1};
		font="TahomaB";
		size=0.8;	  	  	
  	  	x=0.095;
  	  	y=0.3;
  	  	w=0.8;
  	  	h=0.05;
		sizeEx=0.03;
	};

};

class test1
{
  	idd=-1;
  	movingEnable=0;
  	duration=10;
  	fadein=0;
	fadeout=0;
  	name="test1";
	sizeEx=1;
  	controls[]={"Pic","Text",};

  	class Pic : RscStdText
	{
  	  	style=48; 
  	  	text="image\test1.PAA";
  	  	x=0.0;
  	  	y=0.0;
  	  	w=1.0;
  	  	h=1.0;
		sizeEx=0.05;
	};
  	class Text : RscStdText 
	{
  	  	text="";
		colorText[]={1,1,1,1};
		font="TahomaB";
		size=0.8;	  	  	
  	  	x=0.095;
  	  	y=0.3;
  	  	w=0.8;
  	  	h=0.05;
		sizeEx=0.03;
	};

};

};


    class intro1
    {
         name = "intro1";
         sound[] = {\music\intro1.ogg, 1.0,1.0};
         titles[] = 
         {
         };
    };

};

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  

×