Forums Index >> Modding >> 187's flamethrower emitter node (billy bob
Page : <1> :
I will tomorow..........cuz im tired and im going to bed B)
What part do you not understand?
Yeah it would help if you could tell us wat part you dont get 8o
I cant get the emitter to function........ When I start the lvl the screen goes white and the game quits 8(
I think it has something to do with the main code thing billy bob could u post ur script for it?
Me I am having problems I put everything right including possitiion and the stuff at the top of the mis file as well as prefs.cs, and all emmiter things right but it still dont work, could someone send me a direct file? Thanks
Ok, ive sent Kris bot this already, I still got the zip and the readme, so if anyone wants it, it explains exactly wat to do AND it comes with the emitters.cs file too! Lemme know if you want it, and ill send it to ya XD
First thing first, do you have exec("game/server/scripts/*filename*.cs") at the top of the.mis? If so, go make a file in game/server/scripts called emitter.cs, and then change the exec to match ( exec("game/server/scripts/emitter.cs") ) and just leave the file empty for now. Now, go open a dedicated server and see if it found that file and compiled it if so, you did it right. Next read and copy the stuff from 187's tutorial into emitter.cs, load the dedicated server again and see if there are any errors. If not, make the new datablock in the.mis:
new ParticleEmitterNode(FlamethrowerEmitterNode) {
Position = "-144.619 20.0121 105.355";
Rotation = "0.0116031 -0.00690149 -0.999909 86.1322";
Scale = "1 1 1";
Datablock = "FlamethrowerEmitterNode";
Emitter = "FlamethrowerEmitter";
Velocity = "1";
};
Make the position what you want, and load the level and see if it works.
I couldn't explain it any better......so there u go.....listen to Michael......and if it still dont work your doing something wrong :)
-Billy Bob(SEAL)-
Last edited: Wednesday, May 12, 2004 at 8:28:35 PM
MICHAEL, I WUZ GONNA TELL EM THAT!! Like I said, I have a README that explains all that too. And you dont have to do the dedicated stuff, I dont and mine work fine ;)
Post the readme lol
The text in it!
I will try it on friday thx michael
Hey scotty, send me the readme, or host it somewhere and send me the link and I will add it to the Ultimant Modding Thread.
Its a zip file that I could post here, how do I do that?
Copy the text or post somewhere to download it like blahblahblah.com/blah.zip or whatever
Okay, here. This is my whole readme. Since I cant seem to find racer, ill just post the text.
The first is the emitters.cs file. This is wat should be in it:
Datablock particledata(flamethrower)
{
AnimateTexture = "0";
AnimTexName[0] = "game/data/shapes/Common/volcanoexplosion.png";
Colors[0] = "0.935433 0.154331 0.744094 1.000000";
Colors[1] = "0.735433 0.154331 0.844094 1.000000";
Colors[2] = "0.454331 0.204724 0.604724 0.370079";
Colors[3] = "0.000000 0.000000 0.000000 0.000000";
ConstantAcceleration = "0";
DragCoefficient = "0.997067";
FramesPerSec = "1";
GravityCoefficient = "-0.417338";
InheritedVelFactor = "0.295499";
LifetimeMS = "1984";
LifetimeVarianceMS = "480";
Sizes[0] = "0.347922";
Sizes[1] = "0.839285";
Sizes[2] = "1.93798";
Sizes[3] = "2.93902";
SpinRandomMax = "500";
SpinRandomMin = "-90";
SpinSpeed = "0";
TextureName = "game/data/shapes/Common/volcanoexplosion.png";
Times[0] = "1";
Times[1] = "1.2";
Times[2] = "1.498039";
Times[3] = "2";
UseInvAlpha = "1";
WindCoefficient = "1";
};
Datablock particleemitterdata(flamethroweremitter)
{
ClassName = "ParticleEmitterData";
EjectionOffset = "0";
EjectionPeriodMS = "28";
EjectionVelocity = "1.5";
LifetimeMS = "0";
LifetimeVarianceMS = "0";
OrientOnVelocity = "1";
OrientParticles = "0";
OverrideAdvance = "0";
ParticleFarDist = "1000";
Particles = "flamethrower";
PeriodVarianceMS = "27";
PhiReferenceVel = "0";
PhiVariance = "360";
ThetaMax = "90";
ThetaMin = "90";
UseEmitterColors = "0";
UseEmitterSizes = "0";
VelocityVariance = "0.5";
};
Datablock ParticleEmitterNodeData(Flamethroweremitternode)
{
TimeMultiple = 80;
};
All of that should be in a file named emitters.cs
Now this is the readme, follow it carefully.
Take the writing above and put it in the
Game/server/scripts folder.
Name it emitters.cs as the filename.
Now take this exerpt:
Exec("game/server/scripts/emitters.cs");
Copy it and paste it to the bottom of you prefs.cs files. To get them, go to:
Game/server and game/client
Paste them at the bottom of the prefs.cs files in these folders (NOT THE PREFS.CS.DSO FILES!!!)
Then copy that line again and paste it at the top of the.mis file you are createing an mod in. Put it right before
OBJECT WRITE BEGIN
Then put a rock somewhere in your mod. Go into the mis file and find it. It will be a TSsatic. Change it to:
New ParticleEmitterNode
Leave the position and rotation alone
The change the shapefile to:
Datablock = "FlamethrowerEmitterNode";
In the end it should look like this:
New ParticleEmitterNode(FlamethrowerEmitterNode) {
Position = "watever #";
Rotation = "watever #";
Scale = "1 1 1";
Datablock = "FlamethrowerEmitterNode";
Emitter = "FlamethrowerEmitter";
Velocity = "1";
Then you will have an emitter if you do everything correctly.
There you go! Michael, this worked for me, I dunno wat you did
Nothing I do will work!?!?!?!?!!??! It wouldnt start to load :S
Pretty much the same thing I said, except I exec form the.mis file. :)
Pretty much the same thing I said, except I exec form the.mis file.
Huh explain plz I can't get my emitters to work :(
Me either
Now take this exerpt:
Exec("game/server/scripts/emitters.cs");
Copy it and paste it to the bottom of you prefs.cs files.
I said I exec from the.mis file.
Did everyone read wat I said in my readme???? PREFS.CS, both of them!!!! READ WORD FOR WORD WAT I SAID IN THE README!!!!!!!!!!! 8(
Did everyone read wat I said in my readme???? PREFS.CS, both of them!!!! READ WORD FOR WORD WAT I SAID IN THE README!!!!!!!!!!!
There would be alot less threads if people would actually read.
*looking down towards floor* read why read look at 2 to da bottom and figue out wats up saves time 8o
LOL
Page : <1> :
Could some1 help me with getting the emitter node 187 created (flamethrower obviously).
Help plz