Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
1 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
help pls
CoD2 Scripting
Rainbow HELP....
CoD4 MP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Music playing in sp map how to?
SPi
General Member
Since: Jul 4, 2012
Posts: 203
Last: May 14, 2013
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Wednesday, Aug. 1, 2012 04:48 am
Hi again i was wondering how can i put a music track playing during a mission and how to make it stop and start an other .
:)
Share |
Josh-Xenu
General Member
Since: May 27, 2012
Posts: 54
Last: May 18, 2013
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Saturday, Aug. 4, 2012 07:25 am
MusicPlay( "sound", false );
I call it after some events like
after the introscreen is done.

introscreen()
{
/*--------------------
TYPICAL INTROSCREEN
----------------------*/
level.player setorigin( level.player.origin );
level.player setplayerangles( level.player.angles );
//level.player freezeControls( true );
//level.player allowsprint( false );
level.intro_offset = ( -30 );
lines = [];
lines[ lines.size ] = &"specops_defuse_INTROSCREEN_LINE_1";
lines[ "date" ] = &"specops_defuse_INTROSCREEN_LINE_2";
lines[ lines.size ] = &"specops_defuse_INTROSCREEN_LINE_3";
lines[ lines.size ] = &"specops_defuse_INTROSCREEN_LINE_4";

maps\_introscreen::introscreen_feed_lines( lines );

level.intro_offset = ( 0 );
fade_time = ( 1 );
time = ( 0.4 );
maps\_introscreen::introscreen_generic_fade_in( "white", time, fade_time );
PlayRumbleOnPosition( "artillery_quake", level.player.origin );
MusicPlay( "start_song", false );
//wait 6;
//level.player freezeControls( false );
//level.player allowsprint( true );

}
Or once Objective 2 was done
obj2()
{
obj2 = getent("obj2", "targetname"); //the game finds the trigger
objective_add(2, "active", &"specops_defuse_INVADE",getent("obj2","targetname").origin); //add obj.
objective_current(2); //current objective

obj2 waittill("trigger"); //wait till the trigger is triggered
objective_state(2, "done");
MusicPlay( "invasion", false );
obj2 delete(); //deletes it

wait 3; //fill in however long you like (in seconds)
thread obj3();
}
Remeber;
Have the music in your soundaliases
Basic Soundaliases:
name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage,center percentage,platform,envelop_min,envelop_max,envelop percentage,conversion
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
null,,null.wav,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
#Music,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
start_song,,music/suspenseA.mp3,1,,music,,,,,music,streamed,,,0.9,specops_defuse,,,,,,music,nowetlevel fulldrylevel,,,!PC,,,,
invasion,,music/invasion.mp3,1,,music,,,,,music,streamed,,,0.8,specops_defuse,,,,,,music,nowetlevel fulldrylevel,,,!PC,,,,
credit_music,,music/thewin.mp3,1,,music,,,,,music,streamed,,,master,specops_defuse,,,,,,music,nowetlevel fulldrylevel,,,!PC,,,,
escape,,music/TH_escape.mp3,1,,music,,,,,music,streamed,,,master,specops_defuse,,,,,,music,nowetlevel fulldrylevel,,,!PC,,,,
rappel_liftrope_clipin_plr,,foley/scn_rappel_liftrope_clickin1.wav,0.92,0.97,na,1,1,50,5000,local,,,,,specops_defuse,,,,,,,,,,,,,,
rappel_pushoff_initial_plr,1,foley/scn_rappel_pushoff1.wav,0.92,0.97,na,0.95,1.05,50,5000,local,,,,,specops_defuse,,,,,,,,,,,,,,
rappel_pushoff_initial_plr,2,foley/scn_rappel_pushoff2.wav,0.92,0.97,na,0.95,1.05,50,5000,local,,,,,specops_defuse,,,,,,,,,,,,,,
rappel_pushoff_repeat_plr,1,foley/scn_rappel_pushoff1.wav,0.92,0.97,na,0.95,1.05,50,5000,local,,,,,specops_defuse,,,,,,,,,,,,,,
rappel_pushoff_repeat_plr,2,foley/scn_rappel_pushoff2.wav,0.92,0.97,na,0.95,1.05,50,5000,local,,,,,specops_defuse,,,,,,,,,,,,,,
rappel_clipout_plr,,foley/scn_rappel_clipout1.wav,0.92,0.97,na,1,1,50,5000,local,,,,,specops_defuse,,,,,,,,,,,,,,


edited on Aug. 4, 2012 07:25 am by Josh-Xenu
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 203
Last: May 14, 2013
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Friday, Aug. 17, 2012 12:51 pm
Ok usefull, a bit messy but i need to give just the music start command . could you please give me this line(s).and just for one track (for now)
Share |
Josh-Xenu
General Member
Since: May 27, 2012
Posts: 54
Last: May 18, 2013
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Friday, Aug. 17, 2012 07:23 pm
MusicPlay( "sound", false );
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 203
Last: May 14, 2013
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Saturday, Aug. 18, 2012 12:06 am
thanx ,and how can i play a specified track, is it the "sound" the name of the track, or else?
Share |
Josh-Xenu
General Member
Since: May 27, 2012
Posts: 54
Last: May 18, 2013
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Saturday, Aug. 18, 2012 06:02 pm
Yes replace "sound" with the track (soundalias name)
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 203
Last: May 14, 2013
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Thursday, Aug. 30, 2012 01:24 pm
mate i have no idea about soundalies or whatever please give me a simple way of making one
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP Mapping

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»