Zombie Vomit Effect

Ask questions, discuss ideas, get answers
Post Reply
Coroner47
Posts: 213
Joined: Tue Nov 24, 2009 5:11 am
Location: Canada

Zombie Vomit Effect

Post by Coroner47 »

Im having problems wrapping my mind around all these effects settings. Ive made plenty of effects, but none that emit a continuous stream of liquid like particals. Could you guys look at my code & give me some help? The problem is, i have a weapon ( ZombieVomit ) that shoots a projectile with an effect ( e_ZombieVomit ) attached to it & i can't get the effect to create a stream ( like 1 meter long ) of liquid. I can only seem to produce a couple particles in a straight line or 20+ particles in a wide area spray. What am i doing wrong?

Code: Select all

rem**************** Zombie Vomit ******************
rem *** e_ZombieVomit ***
ObjectTemplate.create EffectBundle e_ZombieVomit
rem -------------------------------------
ObjectTemplate.addTemplate Em_ZombieVomit
ObjectTemplate.timeToLive CRD_NONE/-1/0/0

rem *** Em_TorsoSplatter ***
ObjectTemplate.create Emitter Em_ZombieVomit
ObjectTemplate.template Fx_ZombieVomit
ObjectTemplate.timeToLive CRD_NONE/3/0/0

ObjectTemplate.looping 1
rem ObjectTemplate.AddChild 1
ObjectTemplate.startAtCreation 1
ObjectTemplate.startProbability 1
ObjectTemplate.addEmitterSpeed 1
ObjectTemplate.emitterSpeedScale 1

rem ObjectTemplate.intensity CRD_UNIFORM/40/100/0
ObjectTemplate.intensity CRD_NONE/40/0/0

rem ObjectTemplate.positionalSpeedInDof CRD_NONE/-5/0/0
rem ObjectTemplate.positionalSpeedInUp CRD_UNIFORM/10/0/0
rem ObjectTemplate.positionalSpeedInRight CRD_UNIFORM/-2/0/1

rem ObjectTemplate.positionalSpeedInDof CRD_UNIFORM/1/5/0
rem ObjectTemplate.positionalSpeedInUp CRD_UNIFORM/-0.5/0/0
rem ObjectTemplate.positionalSpeedInRight CRD_UNIFORM/-0.5/0/0

ObjectTemplate.startRotation CRD_UNIFORM/1/180/0
rem *** Fx_TorsoSplatter ***
ObjectTemplate.create SpriteParticle Fx_ZombieVomit
ObjectTemplate.timeToLive CRD_NONE/1.5/0/0
ObjectTemplate.size CRD_NONE/0.05/0/0
rem ObjectTemplate.gravityModifier CRD_NONE/5/0/0

ObjectTemplate.sizeOverTime 0/0.5|12/2.5|100/3
rem ObjectTemplate.sizeOverTime 0/0|1/0.01|2/0.3

rem ObjectTemplate.texture e_DirtAni03

rem *** This 1 is awesome!!! ***
ObjectTemplate.texture e_exp_Dirt9

ObjectTemplate.initRotation CRD_UNIFORM/0/180/1
ObjectTemplate.destBlendMode BMInvSourceAlpha

rem *** red ***
rem ObjectTemplate.colorRGBAOverTime 0/255/0/0/198|79/255/0/0/104|100/255/0/0/0

rem *** Green ***
ObjectTemplate.colorRGBAOverTime 0/80/159/55/198|79/80/159/55/104|100/80/159/55/0
Im sure i has something to do with "timeToLive" on the emitter or the particles, but uping either of them to 3 secs seems to cause a spray not a stream.
Image
Pray hard, die fast
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Zombie Vomit Effect

Post by Apache Thunder »

Welll the timeToLive on the emitter governs how fast it resets (if it's set to loop that is). So the intensity is the amount of particles it will emit in the timeToLive that is set. If you reduce timeToLive it will produce the 40 particles faster. If you increase intensity it will produce more particles at once. Try increasing the intensity (recall that 40 as it is set to equals 40 particles. Simple really) and then decreasing the timeToLive 1 or less. Also if it comes out too much of a spray, try narrowing the positionalSpeed settings. 0.5 doesn't sound like much for something that small scale like vomit, you might need smaller numbers. :P

Also be sure you adjust the timeToLive on the particles them selves as well. You don't want them lasting longer then they need to. If the soldier is close to the ground all the time, the timeToLive on them can be very small. This depends on how fast your particles move that is.

Also, why is "addChild" remmed out? I think that command might help in this case. :P

You can also try adding this command to the emitter"

Code: Select all

ObjectTemplate.noPhysics 1
You don't need to mess with the timeToLive set on the EffectBundle. That one is fine. That sets how long the effect lasts over all. You already have it set to infinite, so that part is good.
ImageImageImage
I have cameras in your head!
Post Reply