Author Topic: command swtich  (Read 2564 times)

I'm pretty sure the above would work, if it was a default installed
"CameraParticleA.textureName= ("./base/data/particle/anyname.png");
remove that quotation mark at the beginning
« Last Edit: April 09, 2012, 08:55:07 PM by swollow »

I'm pretty sure the above would work, if it was a default installedremove that quotation mark at the beginning
what real their default admin orb was? and I have add "CameraParticleA, not CameraParticleA without "??? tell me this is correct?

EDIT: I forget ask, how I add type /help with /c2 text here?
« Last Edit: April 09, 2012, 08:59:50 PM by Cubelands »

CameraParticleA.textureName=  "./base/data/particle/anyname.png";


function serverCmdSetOrb(%client, %type)
{
    if(!%client.isAdmin)
      return;
   switch$(%type)
    {
         case "bubble":
              CameraParticleA.textureName=  "./base/data/particle/anyname.png";

         case "chunk":
              CameraParticleA.textureName=  "./base/data/particle/anyname.png";
         //etc
    }
}



Help Command
change AOSHelp to what you want the server command to be named

function ServerCmdAOSHelp(%Client)
{
MessageClient(%Client,'',"\c2THIS IS HELP STUFFS");
}

CameraParticleA.textureName=  "./base/data/particle/anyname.png";


function serverCmdSetOrb(%client, %type)
{
    if(!%client.isAdmin)
      return;
   switch$(%type)
    {
         case "bubble":
              CameraParticleA.textureName=  "./base/data/particle/anyname.png";

         case "chunk":
              CameraParticleA.textureName=  "./base/data/particle/anyname.png";
         //etc
    }
}


Yes, I did wrote that. It not work I see it as default admin orb. And I did wrote this one aslo not work either.

Code: [Select]
function serverCmdSetOrb(%client, %type)
{
    if(!%client.isAdmin)
      return;
   switch$(%type)
    {
         case "bubble":
              datablock ParticleData(CameraParticleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 600;
lifetimeVarianceMS   = 0;
textureName          = "base/data/particles/bubble";
spinSpeed = 0.0;
spinRandomMin = 0.0;
spinRandomMax = 0.0;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(CameraEmitterA)
{
   ejectionPeriodMS = 6.5;
   periodVarianceMS = 0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CameraParticleA";
  
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleB)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 1500;
lifetimeVarianceMS   = 10;
textureName          = "base/data/particles/bubble";
spinSpeed = 0.0;
spinRandomMin = 0.5;
spinRandomMax = 1.0;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 0.25;
sizes[1]      = 0.10;
sizes[2]      = 0.15;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterB)
{
   ejectionPeriodMS = 10.5;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterB";
  
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.5;
lifetimeMS           = 200;
lifetimeVarianceMS   = 100;
textureName          = "base/data/particles/bubble";
spinSpeed = 0.5;
spinRandomMin = 0.1;
spinRandomMax = 0.5;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterA)
{
   ejectionPeriodMS = 10.0;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.5;
   velocityVariance = 10.0;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterA";
  
   useEmitterColors = 0;
};


         case "chunk":
              datablock ParticleData(CameraParticleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 600;
lifetimeVarianceMS   = 0;
textureName          = "base/data/particles/chunk";
spinSpeed = 0.0;
spinRandomMin = 0.0;
spinRandomMax = 0.0;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(CameraEmitterA)
{
   ejectionPeriodMS = 6.5;
   periodVarianceMS = 0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CameraParticleA";
  
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleB)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 1500;
lifetimeVarianceMS   = 10;
textureName          = "base/data/particles/chunk";
spinSpeed = 0.0;
spinRandomMin = 0.5;
spinRandomMax = 1.0;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 0.25;
sizes[1]      = 0.10;
sizes[2]      = 0.15;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterB)
{
   ejectionPeriodMS = 10.5;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterB";
  
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.5;
lifetimeMS           = 200;
lifetimeVarianceMS   = 100;
textureName          = "base/data/particles/chunk";
spinSpeed = 0.5;
spinRandomMin = 0.1;
spinRandomMax = 0.5;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterA)
{
   ejectionPeriodMS = 10.0;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.5;
   velocityVariance = 10.0;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterA";
  
   useEmitterColors = 0;
};


Anyone can help explain to me?

Anyone can help explain to me?

Can you clarify what is not working?

Can you clarify what is not working?
It same result normal admin orb, It not even change other the orb.

I think you would be better off switching the datablock of the particle rather than the image used.

#1 you could then use any paticle emitter datablock you have loaded
#2 you wouldn't mess up that particular datablock
#3 much easier to code
#4 particles retain correct color

I'm not sure exactly what the name of the camera object is, but all you would have to do is unmount the current emitter then mount your emitter.  Do this everytime you change your emitter.

I think you would be better off switching the datablock of the particle rather than the image used.

#1 you could then use any paticle emitter datablock you have loaded
#2 you wouldn't mess up that particular datablock
#3 much easier to code
#4 particles retain correct color

I'm not sure exactly what the name of the camera object is, but all you would have to do is unmount the current emitter then mount your emitter.  Do this everytime you change your emitter.
Show script to me. I want read it, please.