Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script OPENGRID - Paticle Fire Orange
#1
Star 
OPENGRID
script a particle for osgrid or opengrid

Code:
//Fire orange
integer glow = TRUE;
integer bounce = FALSE;
integer interpColor = TRUE;
integer interpSize = TRUE;
integer wind = TRUE;
integer followSource = FALSE;
integer followVel = TRUE;

integer pattern = PSYS_SRC_PATTERN_EXPLODE;

key target = "";

float age = 3;
float maxSpeed = 0.3;
float minSpeed = 0.1;
string texture;
float startAlpha = 22.6;
float endAlpha = 0.05;
vector startColor = <.9,.4,.1>;
vector endColor = <.93,.1,.0>;
vector startSize = <.2,.6,0>;
vector endSize = <.0,.0,2>;
vector push = <0,1,3>;

float rate = 0.10;
float radius = 1.01;
integer count = 20;
float outerAngle = 0;
float innerAngle = 2.55;
vector omega = <0,0,0>;
float life = 0;

integer flags;

updateParticles() {
    flags = 0;
    if (target == "owner") target = llGetOwner();
    if (target == "self") target = llGetKey();
    if (glow) flags = flags | PSYS_PART_EMISSIVE_MASK;
    if (bounce) flags = flags | PSYS_PART_BOUNCE_MASK;
    if (interpColor) flags = flags | PSYS_PART_INTERP_COLOR_MASK;
    if (interpSize) flags = flags | PSYS_PART_INTERP_SCALE_MASK;
    if (wind) flags = flags | PSYS_PART_WIND_MASK;
    if (followSource) flags = flags | PSYS_PART_FOLLOW_SRC_MASK;
    if (followVel) flags = flags | PSYS_PART_FOLLOW_VELOCITY_MASK;
    if (target != "") flags = flags | PSYS_PART_TARGET_POS_MASK;

    llParticleSystem([  PSYS_PART_MAX_AGE,age,
                        PSYS_PART_FLAGS,flags,
                        PSYS_PART_START_COLOR, startColor,
                        PSYS_PART_END_COLOR, endColor,
                        PSYS_PART_START_SCALE,startSize,
                        PSYS_PART_END_SCALE,endSize,
                        PSYS_SRC_PATTERN, pattern,
                        PSYS_SRC_BURST_RATE,rate,
                        PSYS_SRC_ACCEL, push,
                        PSYS_SRC_BURST_PART_COUNT,count,
                        PSYS_SRC_BURST_RADIUS,radius,
                        PSYS_SRC_BURST_SPEED_MIN,minSpeed,
                        PSYS_SRC_BURST_SPEED_MAX,maxSpeed,
                        PSYS_SRC_TARGET_KEY,target,
                        PSYS_SRC_INNERANGLE,innerAngle,
                        PSYS_SRC_OUTERANGLE,outerAngle,
                        PSYS_SRC_OMEGA, omega,
                        PSYS_SRC_MAX_AGE, life,
                        PSYS_SRC_TEXTURE, texture,
                        PSYS_PART_START_ALPHA, startAlpha,
                        PSYS_PART_END_ALPHA, endAlpha
                            ]);
}

default {
    state_entry() {
        updateParticles();
    }
}
Reply
#2
Thanks for the great share!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  script Opengrid - avatar key and name speaker trainz 1 830 12-14-2011, 05:21 AM
Last Post: Anarchist_Labs
Photo Script Opensim - Texture Carte Map trainz 1 825 12-14-2011, 05:18 AM
Last Post: Anarchist_Labs
  Script Opensim - Texture UUID trainz 0 759 11-05-2011, 08:59 PM
Last Post: trainz
Brick Script opengrid - sim info trainz 0 712 11-05-2011, 08:31 PM
Last Post: trainz
Lightbulb Script Opensim - Door Rot90° trainz 0 717 11-05-2011, 08:26 PM
Last Post: trainz
Lightbulb Script opengrid - Door with password trainz 0 676 11-05-2011, 08:02 PM
Last Post: trainz
Bug script opengrid - Land info script trainz 0 686 11-05-2011, 07:54 PM
Last Post: trainz
  Script Opengrid - Group inviter trainz 0 659 11-05-2011, 07:41 PM
Last Post: trainz
Music Script Opengrid - Parcel Audio System trainz 0 495 11-05-2011, 07:30 PM
Last Post: trainz
Rainbow Script Opengrid - Teleport collision trainz 0 495 11-05-2011, 12:44 PM
Last Post: trainz



Users browsing this thread: 1 Guest(s)