Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Particles Hot_Food_Steamming_Mist  

Hot_Food_Steamming_Mist

Hot Food Steamming Mist.lsl

Category: Particles
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Hot_Food_Steamming_Mist
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Hot_Food_Steamming_Mist_1.lsl
1
2 integer active = TRUE;
3
4
5 // Particle System 1.0
6
7
8
9
10 StartSteam()
11 {
12 // MASK FLAGS: set to "TRUE" to enable
13 integer glow = TRUE; // Makes the particles glow
14 integer bounce = FALSE; // Make particles bounce on Z plane of objects
15 integer interpColor = TRUE; // Color - from start value to end value
16 integer interpSize = TRUE; // Size - from start value to end value
17 integer wind = FALSE; // Particles effected by wind
18 integer followSource = FALSE; // Particles follow the source
19 integer followVel = TRUE; // Particles turn to velocity direction
20
21
22
23 // Choose a pattern from the following:
24 // PSYS_SRC_PATTERN_EXPLODE
25 //PSYS_SRC_PATTERN_DROP
26 // PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY
27 // PSYS_SRC_PATTERN_ANGLE_CONE
28 // PSYS_SRC_PATTERN_ANGLE
29 integer pattern = PSYS_SRC_PATTERN_ANGLE_CONE;
30
31 // Select a target for particles to go towards
32 // "" for no target, "owner" will follow object owner
33 // and "self" will target this object
34 // or put the key of an object for particles to go to
35 key target;
36
37
38 // Particle paramaters
39
40 float age = 10; // Life of each particle
41 float maxSpeed = 1.05; // Max speed each particle is spit out at
42 float minSpeed = 0.2; // Min speed each particle is spit out at
43 string texture = "Water Particle - Mist"; // Texture used for particles, default used if blank
44 float startAlpha = .25; // Start alpha (transparency) value
45 float endAlpha = 0.2; // End alpha (transparency) value
46 vector startColor = <.0,1.99,.0>; // Start color of particles <R,G,B>
47 vector endColor = <.0,1.99,.0>; // End color of particles <R,G,B> (if interpColor == TRUE)
48 vector startSize = <1.1, 1.1, 1.1>; // Start size of particles
49 vector endSize = <.7,.7,.7>; // End size of particles (if interpSize == TRUE)
50 vector push = <0,0,0.1>; // Force pushed on particles
51
52 // System paramaters
53
54 float rate = 0.3; // How fast (rate) to emit particles
55 float radius = .05; // Radius to emit particles for BURST pattern
56 integer count = 20; // How many particles to emit per BURST
57 float outerAngle = 0.1; // Outer angle for all ANGLE patterns
58 float innerAngle = 0.65; // Inner angle for all ANGLE patterns
59 vector omega = <0,0,0>; // Rotation of ANGLE patterns around the source
60 float life = 0; // Life in seconds for the system to make particles
61
62 // Script variables
63
64 integer flags;
65
66
67 flags = 0;
68 if(target == "owner") target = llGetOwner();
69 if(target == "self") target = llGetKey();
70 if(glow) flags = flags | PSYS_PART_EMISSIVE_MASK;
71 if(bounce) flags = flags | PSYS_PART_BOUNCE_MASK;
72 if(interpColor) flags = flags | PSYS_PART_INTERP_COLOR_MASK;
73 if(interpSize) flags = flags | PSYS_PART_INTERP_SCALE_MASK;
74 if(wind) flags = flags | PSYS_PART_WIND_MASK;
75 if(followSource) flags = flags | PSYS_PART_FOLLOW_SRC_MASK;
76 if(followVel) flags = flags | PSYS_PART_FOLLOW_VELOCITY_MASK;
77 if(target != "") flags = flags | PSYS_PART_TARGET_POS_MASK;
78
80 PSYS_PART_FLAGS,flags,
81 PSYS_PART_START_COLOR, startColor,
82 PSYS_PART_END_COLOR, endColor,
83 PSYS_PART_START_SCALE,startSize,
84 PSYS_PART_END_SCALE,endSize,
85 PSYS_SRC_PATTERN, pattern,
87 PSYS_SRC_ACCEL, push,
93 PSYS_SRC_INNERANGLE,innerAngle,
94 PSYS_SRC_OUTERANGLE,outerAngle,
95 PSYS_SRC_OMEGA, omega,
96 PSYS_SRC_MAX_AGE, life,
97 PSYS_SRC_TEXTURE, texture,
98 PSYS_PART_START_ALPHA, startAlpha,
99 PSYS_PART_END_ALPHA, endAlpha
100 ]);
101
102 }
103
104 StopSteam()
105 {
107 }
108
109
110
111 default
112 {
114 {
115 if(active == TRUE)
116 StartSteam();
117 else
118 StopSteam();
119
120 active = !active;
121
122 llOwnerSay((string)active);
123 }
124
125 }
126
127 // END //

Back to the Best Free Tools in Second Life and OpenSim.