Author Topic: Need help with my mod...  (Read 675 times)

Well, i was gonna do this by myself, but i haven't gotten nowhere, so i'm asking ya'll for help, i'm making a D-Smiley Ball mod, but the particle is wrong

Code: [Select]
datablock ParticleData(DSmileyBallTrailParticle)
{
dragCoefficient = 0.0;
windCoefficient = 0.0;
gravityCoefficient = 0.0;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 100;
lifetimeVarianceMS = 0;
spinSpeed = 0.0;
spinRandomMin = 0.0;
spinRandomMax = 0.0;
useInvAlpha = true;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/dot";
//animTexName = " ";

// Interpolation variables
colors[0] = "0.0 0.0 0.0 1.0";
sizes[0] = 0.35;
times[0] = 0.5;
};

datablock ParticleEmitterData(DSmileyBallTrailEmitter)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;

   ejectionVelocity = 0; //0.25;
   velocityVariance = 0; //0.10;

   ejectionOffset = 0;

   thetaMin         = 80.0;
   thetaMax         = 90.0; 

   particles = DSmileyBallTrailParticle;
};

I want it to be able to be short and disappear behind the projectile like in the video
http://www.youtube.com/watch?v=1lqUf494TTo&feature=related

Here's a BETA video of my mod
http://www.youtube.com/watch?v=vm5bp8FGCls
« Last Edit: April 12, 2008, 01:15:31 AM by Masterlegodude »

Make a image of the ball(without the face) and make it the texture in the particle.

That should work(make sure you use the same colors too)

To make it shorter turn down the lifetimeMS, to make it disappear more gradually do this:
Code: [Select]
colors[0] = "0.0 0.0 0.0 1.0";
colors[1] = "0.0 0.0 0.0 0.5";
sizes[0] = 0.35;
sizes[1] = 0.35;
times[0] = 0.5;
times[1] = 0.5;

or something along those lines.