• 0
Cantkillphantom

help with music

Question

so i want to add intro music to my server and have music playing when you enter the trade zone but i have no clue where to start an the tutorials are not clear any help would be great thanks in advance  

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Here is what I did

create a CfgMusic.hpp file

add to that file

Spoiler

class CfgMusic
{
	tracks[]={};

////////////////////////////////////////////////////////
// IntroSongs //////////////////////////////////////////
////////////////////////////////////////////////////////
	class intro
	{
		name = "intro";
		sound[] = {"music\introSong.ogg", db+10,1}; 
	};
	
	class intro1
	{
		name = "intro1";
		sound[] = {"music\introSong1.ogg", db+10,1}; 
	};
	
	class intro2
	{
		name = "intro2";
		sound[] = {"music\introSong2.ogg", db+10,1}; 
	};
	
	class intro3
	{
		name = "intro3";
		sound[] = {"music\introSong3.ogg", db+10,1}; 
	};
	
	class intro4
	{
		name = "intro4";
		sound[] = {"music\introSong4.ogg", db+10,1}; 
	};
		
	
////////////////////////////////////////////////////////
// actionSong //////////////////////////////////////////
////////////////////////////////////////////////////////	
	class action
	{
		name = "action";
		sound[] = {"music\actionSong.ogg", db+10,1}; 
	};
	
	class action1
	{
		name = "action1";
		sound[] = {"music\actionSong1.ogg", db+10,1}; 
	};
	
	class action2
	{
		name = "action2";
		sound[] = {"music\actionSong2.ogg", db+10,1}; 
	};
	
	class action3
	{
		name = "action3";
		sound[] = {"music\actionSong3.ogg", db+10,1}; 
	};	
	
	class action4
	{
		name = "action4";
		sound[] = {"music\actionSong4.ogg", db+10,1}; 
	};
	

////////////////////////////////////////////////////////
// Ambients ////////////////////////////////////////////
////////////////////////////////////////////////////////	
	class suspense0 
	{
		name = "suspense0";
		sound[] = {"music\suspense0.ogg", db+10,1};
		
	};

	class suspense1 
	{
		name = "suspense1";
		sound[] = {"music\suspense1.ogg", db+10,1};
		
	};

	class suspense2 
	{
		name = "suspense2";
		sound[] = {"music\suspense2.ogg", db+10,1};
		
	};

	class suspense3 
	{
		name = "suspense3";
		sound[] = {"music\suspense3.ogg", db+10,1};
		
	};

	class suspense4 
	{
		name = "suspense4";
		sound[] = {"music\suspense4.ogg", db+10,1};
		
	};

	class suspense5 
	{
		name = "suspense5";
		sound[] = {"music\suspense5.ogg", db+10,1};
		
	};

	class suspense6 
	{
		name = "suspense6";
		sound[] = {"music\suspense6.ogg", db+10,1};
		
	};

	class suspense7 
	{
		name = "suspense7";
		sound[] = {"music\suspense7.ogg", db+10,1};
		
	};

	class suspense8 
	{
		name = "suspense8";
		sound[] = {"music\suspense8.ogg", db+10,1};
		
	};

	class suspense9 
	{
		name = "suspense9";
		sound[] = {"music\suspense9.ogg", db+10,1};
		
	};

	class suspense10 {
		name = "suspense10";
		sound[] = {"music\suspense10.ogg", db+10,1};
		
	};
	
};

 

create a 2nd file

CfgMusicList.hpp

Spoiler

Ambient[] = {"suspense0","suspense1","suspense2","suspense3"};
Combat[] = {"ExileTrack06","ExileTrack07","action","action1","action2","action3","action4"};
Intro[] = {"intro","intro1","intro2","intro3","intro4"};

 

edit your config.cpp file, find

Spoiler

class CfgExileMusic
{
	Ambient[] = {"ExileTrack03","ExileTrack04"};
	Combat[] = {"ExileTrack06","ExileTrack07"};
	Intro[] = {"ExileTrack02","ExileTrack03"};
};

 

and change to

Spoiler

class CfgExileMusic
{
	#include "CfgMusicList.hpp"
};

 

make a folder in your Exile.Map folder called music

add your ogg song files

make any changes to the music file names that you need to, to suite your needs.

Take note that intro songs only trigger when you first spawn. ambient songs play while your on the ground playing, and combat is when you are firing on a player or AI.

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.