Author Topic: ♫ Server Music ♫ || Update! December 4th  (Read 12411 times)

Give me one viable reason to specify this many attributes when creating the AudioEmitter object.

Code: [Select]
new AudioEmitter(SM_Music)
{
position = "-1.25972 -0.189093 0";
rotation = "0 0 1 180";
scale = "1 1 1";
profile = %profile;
useProfileDescription = "0";
description = "AudioLooping2D";
type = "0";
volume = "1";
outsideAmbient = "1";
ReferenceDistance = "4";
maxDistance = "9001";
isLooping = "1";
loopCount = "-1";
minLoopGap = "0";
maxLoopGap = "0";
enableVisualFeedback = "1";
is3D = "0";
coneInsideAngle = "360";
coneOutsideAngle = "360";
coneOutsideVolume = "1";
coneVector = "-8.74228e-008 -1 0";
};

This is what most of my ambience systems use, and it works just as perfectly if not slightly better (since it straight out causes the game to ignore most checks by not specifying any limits):

Code: [Select]
%emitter = new audioEmitter() {
profile = %profile;
volume = %volume;

is3D = false;
isLooping = false;

type = 0;
useProfileDescription = false;
};

Updating soon with music voting. Are there any requests for features?

Updating soon with music voting. Are there any requests for features?
Would it be possible to add volume levels

Would it be possible to add volume levels
Possible, but there isn't really any default GUI to work around. I'll need it to be /musicvolume [level] or something.

If there's a way to change the volume without recreating the object, which i'm almost 100% sure there is, it shouldn't be too hard.

If there's a way to change the volume without recreating the object, which i'm almost 100% sure there is, it shouldn't be too hard.
Bzzzt, wrong. There isn't.
It's Torque we're dealing with here.

Bzzzt, wrong. There isn't.
It's Torque we're dealing with here.
I'd have to remake the object I guess... and the song would always restart, which would sound very weird.

position = "-1.25972 -0.189093 0";
what...

Give me one viable reason to specify this many attributes when creating the AudioEmitter object.

keeping alive
Edit: Thanks!

v3 is almost ready, it's just been sitting in my Add-Ons folder. I'll release it in a minute.

Update - December 4th 2013

  • Added voting, can be toggled in the RTB preferences
  • Users type /vm to start a music vote
  • If vote passes, the music is changed
  • Added Bottom Prints for music change information


The update can be found on RTB.

Subpixel, why are you dodging Port and Marble's questions?

because it doesn't matter even if useless variables are specified
the only main difference between the two is half a kilobyte

Subpixel, why are you dodging Port and Marble's questions?
Quote from: v3 Code
new AudioEmitter(SM_Music)
   {
      position = "0 0 0";
      profile = %profile;
      useProfileDescription = "0";
      description = "AudioLooping2D";
      type = "0";
      volume = "1";
      outsideAmbient = "1";
      ReferenceDistance = "4";
      maxDistance = "9001";
      isLooping = "1";
   };

Now, do people who join while it's playing start hearing the music too?

Now, do people who join while it's playing start hearing the music too?
if they download music?
I don't see why they wouldn't unless he was using ServerPlay2d