View unanswered posts | View active topics It is currently Thu Jan 09, 2025 10:38 pm



Reply to topic  [ 7 posts ] 
 Greande Emitter 
Author Message

Joined: Tue Jul 07, 2009 5:45 pm
Posts: 16
Reply with quote
Post 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


Mon Sep 28, 2009 6:53 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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?


Mon Sep 28, 2009 6:55 pm
Profile

Joined: Tue Jul 07, 2009 5:45 pm
Posts: 16
Reply with quote
Post 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


Mon Sep 28, 2009 6:59 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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.


Mon Sep 28, 2009 7:07 pm
Profile

Joined: Tue Jul 07, 2009 5:45 pm
Posts: 16
Reply with quote
Post 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 "


Mon Sep 28, 2009 7:16 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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.


Mon Sep 28, 2009 7:21 pm
Profile

Joined: Tue Jul 07, 2009 5:45 pm
Posts: 16
Reply with quote
Post 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


Mon Sep 28, 2009 7:22 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.065s | 13 Queries | GZIP : Off ]