Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Vorhergehende Überarbeitung | |||
— | archiv:opensim:downloads:scripts:fireworks [Unbekanntes Datum] (aktuell) – Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ===== Fireworks ===== | ||
+ | |||
+ | < | ||
+ | //inspired by Xah Lee (http:// | ||
+ | |||
+ | |||
+ | default | ||
+ | { | ||
+ | state_entry() { | ||
+ | llListen(0, "", | ||
+ | } | ||
+ | listen(integer channel, string name, key id, string message) { | ||
+ | if (message == " | ||
+ | llParticleSystem([]); | ||
+ | } | ||
+ | else { | ||
+ | if (message == " | ||
+ | integer bounce = 0; | ||
+ | integer glow = 1; | ||
+ | integer interpColor = 1; | ||
+ | integer interpSize = 1; | ||
+ | integer followSource = 0; | ||
+ | integer followVel = 1; | ||
+ | integer wind = 1; | ||
+ | integer pattern = PSYS_SRC_PATTERN_EXPLODE; | ||
+ | key target = ""; | ||
+ | float age = 9.0; | ||
+ | float maxSpeed = 3.0; | ||
+ | float minSpeed = 3.0; | ||
+ | string texture = " | ||
+ | float startAlpha = 0.9; | ||
+ | float endAlpha = 0.0; | ||
+ | float SC1 = llFrand(1.0); | ||
+ | float SC2 = llFrand(1.0); | ||
+ | float SC3 = llFrand(1.0); | ||
+ | vector startColor = < | ||
+ | vector endColor = < | ||
+ | vector startSize = < | ||
+ | vector endSize = < | ||
+ | vector push = < | ||
+ | float life = 0; | ||
+ | integer count = 100; | ||
+ | float rate = 3.5; // | ||
+ | float radius = 0.1; | ||
+ | float outerAngle = 1; | ||
+ | float innerAngle = 0.9; | ||
+ | vector omega = < | ||
+ | integer flags = 0; | ||
+ | if (target == " | ||
+ | if (target == " | ||
+ | if (glow == 1) flags = flags | PSYS_PART_EMISSIVE_MASK; | ||
+ | if (bounce == 1) flags = flags | PSYS_PART_BOUNCE_MASK; | ||
+ | if (interpColor == 1) flags = flags | PSYS_PART_INTERP_COLOR_MASK; | ||
+ | if (interpSize == 1) flags = flags | PSYS_PART_INTERP_SCALE_MASK; | ||
+ | if (wind == 1) flags = flags | PSYS_PART_WIND_MASK; | ||
+ | if (followSource == 1) flags = flags | PSYS_PART_FOLLOW_SRC_MASK; | ||
+ | if (followVel == 1) flags = flags | PSYS_PART_FOLLOW_VELOCITY_MASK; | ||
+ | if (target != "" | ||
+ | llParticleSystem([ | ||
+ | PSYS_PART_FLAGS, | ||
+ | PSYS_PART_START_COLOR, | ||
+ | PSYS_PART_END_COLOR, | ||
+ | PSYS_PART_START_SCALE, | ||
+ | PSYS_PART_END_SCALE, | ||
+ | PSYS_SRC_PATTERN, | ||
+ | PSYS_SRC_BURST_RATE, | ||
+ | PSYS_SRC_ACCEL, | ||
+ | PSYS_SRC_BURST_PART_COUNT, | ||
+ | PSYS_SRC_BURST_RADIUS, | ||
+ | PSYS_SRC_BURST_SPEED_MIN, | ||
+ | PSYS_SRC_BURST_SPEED_MAX, | ||
+ | PSYS_SRC_TARGET_KEY, | ||
+ | PSYS_SRC_INNERANGLE, | ||
+ | PSYS_SRC_OUTERANGLE, | ||
+ | PSYS_SRC_OMEGA, | ||
+ | PSYS_SRC_MAX_AGE, | ||
+ | PSYS_SRC_TEXTURE, | ||
+ | PSYS_PART_START_ALPHA, | ||
+ | PSYS_PART_END_ALPHA, | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||