Join us in Phaze Demesnes

LSL Script Library Home   Add a script Show All
Category: Contributor: Description
Bling Stormy Roentgren AmythistBLinG.lsl
Amythyst Bling particles
AmythistBLinG.lsl

Download this script - Please use this link to get this script. If you see all the code on one long line, please use Wordpad or another editor, such as LSLEdit.exe. The .LSL file you will download is an ordinary text file.

1 // CATEGORY:Bling
2 // DESCRIPTION:Amythyst Bling particles
3 // ARCHIVED BY:Ferd Frederix
4
5 //BLING PARTICLES FOR BLINGY JEWELS AND STUFF Adapted by Stormy Roentgren
6
7 //For those not knowing how to alter particle scripts, the parameters you'll want to alter here (if you choose to) are the "float rate" and the start and end sizes.
8
9
10 // Particle Script 0.3
11 // Created by Ama Omega
12 // 10-10-2003
13
14 // Mask Flags - set to TRUE to enable
15 integer glow = TRUE; // Make the particles glow
16 integer bounce = FALSE; // Make particles bounce on Z plan of object
17 integer interpColor = TRUE; // Go from start to end color
18 integer interpSize = TRUE; // Go from start to end size
19 integer wind = FALSE; // Particles effected by wind
20 integer followSource = FALSE; // Particles follow the source
21 integer followVel = TRUE; // Particles turn to velocity direction
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_EXPLODE;
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 // Particle paramaters
38 float age = .2; // Life of each particle
39 float maxSpeed = .1; // Max speed each particle is spit out at
40 float minSpeed = .1; // Min speed each particle is spit out at
41 string texture = "e520bbda-c76f-331c-2f7a-d211994b348a"; // Texture used for particles, default used if blank
42 float startAlpha = 10; // Start alpha (transparency) value
43 float endAlpha = 10; // End alpha (transparency) value
44 vector startColor = <1,1,1>; // Start color of particles <R,G,B>
45 vector endColor = <1,1,1>; // End color of particles <R,G,B> (if interpColor == TRUE)
46 vector startSize = <.04,.25,.01>; // Start size of particles
47 vector endSize = <.03,.25,.01>; // End size of particles (if interpSize == TRUE)
48 vector push = <0,0,0>; // Force pushed on particles
49
50 // System paramaters
51 float rate = 5; // How fast (rate) to emit particles
52 float radius = .0; // Radius to emit particles for BURST pattern
53 integer count = 5; // How many particles to emit per BURST
54 float outerAngle = 1.54; // Outer angle for all ANGLE patterns
55 float innerAngle = 1.55; // Inner angle for all ANGLE patterns
56 vector omega = <0,0,10>; // Rotation of ANGLE patterns around the source
57 float life = 0; // Life in seconds for the system to make particles
58
59 // Script variables
60 integer flags;
61
62 updateParticles()
63 {
64 flags = 0;
65 if (target == "owner") target = llGetOwner();
66 if (target == "self") target = llGetKey();
67 if (glow) flags = flags | PSYS_PART_EMISSIVE_MASK;
68 if (bounce) flags = flags | PSYS_PART_BOUNCE_MASK;
69 if (interpColor) flags = flags | PSYS_PART_INTERP_COLOR_MASK;
70 if (interpSize) flags = flags | PSYS_PART_INTERP_SCALE_MASK;
71 if (wind) flags = flags | PSYS_PART_WIND_MASK;
72 if (followSource) flags = flags | PSYS_PART_FOLLOW_SRC_MASK;
73 if (followVel) flags = flags | PSYS_PART_FOLLOW_VELOCITY_MASK;
74 if (target != "") flags = flags | PSYS_PART_TARGET_POS_MASK;
75
77 PSYS_PART_FLAGS,flags,
78 PSYS_PART_START_COLOR, startColor,
79 PSYS_PART_END_COLOR, endColor,
80 PSYS_PART_START_SCALE,startSize,
81 PSYS_PART_END_SCALE,endSize,
82 PSYS_SRC_PATTERN, pattern,
84 PSYS_SRC_ACCEL, push,
90 PSYS_SRC_INNERANGLE,innerAngle,
91 PSYS_SRC_OUTERANGLE,outerAngle,
92 PSYS_SRC_OMEGA, omega,
93 PSYS_SRC_MAX_AGE, life,
94 PSYS_SRC_TEXTURE, texture,
95 PSYS_PART_START_ALPHA, startAlpha,
96 PSYS_PART_END_ALPHA, endAlpha
97 ]);
98 }
99
100 default
101 {
103 {
104 updateParticles();
105 }
106 }// END //