Blockland Forums > Modification Help
command swtich
<< < (4/5) > >>
Swollow:
I'm pretty sure the above would work, if it was a default installed

--- Quote from: Cubelands on April 09, 2012, 09:49:51 PM ---"CameraParticleA.textureName= ("./base/data/particle/anyname.png");

--- End quote ---
remove that quotation mark at the beginning
Cubelands:

--- Quote from: swollow on April 09, 2012, 09:53:06 PM ---I'm pretty sure the above would work, if it was a default installedremove that quotation mark at the beginning

--- End quote ---
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?
Swollow:
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");
}
Cubelands:

--- Quote from: swollow on April 09, 2012, 10:05:00 PM ---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
    }
}


--- End quote ---
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: ---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;
};
--- End code ---
Cubelands:
-bump- for-help-
Navigation
Message Index
Next page
Previous page

Go to full version