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 → Is It The Song, or Is My Hearing Aid Messing Up???
Is It The Song, or Is My Hearing Aid Messing Up???
2002-11-10, 3:17 PM #1
Hey gang, I need a cog that I can't find, it might be a bit tricky to make, but please try.

COG Description: This cog plays a sound in (editor enters number, prefereably 6 max) sectors. When the player enters a new selected sector from the cog, the sound does not restart, but instead it plays from where the other sector left off.

I'd really really appreciate it if someone could make this.
Who made you God to say "I'll take your life from you"?
2002-11-10, 7:37 PM #2
Not possible. The only thing I could do would be to play it as a global sound in the condition that your in one of the sectors...

Code:
#11/2002 GBK
Symbols
Message Startup
Message Pulse
Sound Loop
Sector Target0
Sector Target1
Sector Target2
Sector Target3
Sector Target4
Sector Target5

Int I=0     Local
Int L=-1    Local
End
Code
Startup: Setpulse(0.1); Stop;
Pulse:
For(I=0;I<=5;I=I+1) {
If(Getthingsector(JKgetlocalplayer()) == Target0) 
If(L == -1) L = Playsoundlocal(Loop, 1, 0, 1);
Else { If(L != -1) { Stopsound(L, 0.1); L=-1); } }
Stop;
End


That should do the trick. Credit me.

------------------

GBK oNline. Cogs, tuts, and total w00tage.



[This message has been edited by GBK (edited November 10, 2002).]
And when the moment is right, I'm gonna fly a kite.
2002-11-11, 3:11 AM #3
Or you could always just use the sector sound settings in the level.

------------------
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
2002-11-11, 1:22 PM #4
That is, unless the said sectors are contiguous, at which point that method would not work.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2002-11-12, 2:09 AM #5
Gris man, please don't use big words, I don't know what contiguous means, and I'm too lazy to look it up...
Who made you God to say "I'll take your life from you"?
2002-11-12, 4:49 AM #6
All connected and in a row. (continuous).

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-11-12, 6:41 AM #7
Oh, continuous, well they are continuous. But I do remember playing a MP level that had different sectors side by side and they all played a sort of jazz music in them, and when you entered a different sector, the music wouldn't restart, instead it would play on. How bout this, can you make a thing (ghost) project a sound instead of assigning the sound to the sector?
Who made you God to say "I'll take your life from you"?
2002-11-12, 9:24 AM #8
Yes, PlaySoundThing(); Not sure how well it'll work...

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.

[This message has been edited by Descent_pilot (edited November 12, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!