zzzz

Join us in Phaze Demesnes or follow us:

Home   Show All
Category: Contributor: Creator
Blink Small_Golden_disk_bling  

Small_Golden_disk_bling

Small Golden disk bling.lsl

Category: Blink
By : Stormy Roentgren
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life + OpenSim

the Zip file

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