Home   Help Search Login Register  

Author Topic: SOLVED: Drop Command - Smoke Effects  (Read 1523 times)

0 Members and 1 Guest are viewing this topic.

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
SOLVED: Drop Command - Smoke Effects
« on: 26 Dec 2007, 03:12:41 »
I have been looking into making smoke effects & was wondering if somebody could point me to a good Drop Command Tutorial (found one that was supposedly in german using the search but it's link is dead?).

Anyway i also found a piece of script that is supposed to make a smoke effect on a variable named _OBJ, but i'm unsure as to how to call the script or if it would even work - heres what i got sofar;

Quote
GL named _OBJ with - this exec "Smoke.sqs" in init line

;Smoke.sqs
_ps setParticleCircle [0, [0, 0, 0]];
_ps setParticleRandom [0, [0.5, 0.5, 0], [0.2, 0.2, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_ps setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 1, 6], "", "Billboard", 1, 8, [0, 0, 0], [0, 0, 4.5], 0, 10, 7.9, 0.5, [4, 12, 20], [[0.1, 0.1, 0.1, 0.8], [0.25, 0.25, 0.25, 0.5], [0.5, 0.5, 0.5, 0]], [0.125], 1, 0, "", "", _OBJ];
_ps setDropInterval 0.1;

I am trying to simulate a smoking furnace tower btw & any help would be appreciated  :scratch:
« Last Edit: 27 Dec 2007, 09:03:38 by Carroll »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Drop Command - Smoke Effects
« Reply #1 on: 26 Dec 2007, 11:58:55 »
Check the init.sqf of this mission.

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
Re: Drop Command - Smoke Effects
« Reply #2 on: 27 Dec 2007, 08:07:17 »
Thanks Mandoble, exactly what i was after. Though i do wish someone had a comprehensive Tutorial, as i am somewhat new to script building & wish to learn more.

I'm gunna play round with the file & try to get a darker smoke happening

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: SOLVED: Drop Command - Smoke Effects
« Reply #3 on: 27 Dec 2007, 13:36:02 »
For a darker smoke change [[0.2, 0.2, 0.2, 0.5], [0.7, 0.7, 0.7, 0.5], [0.5, 0.5, 0.5, 0]]
This is the color array, it is an array of arrays [R, G, B, A], the particle will start using the first color component and will change through the rest of the components along its life-time set in _particle_life_time. If you want the particle to be black all the time just use [[0,0,0,0.5]].

Same happens with _smoke_sizes, these are the sizes for the particle along its life-time, the particle will change from the first to the last smoothly along _particle_life_time seconds. You may play also with weight and volume parameters to make the particle lighter or heavier so the particle ascends faster or slower. You may speedup the particles going up also with the MoveVelocity vector, for example using [0,0,50] (the particles will go up initially at 50m/s), then the relation weight/volume and the Rubbing (which determines the friction) might make the particle stop and going down again.

The COMREF has a good explanation of every member of the particle array

Offline CharlieReddog

  • Members
  • *
Re: SOLVED: Drop Command - Smoke Effects
« Reply #4 on: 26 Jan 2008, 01:44:00 »
How would you get a smoke particle to rise higher?

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: SOLVED: Drop Command - Smoke Effects
« Reply #5 on: 26 Jan 2008, 03:06:38 »
For example, increasing the volume parameter over weight parameter.