I want to make default wand explosions of different colors.
Long Customizable Version
//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
//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;
};