Sound question

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Faceball
Colour Sergeant
Posts: 83
Joined: Mon Dec 09, 2002 9:32 am

Sound question

Post by Faceball »

I read the tut, and no kidding that it hard stuff to follow. I'm not wanting to place specific sounds.

Can you do something simple that makes sound over the entire map. I love the sounds like on the Hunt.....i believe that's the map with the sounds that sound like distant gun fire......
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

If you mean "The Hunt for the King Tiger - Destroyed Village" that is mus_TigerTank_01a.mp3. Add this below level waittill spawn.

Code: Select all

level waittill spawn

wait 2
$player stufftext "tmstartloop sound/music/mus_TigerTank_01a.mp3"
Faceball
Colour Sergeant
Posts: 83
Joined: Mon Dec 09, 2002 9:32 am

Post by Faceball »

That's it thank you very much....

i'm guessing i need to make a sound folder and place it in the so it recognizes it to play.....


:D
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

It should already be there.
Faceball
Colour Sergeant
Posts: 83
Joined: Mon Dec 09, 2002 9:32 am

Post by Faceball »

Oh good thing to know. Make it easier.

So is the only time you need to include a sound folder in you PK.3 when you make your own sound?

Thx again
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Mohaa can't stream sounds from a pk3 file :cry:
Image
Shifty
Map Reviewer
Posts: 717
Joined: Sun Dec 15, 2002 11:53 pm
Location: UK
Contact:

Post by Shifty »

Man that would be so great if it could :(
.MDT Webmaster, Mapper, Moddeler & Concept Artist
.Map Reviewer
Image
http://www.shiftys-bunker.tk Under Construction
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Well it would be impossible for a compressed sound file to be streamed. I suppose they could of implemented a system where sound files are extracted to a temp folder then deleted on exiting the game. Similar sort of thing to how winzip works.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It's possible to do so for regular sound files (e.g. gun sounds), but you can't use a tmstart command for these :(.
Image
Faceball
Colour Sergeant
Posts: 83
Joined: Mon Dec 09, 2002 9:32 am

Post by Faceball »

Hmmm, i think i'm a bit more confused.....

So if i wanna have the sound on my map as like on Destroyed Village all i need to do is add the line stated above by Innkeeper in my script and all is good to go?
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Yes, maybe also add ambient sounds.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Post Reply