Author Topic: switch admin orb  (Read 1913 times)

Because the 'admin orb' particle effects are unique to Blockland, they're not default to TGE
oh Hey! you are back! Welcome back to BL! :D

I never left?
Well not the forums at least

hee hee, I was kidding with you... Did you read errors lines. I should rename them all each datablocks?

I did read ghost script from pack halloween, I were tested ghost script are not work, I think it broken. I am try different other way find way switch line, I think of that.

Quote
//Changes The Default Admin Orb

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;
};

function serverCmdOrbBubble(%client, %this)
{
   if(!%client.isSuperAdmin) //Check if we're super admin
}

which one I put line ?
function serverCmdOrbBubble(%client, %this)
{
   if(!%client.isSuperAdmin) //Check if we're super admin
                 I not know what the line put here.
}

I made few script are separate package with server.cs allow exec all  cs
I feel closer this almost finish and wrap it up.
« Last Edit: May 15, 2012, 02:41:10 AM by Cubelands »

Ok, I'll try to use console tracing in single player to find out the orb datablock, not sure how well it will work.
The most serious possible issue is if the orb DOESNT have a datablock, but has separate stuff all it's own.
I'll take a look.

The orb has a datablock. That's how people change it's appearance to hearts and stuff.

The orb has a datablock. That's how people change it's appearance to hearts and stuff.
Fine, umm did you read error code? It at first page.

EDIT: This would be cool to use.
« Last Edit: May 16, 2012, 04:42:31 PM by tkepahama »


Anyone help me or what?

Given that you can probably edit the admin orb datablocks (well, everything but the UI names) via console commands, you might be able to just edit the specific values using <datablock>.<field> = <value>;
Then you could just use a modified Server CMD function or two from Munk's Server Pack to make commands to edit them.

Personally, though, I still suck at scripting, a couple good people here are trying to help me through a "change-it-up" chatbot for my server that would tweak the gamemode in odd ways.

The admin orb is an emitter actually used in the flying mode thats why it goes through walls.

I checked the partice in add-ons partical_player clicked discription and right there were listed.

 - Player Bubbles
 - Player Foam
 - Player Foam Droplets
 - Player Jet
 - Player Jet Dust
 - Player Foot Puff
 - Camera Glow
Can you post this as a mod when your done PLEASE :D
« Last Edit: June 20, 2012, 06:10:06 PM by dell2 »

The admin orb is an emitter actually used in the flying mode thats why it goes through walls.

I checked the partice in add-ons partical_player clicked discription and right there were listed.

 - Player Bubbles
 - Player Foam
 - Player Foam Droplets
 - Player Jet
 - Player Jet Dust
 - Player Foot Puff
 - Camera Glow
Can you post this as a mod when your done PLEASE :D

You not understand how it work in the script for switch admin orbs.
EDIT: forget, I have go back square one on the script.
« Last Edit: June 22, 2012, 01:19:06 PM by Cubelands »

come on, please help.

why, no one help me with this coding?