Author Topic: Light Model Request  (Read 805 times)

Could someone make me a model of this please? A model I can use shift color on.

You can color emitters.


That's why you have an empty dts that emits it.

That's why you have an empty dts that emits it.
How would it emit it?

Look in the gun's server.cs, almost every weapon uses emitters.

Look in the gun's server.cs, almost every weapon uses emitters.
Can't color emitters from an image. Though you can't recolor an image itself either, so if you planned to pick this up and hold it and have it change colors, I think you're pretty much out of luck. If you just wanted it on the ground, you may be able to make an emitter follow it around, though I don't think there's any example on how to do that.

That's incorrect. Emitters from an image can be colored, that's how almost every emitter works.

That's incorrect. Emitters from an image can be colored, that's how almost every emitter works.
You can't even reference an emitter on an image. It is not a separate object. The image itself isn't even an object. How do you propose to do this? I've never seen it done.

Code: [Select]
datablock ParticleData(spearExplosionParticle2)
{
dragCoefficient = 0.1;
windCoefficient = 0.0;
gravityCoefficient = 2.0;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 1000;
lifetimeVarianceMS = 500;
spinSpeed = 10.0;
spinRandomMin = -50.0;
spinRandomMax = 50.0;
useInvAlpha = true;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/chunk";
//animTexName = "~/data/particles/cloud";

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

datablock ParticleEmitterData(spearExplosionEmitter2)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   lifetimeMS       = 7;
   ejectionVelocity = 15;
   velocityVariance = 5.0;
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "spearExplosionParticle2";

   useEmitterColors = true;
   uiName = "Spear Chunk";
   emitterNode = HalfEmitterNode;
};
I don't think we are talking about the same thing.

Can't color emitters from an image. Though you can't recolor an image itself either,

...why are these falsities in front of my face.

I don't think we are talking about the same thing.
...why are these falsities in front of my face.
I was referring to changing it through script, with a method, which is in fact not possible. We apparently aren't talking about the same thing, though the question was somewhat ambiguous.

I only want it as something you can pick up to set the player's light to the color of the item they picked up. I don't want it to actually be an item in their inventory.

I only want it as something you can pick up to set the player's light to the color of the item they picked up. I don't want it to actually be an item in their inventory.
You don't know what you are talking about, just ask for what you want next time.

I was referring to changing it through script, with a method,

Ah, yes; in that case it wouldn't be possible.