Author Topic: Wand ProjectileData [Solved]  (Read 740 times)

I want to make default wand explosions of different colors.

Long Customizable Version
Code: [Select]
//Red Wand Explosion
datablock ParticleData(redwandExplosionParticle)
{
colors[0] = "0.87 0.67 0 0.87";
colors[1] = "0.87 0 0 0";
colors[2] = "1 1 1 1";
colors[3] = "1 1 1 1";
constantAcceleration = 0;
dragCoefficient = 1;
framesPerSec = 1;
gravityCoefficient = 0;
inheritedVelFactor = 0.2;
lifetimeMS = 500;
lifetimeVarianceMS = 300;
size[0] = 0;
size[1] = 0.7;
size[2] = 0.2;
size[3] = 1;
spinRandomMax = 150;
spinRandomMin = -150;
spinSpeed = 0;
textureName = "base/data/particles/star1";
times[0] = 0;
times[1] = 0.2;
times[2] = 1;
times[3] = 2;
useInvAlpha = 0;
windCoefficient = 1;
};
datablock ParticleEmitterData(redwandExplosionEmitter)
{
className = "ParticleEmitterData";
doDetail = 1;
doFalloff = 1;
ejectionOffset = 0.25;
ejectionPeriodMS = 1;
ejectionVelocity = 15;
lifetimeMS = 50;
lifetimeVarianceMS = 0;
orientOnVelocity = 1;
orientParticles = 0;
overrideAdvance = 0;
particles = "redwandExplosionParticleB";
periodVarianceMS = 0;
phiReferenceVel = 0;
phiVariance = 360;
thetaMax = 120;
thetaMin = 0;
uiName = "";
useEmitterColors = 0;
useEmitterSizes = 0;
velocityVariance = 4;
};
datablock ExplosionData(redwandExplosion : wandExplosion)
{
emitter[0] = redwandExplosionEmitter;

lightStartColor = "1 0.3 0.3";
lightEndColor = "0 0 0";
};
datablock ProjectileData(redwandProjectile : wandProjectile)
{
explosion = redwandExplosion;
};

Short Parented Version
Code: [Select]
//Red Wand Explosion
datablock ParticleData(redwandExplosionParticle : wandExplosionParticle)
{
colors[0] = "0.87 0.67 0 0.87";
colors[1] = "0.87 0 0 0";
};
datablock ParticleEmitterData(redwandExplosionEmitter : wandExplosionEmitter)
{
particles = "redwandExplosionParticle";
};
datablock ExplosionData(redwandExplosion : wandExplosion)
{
emitter[0] = redwandExplosionEmitter;

lightStartColor = "1 0.3 0.3";
lightEndColor = "0 0 0";
};
datablock ProjectileData(redwandProjectile : wandProjectile)
{
explosion = redwandExplosion;
};
« Last Edit: October 29, 2013, 02:32:58 PM by tommybricksetti »

AdminWandEmitterA.dump();
AdminWandParticleA.dump();
AdminWandExplosion.dump();


Just copy their values and then change the colors as it goes.
« Last Edit: October 25, 2013, 12:24:16 PM by Advanced Bot »


thanks I did it.

It might be a good idea to post your solution for other people searching for something similar in the future.

AdminWandEmitterA.save("config/wandSave.cs");
doing this will make it easier and you can copy and paste the values then