Home   Help Search Login Register  

Author Topic: glowing particles  (Read 844 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
glowing particles
« on: 04 Sep 2003, 00:58:15 »
how do you (using the drop command) drop a particle that glows at night.  I need it to stay in one place.  I need the color of this glowing particle to be white.  

How do you do this?

I went through the tute, no info on glowing particles.

Thank You

Grendel

  • Guest
Re:glowing particles
« Reply #1 on: 04 Sep 2003, 03:05:12 »
Your in luck! The solution is pretty simple; if you've looked through the Vektorbosen's tuts then you probably saw cl_basic,cl_water, and cl_fire and will know where to put this  stuff in the drop command.  The one you need is "cl_fire".  Then, to make it white make the color section of the command like so:

[[1,1,1,1],[1,1,1,X]] (make the X a zero if you want it to fade out after the lifetime expires, or one if you want it to blink out like a light)

ya know what? let me cut and paste one real quick...

Code: [Select]
drop ["cl_fire", "", "Billboard", 30,30, [0, 0, 0], [0, 0, 0], 0, 1.275, 1, 0, [10,20],[[1,1,1,1],[1,1,1,0]],[0],0,0,"","",_object]
just name something for the _object or use coordinates.

-Grendel
« Last Edit: 04 Sep 2003, 17:59:31 by Grendel »

Rubble_Maker

  • Guest
Re:glowing particles
« Reply #2 on: 04 Sep 2003, 10:57:40 »
Mhmm, I don't think cl_fire glows at nite, but the "obrysove svetlo" billboard does for sure.

Grendel

  • Guest
Re:glowing particles
« Reply #3 on: 04 Sep 2003, 18:05:22 »
Well, I guess Rubble_Maker is technically right; cl_fire doesn't glow in the sense that it lights up the surrounding area, cl_fire particles are just brightly visible at night.

I didn't know about the "obrysove svetlo" billboard, cool! You learn something new every day! ;D thanx Rubble_Maker

So I guess if you used a cl_fire particle in conjunction with the "obrysove svetlo" billboard, you'd get what you were looking for.

-Grendel

Harkonin

  • Guest
Re:glowing particles
« Reply #4 on: 04 Sep 2003, 23:31:33 »
"halflight" works as well

gadolinite

  • Guest
Re:glowing particles
« Reply #5 on: 05 Sep 2003, 00:27:42 »
 :moon:OK, alright alright alright alright

 :-\I now know that fire does not light up the area at night.

What does ???


Offline Burn

  • Members
  • *
Re:glowing particles
« Reply #6 on: 06 Sep 2003, 05:42:15 »
 :hmm:
Mhmm, I don't think cl_fire glows at nite, but the "obrysove svetlo" billboard does for sure.
@gadolinite
Learn to read what other people post to u ;D ::)...

Rubble_Maker

  • Guest
Re:glowing particles
« Reply #7 on: 06 Sep 2003, 11:41:20 »
btw: The different particle types work in the config.cpp as well! An addonized light effect is also much much faster than the drop command (which prolly takes the OFP engine hours to parse with that insane number of arguments). Here's an example; use "inflame" to set it off:

   class light_example: Target
   {
      scope=private;
      simulation="fire";
      sound="empty";
      displayName="";
      model="empty";
            
      class smoke {
         interval=0;
         timetolive=0;
         cloudletDuration=10;
         cloudletAnimPeriod=0;
         cloudletSize=0;
         cloudletAlpha=0;
         cloudletGrowUp=0;
         cloudletFadeIn=0;
         cloudletFadeOut=0;
         cloudletAccY=0;
         cloudletMinYSpeed=0;
         cloudletMaxYSpeed=0;
         cloudletShape=koulesvetlo;
         cl_basic=0;
         cloudletColor[]={0,0,0,0};
         initT=0;
         deltaT=0;
         maxT=0;
         class table{};
         density=0;
         size=0;
         in=0;
         out=0;
         initYSpeed=0;
      }
      
      
      class Light
      {
         Shape="halflight";
         color[] = {1.0, 1.0, 0.0, 0.0};
         ambient[] = {1.0, 1.5, 0.0, 0.1};
         position = "light";
         size = 0.0;
         brightness = 0.02;   // 0.015
      };   
      
   };

deaddog

  • Guest
Re:glowing particles
« Reply #8 on: 06 Sep 2003, 13:03:41 »
:moon:OK, alright alright alright alright

 :-\I now know that fire does not light up the area at night.

What does ???



What kind of reply is this?  Several people have been kind enough to try to help you and you act like they are wasting your time.  Not only that, you didn't even fully read what they had to say.  You need to learn to be more appreciative.

Some people  ::)