Home |
Add a script
|
||
|---|---|---|---|
| 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 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> 46 vector startSize = <.04,.25,.01>; // Start size of particles 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 76 llParticleSystem([ PSYS_PART_MAX_AGE,age, 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, 83 PSYS_SRC_BURST_RATE,rate, 84 PSYS_SRC_ACCEL, push, 85 PSYS_SRC_BURST_PART_COUNT,count, 86 PSYS_SRC_BURST_RADIUS,radius, 87 PSYS_SRC_BURST_SPEED_MIN,minSpeed, 88 PSYS_SRC_BURST_SPEED_MAX,maxSpeed, 89 PSYS_SRC_TARGET_KEY,target, 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 default101 {102 state_entry()103 {104 updateParticles();105 }106 }// END //