Ambient Sounds tutorial

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

[KreatoR]
Sergeant Major
Posts: 104
Joined: Wed Oct 23, 2002 12:43 am
Location: MN

Ambient Sounds tutorial

Post 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
=Sgt. Daniel R. O*Neil=
Second Lieutenant
Posts: 172
Joined: Wed Nov 27, 2002 10:15 pm
Contact:

i think i can help

Post 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
"Sometimes to cause the biggest change in the world, is as something as small as saying "Hi" to someone, on a crowded bus"
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post by General Death »

I have always wondered bout that =Sgt. Daniel R. O*Neil=.....thx for the explaination.
Image
[KreatoR]
Sergeant Major
Posts: 104
Joined: Wed Oct 23, 2002 12:43 am
Location: MN

Post 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!
=Sgt. Daniel R. O*Neil=
Second Lieutenant
Posts: 172
Joined: Wed Nov 27, 2002 10:15 pm
Contact:

uh oh

Post 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:
"Sometimes to cause the biggest change in the world, is as something as small as saying "Hi" to someone, on a crowded bus"
[KreatoR]
Sergeant Major
Posts: 104
Joined: Wed Oct 23, 2002 12:43 am
Location: MN

Post 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: :(
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
=Sgt. Daniel R. O*Neil=
Second Lieutenant
Posts: 172
Joined: Wed Nov 27, 2002 10:15 pm
Contact:

ooooohh

Post by =Sgt. Daniel R. O*Neil= »

oooohhh thats even easier, i told you theres probably and easier way hehe THanks jv_map
"Sometimes to cause the biggest change in the world, is as something as small as saying "Hi" to someone, on a crowded bus"
[KreatoR]
Sergeant Major
Posts: 104
Joined: Wed Oct 23, 2002 12:43 am
Location: MN

Post 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
[KreatoR]
Sergeant Major
Posts: 104
Joined: Wed Oct 23, 2002 12:43 am
Location: MN

Post 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
=Sgt. Daniel R. O*Neil=
Second Lieutenant
Posts: 172
Joined: Wed Nov 27, 2002 10:15 pm
Contact:

Post 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
"Sometimes to cause the biggest change in the world, is as something as small as saying "Hi" to someone, on a crowded bus"
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

My fault

Post by jv_map »

:oops:

Should be:
soundtrack "music/m5l2a.mus"
Image
[KreatoR]
Sergeant Major
Posts: 104
Joined: Wed Oct 23, 2002 12:43 am
Location: MN

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

soundtrack "music/m2l3.mus"
forcemusic aux1 aux1

The tutorial describes how to make .mus files, doesn't it?
Image
[KreatoR]
Sergeant Major
Posts: 104
Joined: Wed Oct 23, 2002 12:43 am
Location: MN

Post 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:
Post Reply