Page 1 of 2

Ambient Sounds tutorial

Posted: Thu Nov 28, 2002 8:06 am
by [KreatoR]
I read the ambient sounds tutorial and got myself all confused :(

OK, all I want is to have a constant sound of gunfire, explosions, etc. in the distance, and I want it heard no matter where you are in the map... its all exterior too. Can someone tell me what parts of the tutorial to read, and what to ignore, so I dont get confused :lol:

thnx

i think i can help

Posted: Thu Nov 28, 2002 9:21 am
by =Sgt. Daniel R. O*Neil=
I think i can, I think i can, I think i can :shock: ...OH hi !!! ok do you know how to make an scr file? ah who cares let me try to explain this the best way i can. This is the easiest way that ive figured this out.

Ok open notepad first, then type this into it

exec global/ambient.scr

Ok what youve just typed is a script to play a background sound that already exists in your mohaa game. But now you gotta pick which background you want there is lots to choose from. Here is a small list:

m1l2a
m1l2b
m1l3a
m1l3b
m1l3c
m2l1
m2l2a
m2l2b
m2l2c
m2l3
m3l2
m4l2
m5l1b
m6l1a
m6l1c

And the list goes on. Each of these are a background that is played in the game. Each one is different. You get these out of your Ambience sound file thats in one of your pk3 files(i forget which one :roll: ) sorry lol. So what you do is in your notepad for example, i would put:

exec global/ambient.scr m6l3c

Ok now what you do is save it. Save it as "yourmapname".scr Like mine for example on the map im working on right now would look like this if i saved it: hotel.scr

Ok now what you do is when you make your pk3 file make sure you put this .scr file in the same folder as your maps. Save the pk3 file put it in main and fire her up. That should do the trick. What i did for each of those sounds i post up there is i tried each one out in the pk3 file listened to it in the game, and thats when i decide whether or not to keep it. Some people may have an easier way to do this. But for me this really is the easiest.....like i said...atleast for me. Goodluck :D :D :P :P :D :D

Posted: Thu Nov 28, 2002 2:10 pm
by General Death
I have always wondered bout that =Sgt. Daniel R. O*Neil=.....thx for the explaination.

Posted: Thu Nov 28, 2002 9:56 pm
by [KreatoR]
maybe its my noobiness but that seemed a little vague to me... :(

the sound I want to play isnt in a pak file, its in: "C:\Program Files\MOHAA\main\sound\amb_stereo\Amb_M2_SnowBattleExt.mp3"

and I want it heard at the same volume no matter where you are in the map, its all exterior.

If no one wants to explain it, you can just copy & paste what I need to know from the tutorial... only what I need to know to play the sound how I want it... the rest just confused the hell outta me :oops:

Dont get me wrong O'Niel, I appreciate your help very mcuh, you just gotta speak on a more noobier level :)

thnx guys!

uh oh

Posted: Fri Nov 29, 2002 12:05 am
by =Sgt. Daniel R. O*Neil=
:roll: :roll: Ok for what you want i think the best explanation is jv_map's tutorial on it. Where he explains to put trigger multiples all over your map. You said all yours was exterior so you would just label it just how jv_map has it in his tutorial. EEeeek !!! Im dont think i could explain it better than jv_map. I just showed you my little way up there because you said you wanted constant battle and gun fire sounds, and i know one of those i posted does that for a background sound, because ive tested them for my maps. The way that i have it explained up there, you dont have to add multiple triggers. It will be the same volume anywhere in the map. I have a hard time understanding things myself. Im a long way from getting it all. So much is still confusing so for me to explain it better for you, i would need to know where youre having a problem understanding and ill see if i can get a better explanation for ya :wink:

Posted: Fri Nov 29, 2002 6:53 am
by [KreatoR]
OMG :shock:!!!!
I just confused myself even more... I went and tried to figure it out my self and tried some stuff I read in the tutorial and just got more confused..... HELP!!! :shock: :( :shock: :(

Posted: Fri Nov 29, 2002 7:00 am
by jv_map
For constant background sound, you can just put:
soundtrack <musfile>
in your script. The .mus files are in pak0.pk3 in the music folder but you can also make one yourself. When you use the 'soundtrack' command, the 'normal' music will play.

For example:
soundtrack m5l2a

Will play some ambient battle sounds.

ooooohh

Posted: Fri Nov 29, 2002 7:59 am
by =Sgt. Daniel R. O*Neil=
oooohhh thats even easier, i told you theres probably and easier way hehe THanks jv_map

Posted: Sat Nov 30, 2002 4:50 am
by [KreatoR]
jv_map wrote:For constant background sound, you can just put:
soundtrack <musfile>
in your script. The .mus files are in pak0.pk3 in the music folder but you can also make one yourself. When you use the 'soundtrack' command, the 'normal' music will play.

For example:
soundtrack m5l2a

Will play some ambient battle sounds.
Is there any way I could have it play this sound?: C:\Program Files\MOHAA\main\sound\amb_stereo\Amb_M2_SnowBattleExt.mp3
Would I have to make a .mus file for that? and If so, how? (if you know a link to a tutorial that will be cool too)

Thnx

Posted: Sat Nov 30, 2002 5:08 am
by [KreatoR]
OK, I tried it, it didnt work... maybe I put it in the wrong sopt or something... ill post my script:

// Below Zero
// BY: [KreatoR]
main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Below Zero ~1~"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" "By [KreatoR]"
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" "I aM tHe KrEaToR"
setcvar "g_obj_axistext3" "yOu ArE tHe KrEaTeD"

setcvar "g_scoreboardpic" "none"

level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr
<--- anyone know what this means? :lol:

level.script = maps/dm/belowzero.scr

$world farplane_color "0.3 0.3 0.8"
level.fogplane = 5100
$world farplane level.fogplane

soundtrack m5l2a
<---right here... didnt work

level waittill spawn

end

Posted: Sat Nov 30, 2002 8:13 am
by =Sgt. Daniel R. O*Neil=
Try putting this where you said it didnt work:

exec global/ambient.scr m5l2a

Im not sure if you can put it right where you have it. What i did was i put it at the very top of my script and worked great for me. Goodluck !! :D :wink: :D

My fault

Posted: Sat Nov 30, 2002 8:23 am
by jv_map
:oops:

Should be:
soundtrack "music/m5l2a.mus"

Posted: Sun Dec 01, 2002 5:20 am
by [KreatoR]
Ya! it worked! but..... thats not really the sound im looking for.

Is there any way I could have it play this sound?: C:\Program Files\MOHAA\main\sound\amb_stereo\Amb_M2_SnowBattleExt.mp3

Would I have to make a .mus file for that? and If so, how? (if you know a link to a tutorial that will be cool too)

Thnx

Posted: Sun Dec 01, 2002 8:13 am
by jv_map
soundtrack "music/m2l3.mus"
forcemusic aux1 aux1

The tutorial describes how to make .mus files, doesn't it?

Posted: Sun Dec 01, 2002 9:41 am
by [KreatoR]
OMG! hey I figured it out! :o :lol: :o

I just looked at how another map did it... they just made a music file and executed it through the script file... that simple :lol:

But at first it didnt work when I tried this... then I put it into a pak3 and it worked :roll:

Now that I have this figured out I started messin with the sounds... I put "Taproot - Again and Again" to play as the soundtrack...hehe :D

Im tryin to think of some real loud songs that pump you up....hmm :?
AH! "Deftones - Headup" or "Drowning Pool - Bodies" ...anything by slipknot ....hehe this is gonna be sweet :lol: