Forums Index >> Modding >> emitter troubles!



Page : <1> :


Sorry I coudllnt' find a fix for this in the "ultimate modding thread" so I had to post a new topic :( Ok can you tell me what I'm doing wrong? My map just isn't loading with my new emitter code :[ new code, the bar doesn't even go up a little... I've had this problem with all the emitter codes I've EVER tried..

Datablock particledata(lightparticle)

{

AnimateTexture = "0";

AnimTexName[0] = "game/data/shapes/tanks/reticle.png";

Colors[0] = "1 0 0 0.000000";

Colors[1] = "1 0 0 0.000000";

Colors[2] = "1 0 0 0.385827";

Colors[3] = "1.000000 1.000000 0.000000 0.000000";

ConstantAcceleration = "0";

DragCoefficient = "0.997067";

FramesPerSec = "1";

GravityCoefficient = "-0.20757";

InheritedVelFactor = "0.297456";

LifetimeMS = "500";

LifetimeVarianceMS = "250";

Sizes[0] = "4.247922";

Sizes[1] = "3.745389";

Sizes[2] = "2.84409";

Sizes[3] = "1.54513";

SpinRandomMax = "0";

SpinRandomMin = "0";

SpinSpeed = "0";

TextureName = "game/data/shapes/tanks/speedyprojectile.jpg";

Times[0] = "1";

Times[1] = "1.2";

Times[2] = "1.498039";

Times[3] = "1";

UseInvAlpha = "1";

WindCoefficient = "1";

};

//

//

Datablock particleemitterdata(lightparticleemitter)

{

ClassName = "ParticleEmitterData";

EjectionOffset = "0";

EjectionPeriodMS = "28";

EjectionVelocity = "1.5";

LifetimeMS = "0";

LifetimeVarianceMS = "0";

OrientOnVelocity = "1";

OrientParticles = "0";

OverrideAdvance = "0";

ParticleFarDist = "1000";

Particles = "lightparticle";

PeriodVarianceMS = "27";

PhiReferenceVel = "0";

PhiVariance = "360";

ThetaMax = "90";

ThetaMin = "90";

UseEmitterColors = "0";

UseEmitterSizes = "0";

VelocityVariance = "0.5";

};

//--- OBJECT WRITE BEGIN ---

Then I have

//--- OBJECT WRITE END ---

Lightprojectile.emitter = "lightparticleemitter";
lightprojectile.emitter = "lightparticleemitter";

Defaultexplosion.resource = "game/data/shapes/common/powerupflash.png";

Last edited: Friday, August 06, 2004 at 3:27:35 PM

Friday, August 06, 2004 at 3:18:03 PM

This two should start with small capital:

Datablock particledata(lightparticle)

Datablock particleemitterdata(lightparticleemitter)

So they would look like this "datablock particledata(lightparticle)" and "datablock particleemitterdata(lightparticleemitter)".

By the way, the emitter dosent look bad either.

 

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Friday, August 06, 2004 at 5:00:33 PM

 

 

Times[2] = "1.498039";

Times[3] = "1";

 

Times 3 is smaller than times 2. It doesn't like that.

Friday, August 06, 2004 at 6:15:06 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald