Results 1 to 3 of 3
  1. #1
    soccerguy's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    171
    Reputation
    10
    Thanks
    73

    Custom Sounds for everyone to hear!

    I think i have stumbled across something cool just like in some cod4 zombies where the was different music in the background. I pulled out a music_and_dialog.gsc from ffviewer and found that mp_suspense_01 through till 05 was the main game music. I searched for hours and found no mp_suspense then i just looked for suspense and i found these 6 codes.
    Code:
    hz_mp_suspense_state_basement_LR
    hz_mp_suspense_gulag_liftoff_LR
    hz_mp_suspense_gulag_intro_LR
    hz_mp_suspense_contg_stlth_short_LR
    hz_mp_suspense_clfhang_sat_bust_LR
    hz_mp_suspense_arcadia_panic_LR
    I quickly learned that i had to have these as my custom sounds first so i did and tested it was fine and worked for me. But i am stumped on adding it to the music_and_dialog.gsc. Here is my code so far.
    under init is:
    Code:
    	
    	game["music"]["suspense"] = [];
    	game["music"]["suspense"][game["music"]["suspense"].size] = "hz_mp_suspense_state_basement_LR";
    	game["music"]["suspense"][game["music"]["suspense"].size] = "hz_mp_suspense_gulag_liftoff_LR";
    	game["music"]["suspense"][game["music"]["suspense"].size] = "hz_mp_suspense_gulag_intro_LR";
    	game["music"]["suspense"][game["music"]["suspense"].size] = "hz_mp_suspense_contg_stlth_short_LR";
    	game["music"]["suspense"][game["music"]["suspense"].size] = "hz_mp_suspense_clfhang_sat_bust_LR";
    	game["music"]["suspense"][game["music"]["suspense"].size] = "hz_mp_suspense_arcadia_panic_LR";
    and under music controller:
    Code:
    musicController()
    {
    	level endon ( "game_ended" );
    	
    	if ( !level.hardcoreMode )
    		thread suspenseMusic();
    	
    	level waittill ( "match_ending_soon", reason );
    	assert( isDefined( reason ) );
    
    	if ( getWatchedDvar( "roundlimit" ) == 1 || game["roundsPlayed"] == (getWatchedDvar( "roundlimit" ) - 1) )
    	{	
    		if ( !level.splitScreen )
    		{
    			if ( reason == "time" )
    			{
    				if ( level.teamBased )
    				{
    					if ( game["teamScores"]["allies"] > game["teamScores"]["axis"] )
    					{
    						if ( !level.hardcoreMode )
    						{
    							playSoundOnPlayers( game["music"]["winning_allies"], "allies" );
    							playSoundOnPlayers( game["music"]["losing_axis"], "axis" );
    						}
    				
    						leaderDialog( "winning_time", "allies" );
    						leaderDialog( "losing_time", "axis" );
    					}
    					else if ( game["teamScores"]["axis"] > game["teamScores"]["allies"] )
    					{
    						if ( !level.hardcoreMode )
    						{
    							playSoundOnPlayers( game["music"]["winning_axis"], "axis" );
    							playSoundOnPlayers( game["music"]["losing_allies"], "allies" );
    						}
    							
    						leaderDialog( "winning_time", "axis" );
    						leaderDialog( "losing_time", "allies" );
    					}
    				}
    				else
    				{
    					if ( !level.hardcoreMode )
    						playSoundOnPlayers( game["music"]["losing_time"] );
    	
    					leaderDialog( "timesup" );
    				}
    			}	
    			else if ( reason == "score" )
    			{
    				if ( level.teamBased )
    				{
    					if ( game["teamScores"]["allies"] > game["teamScores"]["axis"] )
    					{
    						if ( !level.hardcoreMode )
    						{
    							playSoundOnPlayers( game["music"]["winning_allies"], "allies" );
    							playSoundOnPlayers( game["music"]["losing_axis"], "axis" );
    						}
    				
    						leaderDialog( "winning_score", "allies" );
    						leaderDialog( "losing_score", "axis" );
    					}
    					else if ( game["teamScores"]["axis"] > game["teamScores"]["allies"] )
    					{
    						if ( !level.hardcoreMode )
    						{
    							playSoundOnPlayers( game["music"]["winning_axis"], "axis" );
    							playSoundOnPlayers( game["music"]["losing_allies"], "allies" );
    						}
    							
    						leaderDialog( "winning_score", "axis" );
    						leaderDialog( "losing_score", "allies" );
    					}
    				}
    				else
    				{
    					winningPlayer = maps\mp\gametypes\_gamescore::getHighestScoringPlayer();
    					losingPlayers = maps\mp\gametypes\_gamescore::getLosingPlayers();
    					excludeList[0] = winningPlayer;
    
    					if ( !level.hardcoreMode )
    					{
    						winningPlayer playLocalSound( game["music"]["winning_" + winningPlayer.pers["team"] ] );
    						
    						foreach ( otherPlayer in level.players )
    						{
    							if ( otherPlayer == winningPlayer )
    								continue;
    								
    							otherPlayer playLocalSound( game["music"]["losing_" + otherPlayer.pers["team"] ] );							
    						}
    					}
    	
    					winningPlayer leaderDialogOnPlayer( "winning_score" );
    					leaderDialogOnPlayers( "losing_score", losingPlayers );
    				}
    			}
    			
    			level waittill ( "match_ending_very_soon" );
    			leaderDialog( "timesup" );
    		}
    	}
    	else
    	{
    		if ( !level.hardcoreMode )
    			playSoundOnPlayers( game["music"]["losing_allies"] );
    
    		leaderDialog( "timesup" );
    	}
    }
    I couldnt figure out if those first few lines meant it had to be on hardcore but i tested on regular and hardcore it didnt work.

    and i also saw a thread with this:
    Code:
    suspenseMusic()
    {
    	level endon ( "game_ended" );
    	level endon ( "match_ending_soon" );
    	
    	numTracks = game["music"]["suspense"].size;
    	for ( ;; )
    	{
    		wait ( randomFloatRange( 60, 120 ) );
    		
    		playSoundOnPlayers( game["music"]["suspense"][randomInt(numTracks)] ); 
    	}
    }
    Please help if anyone has ideas or an answer dont hold back or find mp_suspense it would be greatly appreciated.
    My Favorite Conversation Word For Word
    "Hey Geek Your So Retarded And Uncool!"
    "You May Think So Now But When I'm Making A Million Dollars A Year Doing This We'll See Who Actually Is Retarded"

    GO GEEKS!

  2. #2
    You do not feel comfortable sailer or at home
    MPGH Member
    sn1p3ro12's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    910
    Reputation
    10
    Thanks
    158
    man tutorial for where to get post this codes
     


    DONT FORGET TO THANK ME

  3. #3
    soccerguy's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    171
    Reputation
    10
    Thanks
    73
    What?? They dont work im asking for help thats why it says help. -_-
    My Favorite Conversation Word For Word
    "Hey Geek Your So Retarded And Uncool!"
    "You May Think So Now But When I'm Making A Million Dollars A Year Doing This We'll See Who Actually Is Retarded"

    GO GEEKS!

Similar Threads

  1. PEiD in conjuction with Packscape for custom sound
    By willieG in forum Call of Duty Modern Warfare 2 Tutorials
    Replies: 28
    Last Post: 08-21-2010, 11:54 PM
  2. [SOLVED] custom music for spawn sounds and more.
    By cayongrayoo in forum Call of Duty Modern Warfare 2 Help
    Replies: 8
    Last Post: 07-29-2010, 11:00 AM
  3. trading Custom Sigs For Warrock Accs
    By Teh Nubasarus in forum Trade Accounts/Keys/Items
    Replies: 0
    Last Post: 03-22-2008, 08:02 PM
  4. Suggestion For Everyone to Decide On...
    By gbitz in forum General
    Replies: 15
    Last Post: 03-09-2008, 09:30 AM
  5. UCE for everyone!!!
    By konni in forum WarRock - International Hacks
    Replies: 4
    Last Post: 01-18-2008, 07:33 PM