| Author |
Topic: help looping a sound |
| maximus1964 |
General Member Since: Oct 15, 2011 Posts: 17 Last: Dec 5, 2011 [view latest posts] |
|
|
|
|
| Sevenz |
 |
General Member Since: Apr 24, 2006 Posts: 2390 Last: May 10, 2013 [view latest posts] |
|
|
|
Category: CoD4 MP Mapping Posted: Friday, Dec. 2, 2011 10:18 pm |
 |
name,sequence,file,vol_min,vol_max,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,...
try a value of 1 in your alias' row for this column |
 |
|
|
| maximus1964 |
General Member Since: Oct 15, 2011 Posts: 17 Last: Dec 5, 2011 [view latest posts] |
|
|
|
|
| odilasa1 |
 |
General Member Since: Nov 7, 2010 Posts: 66 Last: Dec 24, 2011 [view latest posts] |
|
|
 |
|
|
| maximus1964 |
General Member Since: Oct 15, 2011 Posts: 17 Last: Dec 5, 2011 [view latest posts] |
|
|
|
|
| Sevenz |
 |
General Member Since: Apr 24, 2006 Posts: 2390 Last: May 10, 2013 [view latest posts] |
|
|
|
Category: CoD4 MP Mapping Posted: Monday, Dec. 5, 2011 01:16 pm |
 |
|
 |
|
|
| sam_fisher3000 |
 |
General Member Since: Apr 18, 2007 Posts: 816 Last: Jul 16, 2016 [view latest posts] |
|
|
 |
|
Category: CoD4 MP Mapping Posted: Monday, Dec. 5, 2011 04:09 pm |
 |
A loop sound should be rather easy to do. Sevenz has the right idea.
In your sound alias, put "loop" with the line of your sound.
Something like
name,sequence,file,vol_min,vol_max,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,...
sound1,,sound1.mp3,10,10,5,5,10,10,radio,,loop,
So in your line for the sound (Forgot the name), put loop. If I remember correctly. When I get home tonight, I can look up my soundalias file and give you a proper example.
The loop should not be a 1. It should be loop or non-loop.
To make it local, change the radio to local or announcement. Can't remember which. I will check my soundalias file and show you. You can also change the volume and distance.
You can also check out voidsource's youtube tutorial on sound. He covers looping, local, annoucement, etc.
Here
For the trigger, just create it and in script, use the playsound function. So it will play the soundalias in the map soundaliases file. And all the characteristics of the sound is in there, like the looping that you wanted.
Hope this helps.
|
|
|
|
| maximus1964 |
General Member Since: Oct 15, 2011 Posts: 17 Last: Dec 5, 2011 [view latest posts] |
|
|
|
|
| sam_fisher3000 |
 |
General Member Since: Apr 18, 2007 Posts: 816 Last: Jul 16, 2016 [view latest posts] |
|
|
 |
|
Category: CoD4 MP Mapping Posted: Tuesday, Dec. 6, 2011 04:30 am |
 |
Example.
Code: name,sequence,file,vol_mod,vol_min,vol_max,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,volumefalloffcurve,startdelay,speak
chargemusic,,heroes7part3/chargemusic.mp3,,1,1,,,360,6000,local,streamed,,looping,master,heli_b2,,,,,,radio
Try editing the channel, loop, type, etc. So change the local, streamed, etc. It's all in there. Be sure to change the file to the stock file. I am sure you know this. As for looping, default is non-looping so don't put anything in there. If you want looping, just put looping.
Hope this helps! Be sure to check out voidsource's tut. In the video, he has the description of each of those characteristics. I forgot what they are called. You get the idea, try it!
edited on Dec. 5, 2011 09:30 pm by sam_fisher3000
EDIT: Did not think the post would be long. Can an admin please fix this? Thanks. If you're around... |
|
|
|
| Larrabee |
 |
General Member Since: Feb 5, 2010 Posts: 113 Last: Aug 23, 2012 [view latest posts] |
|
|
|
Category: CoD4 MP Mapping Posted: Saturday, Dec. 24, 2011 05:52 pm |
 |
Here ya go:
ftp://gangsterdave.dyndns.org/Tutorial_map_with_sound.zip
A small map with a broken pipe in the center. Walk up to it and you'll hear the steam escaping. Walk away and it fades.
Look at all of the files, especially my soundalias. You'll have your sound going no problem. |
 |
|
|
|
|
mp_TempleCall of Duty: Mods: Multiplayer (624.12Kb)
|