Data Realms Fan Forums
http://45.55.195.193/

Greande Emitter
http://45.55.195.193/viewtopic.php?f=1&t=16697
Page 1 of 1

Author:  Makke [ Mon Sep 28, 2009 6:53 pm ]
Post subject:  Greande Emitter

hello. I want to make my grenade emitt MOPixels but im having trubbles. if anyone can take a look at this code and ether tell me whats wrong (would be best) or atleast fix it for me. Thanks. :)
http://textbin.com/d8052

Author:  Duh102 [ Mon Sep 28, 2009 6:55 pm ]
Post subject:  Re: Greande Emitter

What do you want to accomplish? Have a grenade that emits these particles as it flies or upon detonation, pop up into the air and emit the particles?

Author:  Makke [ Mon Sep 28, 2009 6:59 pm ]
Post subject:  Re: Greande Emitter

I want the grenade to emitt pixels as a smoke grenade that is once the triggerdelay has popped but im having hard time's with the emitters :( and thanks for the super fast reply

Author:  Duh102 [ Mon Sep 28, 2009 7:07 pm ]
Post subject:  Re: Greande Emitter

Ok, that's pretty easy. I'm having a hard time reading your code, so I'll just make a verbal description and you can try it again. Upload the actual mod (zipped up) for more exacting help.

It looks like you have a TDExplosive defined, which is good, as well as an AEmitter and an MOPixel.

Just so you know, it would be better if you used MOSParticles for smoke. MOPixels are single pixels on the screen and it would be very hard to get any sort of convincing smoke, and in any case would be extremely laggy. I would recommend instead using the MOSParticle Smoke Ball 1. You can simply refer to it by name in your AEmitter description without defining it, it's part of Base.rte.

To make your TDExplosive create the smoke when it detonates, have your AEmitter have a RestThreshold of -50000 and a GlobalAccScalar of 0 or slightly less (within -0.01), but not too much less so that it doesn't float away.

Then, set your TDExplosive to have the AEmitter as a gib, with the following properties:
InheritsVel = 0
MinVelocity = 0
MaxVelocity = 0.1

That should do it.

Author:  Makke [ Mon Sep 28, 2009 7:16 pm ]
Post subject:  Re: Greande Emitter

Thanks. so?.. ill just change "CopyOf = Maksmoke" to "CopyOf = Smokeball"

and add the gibbing " AddGib = Gib
GibParticle = MOSParticle
CopyOf = Smoke Emitter
InheritsVel = 0
MinVelocity = 0
MaxVelocity = 0.1 "

Author:  Duh102 [ Mon Sep 28, 2009 7:21 pm ]
Post subject:  Re: Greande Emitter

Makke wrote:
ill just change "CopyOf = Maksmoke" to "CopyOf = Smoke Ball 1"

and add the gibbing " AddGib = Gib
GibParticle = AEmitter
CopyOf = Smoke Emitter
InheritsVel = 0
MinVelocity = 0
MaxVelocity = 0.1 "

There you go. Assuming the name of your emitter is Smoke Emitter that is. I bolded the corrections.

Author:  Makke [ Mon Sep 28, 2009 7:22 pm ]
Post subject:  Re: Greande Emitter

oh and thank you. you'v been a lot of help :) rly appreshite it :D. ill come back here if i get any more trubble :]

Edit: ima try it now :D
Edit2: Could not Refer to instance("Smoke ball 1").... D: somethings wrong with the sprites?
Edit3:i had been missssspeling.. on some places but error still remains.
Edit4:Wow i finally got it working and it works great :) and im actually starting to learn how to use the Emitters

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/