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
Bling Bling_script  

Bling_script

Bling script.lsl

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

the Zip file

Download all files for Bling_script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Bling_script_1.lsl
1
2 // Mask Flags - set to TRUE to enable
3 integer glow = TRUE; // Make the particles glow
4 integer bounce = FALSE; // Make particles bounce on Z plan of object
5 integer interpColor = TRUE; // Go from start to end color
6 integer interpSize = TRUE; // Go from start to end size
7 integer wind = FALSE; // Particles effected by wind
8 integer followSource = FALSE; // Particles follow the source
9 integer followVel = TRUE; // Particles turn to velocity direction
10
11 // Choose a pattern from the following:
12 // PSYS_SRC_PATTERN_EXPLODE
13 // PSYS_SRC_PATTERN_DROP
14 // PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY
15 // PSYS_SRC_PATTERN_ANGLE_CONE
16 // PSYS_SRC_PATTERN_ANGLE
17 integer pattern = PSYS_SRC_PATTERN_EXPLODE;
18
19 // Select a target for particles to go towards
20 // "" for no target, "owner" will follow object owner
21 // and "self" will target this object
22 // or put the key of an object for particles to go to
23 key target = "";
24
25 // Particle paramaters
26 float age = .2; // Life of each particle
27 float maxSpeed = .1; // Max speed each particle is spit out at
28 float minSpeed = .1; // Min speed each particle is spit out at
29 string texture; // Texture used for particles, default used if blank
30 float startAlpha = 10; // Start alpha (transparency) value
31 float endAlpha = 10; // End alpha (transparency) value
32 vector startColor = <1,1,1>; // Start color of particles <R,G,B>
33 vector endColor = <1,1,1>; // End color of particles <R,G,B> (if interpColor == TRUE)
34 vector startSize = <.04,.25,.01>; // Start size of particles
35 vector endSize = <.03,.25,.01>; // End size of particles (if interpSize == TRUE)
36 vector push = <0,0,0>; // Force pushed on particles
37
38 // System paramaters
39 float rate = 5; // How fast (rate) to emit particles
40 float radius = .0; // Radius to emit particles for BURST pattern
41 integer count = 5; // How many particles to emit per BURST
42 float outerAngle = 1.54; // Outer angle for all ANGLE patterns
43 float innerAngle = 1.55; // Inner angle for all ANGLE patterns
44 vector omega = <0,0,10>; // Rotation of ANGLE patterns around the source
45 float life = 0; // Life in seconds for the system to make particles
46
47 // Script variables
48 integer flags;
49
50 updateParticles()
51 {
52 flags = 0;
53 if(target == "owner") target = llGetOwner();
54 if(target == "self") target = llGetKey();
55 if(glow) flags = flags | PSYS_PART_EMISSIVE_MASK;
56 if(bounce) flags = flags | PSYS_PART_BOUNCE_MASK;
57 if(interpColor) flags = flags | PSYS_PART_INTERP_COLOR_MASK;
58 if(interpSize) flags = flags | PSYS_PART_INTERP_SCALE_MASK;
59 if(wind) flags = flags | PSYS_PART_WIND_MASK;
60 if(followSource) flags = flags | PSYS_PART_FOLLOW_SRC_MASK;
61 if(followVel) flags = flags | PSYS_PART_FOLLOW_VELOCITY_MASK;
62 if(target != "") flags = flags | PSYS_PART_TARGET_POS_MASK;
63
65 PSYS_PART_FLAGS,flags,
66 PSYS_PART_START_COLOR, startColor,
67 PSYS_PART_END_COLOR, endColor,
68 PSYS_PART_START_SCALE,startSize,
69 PSYS_PART_END_SCALE,endSize,
70 PSYS_SRC_PATTERN, pattern,
72 PSYS_SRC_ACCEL, push,
78 PSYS_SRC_INNERANGLE,innerAngle,
79 PSYS_SRC_OUTERANGLE,outerAngle,
80 PSYS_SRC_OMEGA, omega,
81 PSYS_SRC_MAX_AGE, life,
82 PSYS_SRC_TEXTURE, texture,
83 PSYS_PART_START_ALPHA, startAlpha,
84 PSYS_PART_END_ALPHA, endAlpha
85 ]);
86 }
87
88 default
89 {
91 {
92 updateParticles();
93 }
94 }// END //

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