Music Help

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
AdmiralVon
Private
Posts: 7
Joined: Thu Jul 09, 2009 4:31 am

Music Help

Post by AdmiralVon »

Hi, Im new with this whole scripting thing and i just recently converted M5l1b (Sniper's Last Stand City Hall) to multiplayer. For now it is just playing the background fire from destroyed vilage. How do i make it play the music from the original SP version of m5l1b. I think its called mus_Snipertown_01b or something.
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

Code: Select all

exec global/ambient.scr m5l1b
instead of

Code: Select all

exec global/ambient.scr mohdm2
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
AdmiralVon
Private
Posts: 7
Joined: Thu Jul 09, 2009 4:31 am

Post by AdmiralVon »

I did this and it still did not work. It still plays the Destroyed Village music.

level waittill prespawn

exec global/shutter.scr
exec global/ambient.scr m5l1b
exec global/weather.scr
exec global/dmprecache.scr
exec global/door_locked.scr::lock
exec global/exploder.scr

Is it supposed to go under something else or is something in this code preventing it?
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

You're confusing two things here - music and ambient sound. You want the level to play music instead of the distant storm and gunfight sounds, right?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
AdmiralVon
Private
Posts: 7
Joined: Thu Jul 09, 2009 4:31 am

Post by AdmiralVon »

Yea i want it to play the music that it plays in the single player version
AdmiralVon
Private
Posts: 7
Joined: Thu Jul 09, 2009 4:31 am

Post by AdmiralVon »

So basically how do i make the map play mus_Snipertown_01b.mp3 or mus_Snipertown_01a since their practically the same thing.
sdlall
Sergeant Major
Posts: 110
Joined: Tue Mar 24, 2009 11:41 pm

Post by sdlall »

Check how Phil did the music for Spectators probably will give you ideas on how to do it.

http://www.modtheater.com/forum/showthr ... ght=SMUSIC
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

cant u just do it like in that map?


Code: Select all

$player stufftext "tmstart sound/music/mus_SniperTown_01b.mp3"

User avatar
dude77
Corporal
Posts: 49
Joined: Tue Sep 01, 2009 8:37 pm

Post by dude77 »

do you know the music script for any of the other single player missions?
SA007
Lance Corporal
Posts: 24
Joined: Thu Sep 03, 2009 10:17 pm

Post by SA007 »

All that stuff can be found in the original .scr files of the levels.
User avatar
dude77
Corporal
Posts: 49
Joined: Tue Sep 01, 2009 8:37 pm

Post by dude77 »

okay, where do i find the original .scr files?
SA007
Lance Corporal
Posts: 24
Joined: Thu Sep 03, 2009 10:17 pm

Post by SA007 »

Pak5.pk3 is the pak that contains all the maps.

Just open it with and random zip program or pak explorer.
User avatar
dude77
Corporal
Posts: 49
Joined: Tue Sep 01, 2009 8:37 pm

Post by dude77 »

cheers mate
Post Reply