Forums Index >> Modding >> emitternode datablock? wtf?
Page : <1> :
Example
New ParticleEmitterNode(bloblubEmitterNode) {
Datablock = "bloblubEmitterNode";
position = "0.0 0.0 0.0";
rotation = "0.0 0.0 0.0 0.0";
scale = "1 1 1";
Emitter = "bloblubEmitter";
Velocity = "1";
};
new ParticleEmitterNode(SmokerBlueemitternode1) {
Datablock = "SmokerBlueemitternode";
position = "306.053 -257.571 231.786";
rotation = "0.12704 -0.127804 0.98363 0.0395647";
scale = "1 1 1";
Emitter = "SmokerBlueemitter";
Velocity = "1";
};
...crap u beat me to it!!! ;)
make sure the "N" in "New" is
NOT
capitalized! B)
Only lethal on days that end with "Y"
Hhhm sill don get it %) this is what I have:
This is the node in my mission file:
new ParticleEmitterNode(bluetailemitternode1) {
Datablock = "bluetailemitternode";
position = "121.585 -543.454 147.304";
rotation = "-9.53403e-005 -3.72319e-005 -1 87.9479";
scale = "1 1 1";
Emitter = "bluetailemitter";
Velocity = "1";
};
Emitter in specialcs:
Datablock ParticleData(bluetailParticle)
{
dragCoefficient = 5;
gravityCoefficient = -5.01831;
windCoefficient = 30;
inheritedVelFactor = 0;
constantAcceleration = 0;
lifetimeMS = 9984;
lifetimeVarianceMS = 0;
useInvAlpha = 1;
spinRandomMin = -750;
spinRandomMax = 13;
textureName = "game/data/shapes/tanks/dustParticle.png";
spinSpeed = 0;
times[0] = 0;
times[1] = 1;
colors[0] = "0.000000 0.000000 1.000000 1.000000";
colors[1] = "0.000000 0.000000 0.000000 1.000000";
sizes[0] = 4.02851;
sizes[1] = 0;
};
Datablock ParticleEmitterData(bluetailEmitter)
{
ejectionPeriodMS = 15;
periodVarianceMS = 0;
ejectionVelocity = 1;
velocityVariance = 1;
ejectionOffset = 0;
thetaMin = 90;
thetaMax = 90;
phiReferenceVel = 360;
phiVariance = 0;
overrideAdvances = 1;
lifetimeMS = 5000;
orientParticles= 0;
orientOnVelocity = 1;
particles = "bluetailParticle";
};
What do I have to do to mak the emiter work?
Last edited: Saturday, September 17, 2005 at 2:24:50 AM
New ParticleEmitterNode(bluetailParticle) {
Datablock = "bluetailParticle";
position = "121.585 -543.454 147.304";
rotation = "-9.53403e-005 -3.72319e-005 -1 87.9479";
scale = "1 1 1";
Emitter = "bluetailemitter";
Velocity = "1";
};
And flamin what the heck you are thinking when useing bluetailemitternode1 ?? There is only one node per emitter...
Still doesnt work :S this is an part of my mis file
};
new PowerUp() {
dataBlock = "Testpowerup";
position = "145.078 681.235 117.594";
rotation = "0 0 1 178.963";
scale = "1 1 1";
lightBoost = "0";
};
new ParticleEmitterNode(bluetailParticle) {
datablock = "bluetailParticle";
position = "121.585 -543.454 147.304";
rotation = "-9.53403e-005 -3.72319e-005 -1 87.9479";
scale = "1 1 1";
emitter = "bluetailemitter";
velocity = "1";
};
};
//--- OBJECT WRITE END ---
This is an example what it looks like in mission file. You have to replace the NAME by name of your emitter, but not touching the emitter and emitternode parts as they are needed. Inside ( ) are NAMEEmitterNode1 the number as last is an extra if you want to use the emitter only once in the map. But if you want to have the same emitter more than once you have to use the number at the end or only the first one shows up. Also make sure your emitter got all the three emitter datablocks:
Datablock ParticleData(NAME
)
{
//cut out
};
datablock ParticleEmitterData(NAME
Emitter)
{
//cut out
};
datablock ParticleEmitterNodeData(NAME
EmitterNode)
{
timeMultiple = 80;
};
new ParticleEmitterNode(NAME
EmitterNode1) {
position = "-136.0 -253.0 128.0";
rotation = "1.0 1.0 1.0 1.0";
scale = "1 1 1";
datablock = "NAME
EmitterNode";
emitter = "NAME
Emitter";
velocity = "1";
};
new ParticleEmitterNode(NAME
EmitterNode2) {
position = "-162.0 -12.0 113.0";
rotation = "1.0 1.0 1.0 1.0";
scale = "1 1 1";
datablock = "NAME
EmitterNode";
emitter = "NAME
Emitter";
velocity = "1";
};
new ParticleEmitterNode(NAME
EmitterNode3) {
position = "-228.0 -23.0 112.0";
rotation = "1.0 1.0 1.0 1.0";
scale = "1 1 1";
datablock = "NAME
EmitterNode";
emitter = "NAME
Emitter";
velocity = "1";
};
};
//--- OBJECT WRITE END ---
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.
Last edited: Saturday, September 17, 2005 at 4:09:58 AM
The name of my emitter is bluetailemitter do I have to name the emitternode "bluetailemitteremitternode" or just bluetailemitternode?
I suggest call it only "bluetail". The the three emitter datablocks would look like this.
Datablock ParticleData(bluetail)
{
//cut out
};
datablock ParticleEmitterData(bluetailEmitter)
{
//cut out
};
datablock ParticleEmitterNodeData(bluetailEmitterNode)
{
timeMultiple = 80;
};
And the mission one would look like this.
new ParticleEmitterNode(bluetailEmitterNode) {
position = "-136.0 -253.0 128.0";
rotation = "1.0 1.0 1.0 1.0";
scale = "1 1 1";
datablock = "bluetailEmitterNode";
emitter = "bluetailEmitter";
velocity = "1";
};
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.
Still doesnt work this is what I have right now:
Emitter:
Datablock ParticleData(bluetail)
{
dragCoefficient = 5;
gravityCoefficient = -5.01831;
windCoefficient = 30;
inheritedVelFactor = 0;
constantAcceleration = 0;
lifetimeMS = 9984;
lifetimeVarianceMS = 0;
useInvAlpha = 1;
spinRandomMin = -750;
spinRandomMax = 13;
textureName = "game/data/shapes/tanks/dustParticle.png";
spinSpeed = 0;
times[0] = 0;
times[1] = 1;
colors[0] = "0.000000 0.000000 1.000000 1.000000";
colors[1] = "0.000000 0.000000 0.000000 1.000000";
sizes[0] = 4.02851;
sizes[1] = 0;
};
Datablock ParticleEmitterData(bluetailemitter)
{
ejectionPeriodMS = 15;
periodVarianceMS = 0;
ejectionVelocity = 1;
velocityVariance = 1;
ejectionOffset = 0;
thetaMin = 90;
thetaMax = 90;
phiReferenceVel = 360;
phiVariance = 0;
overrideAdvances = 1;
lifetimeMS = 5000;
orientParticles= 0;
orientOnVelocity = 1;
particles = "bluetail";
};
Emitternode in mis file:
};
new ParticleEmitterNode(bluetailEmitterNode) {
datablock = "bluetailEmitterNode";
position = "121.585 -543.454 147.304";
rotation = "-9.53403e-005 -3.72319e-005 -1 87.9479";
scale = "1 1 1";
emitter = "bluetailemitter";
velocity = "1";
};
Let me quote myself.
Also make sure your emitter got all the three emitter datablocks:
Datablock ParticleData(bluetail)
{
//cut out
};
datablock ParticleEmitterData(bluetailEmitter)
{
//cut out
};
datablock ParticleEmitterNodeData(bluetailEmitterNode)
{
timeMultiple = 80;
};
You're missing EmitterNode without it... It won't work...
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.
ì have it look:
};
new ParticleEmitterNode(bluetailEmitterNode) {
datablock = "bluetailEmitterNode";
position = "121.585 -543.454 147.304";
rotation = "-9.53403e-005 -3.72319e-005 -1 87.9479";
scale = "1 1 1";
emitter = "bluetailemitter";
velocity = "1";
};
Page : <1> :
I followed an emitter node tutorial but what do I have to fiil in at datablock:
This is what I mean:
New ParticleEmitterNode(name) {
Datablock = "WhatDoIHaveToFillInHere";
position = "0.0 0.0 0.0";
rotation = "0.0 0.0 0.0 0.0";
scale = "1 1 1";
Emitter = "EmmiterName";
Velocity = "1";
};