Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Sound
Sound
2002-03-08, 10:54 AM #1
I need a simple cog: play a sound from a ghost position, thanks
2002-03-08, 3:14 PM #2
Slim piece of cake.

Code:
#03/2002 GBK
Symbols
Message Startup
Thing Pos
Sound Loop
End
Code
Startup:
Sleep(1);
Playsoundthing(Loop, Pos, 1.0, -1, 100, 1);
Stop;
End


Credit me. [http://www.plauder-smilies.com/spiny.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-08, 8:27 PM #3
Hmm i need one like this too, will this get softer the farther away you walk?

------------------
"Does that compute?

Or do I need to draw you a schematic!?"
2002-03-09, 6:02 AM #4
Yup. Heres a different version that can handle 5 ghosts.

Code:
#03/2002 GBK
Symbols
Message Startup
Thing Pos0
Thing Pos1
Thing Pos2
Thing Pos3
Thing Pos4
Sound Loop
Flex Maxdist=10
End
Code
Startup:
Sleep(1);
For(I=0;I<5;I=I+1) {
Playsoundthing(Loop, Pos0, 1.0, -1, Maxdist*10, 1); }
Stop;
End



'Maxdist' is the approxamate maximim distance, in JKUs.

Credit me. [http://forums.massassi.net/html/biggrin.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-10, 12:25 PM #5
No, the min and max distances for sounds are measured in about 1/10.5 of a JKU if the sound is full volume.

Dash: The minimum distance is the distance at which you can hear the sound at full volume. That maximum distance is the distance at which you can hear the sound at all. Inside the minimum, the sound volume is constant; inside the maximum the sound will fade as you move away from the origin.

------------------
Author of the Jedi Knight DataMaster.
Visit Saber's Domain.

[This message has been edited by SaberMaster (edited March 10, 2002).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-03-10, 1:07 PM #6
...? [http://forums.massassi.net/html/confused.gif]

SM, youll notice in the playsound string, I used 'Maxdist*10'... Hence, Maxdist = approxamate maximum distance in JKUs.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-10, 2:00 PM #7
Ahh, I misunderstood the last line of your post. [http://forums.massassi.net/html/redface.gif]

------------------
Author of the Jedi Knight DataMaster.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!