Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Vehicles Jet_Pack_Script  

Jet_Pack_Script

Jet Pack Script.lsl

Category: Vehicles
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Jet_Pack_Script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Jet_Pack_Script_1.lsl
1
2 1// remove this number for the script to work.
3
4 integer moving = FALSE;
5 integer flying = FALSE;
6
7 default
8 {
9 attach(key on)
10 {
11 if(on != NULL_KEY)
12 {
13 llLoopSound("boom", 1.0);
14 moving = TRUE;
16
18 {
20 }
21 else
22 {
24 llSetTimerEvent(0.5);
25 }
26 }
27 else
28 {
29 moving = FALSE;
32 llSetTimerEvent(0.0);
33 }
34 }
35
36 timer()
37 {
39 {
40 if(flying == FALSE)
41 {
42
43
44 vector I_start_color = <1,1,1>;
45 vector I_end_color = <0.5,0,0.2>;
46
47 float I_start_alpha = 0.0;
48 float I_end_alpha = 1.0;
49
50 vector I_start_scale = <0.3,0.3,0.0>;
51 vector I_end_scale = <0,0,0>;
52
53 float I_particle_age = 1.5;
54
55 float I_inner_angle = PI;
56 float I_outer_angle = PI;
57 vector I_spin_speed = <0.0,0.0,0.0>;
58
59 vector I_particle_accel = <0.0,0.0,0.0>;
60
61 float I_burst_rate = 0.1;
62 integer I_burst_count = 50;
63 float I_burst_radius = 0.05;
64 float I_min_speed = 0.1;
65 float I_max_speed = 0.65;
66
67 float I_source_age = 0.0; // 0.0 = forever
68
69 string I_particle_texture = "particle_glowWhite2"; //if not defined, the default particle
70
71 key I_target; //the target of your particles if they use a follow mask
72
73
78
81
83
84
85 PSYS_PART_START_COLOR, I_start_color,
86 PSYS_PART_END_COLOR, I_end_color,
87
88
89
90 PSYS_PART_START_SCALE, I_start_scale,
91 PSYS_PART_END_SCALE, I_end_scale,
92
93 PSYS_PART_MAX_AGE, I_particle_age,
94
95
97 PSYS_SRC_PATTERN_ANGLE_CONE,
98
99 PSYS_SRC_INNERANGLE, I_inner_angle,
100 PSYS_SRC_OUTERANGLE, I_outer_angle,
101 PSYS_SRC_OMEGA, I_spin_speed,
102
103 PSYS_SRC_ACCEL, I_particle_accel,
104
105 PSYS_SRC_TEXTURE, I_particle_texture,
106
107 PSYS_SRC_BURST_RATE, I_burst_rate,
108 PSYS_SRC_BURST_PART_COUNT, I_burst_count,
109 PSYS_SRC_BURST_RADIUS, I_burst_radius,
110 PSYS_SRC_BURST_SPEED_MIN, I_min_speed,
111 PSYS_SRC_BURST_SPEED_MAX, I_max_speed,
112
113 PSYS_SRC_MAX_AGE, I_source_age
114 ]);
115 }
116
117 flying = TRUE;
118 llMessageLinked(LINK_SET, 0, "fly", "");
119 //..................IDLE...............................
120
121 }
122 else
123 {
124 flying = FALSE;
125 llMessageLinked(LINK_SET, 0, "nofly", "");
127 }
128 }
129
130
131
133 {
134 if(perm)
135 {
137 llSetTimerEvent(0.1);
138 }
139 }
140
141 control(key owner, integer level, integer edge)
142 {
143 if(flying)
144 { // Look for the jump key going down for the first time.
145 if(!(level & CONTROL_FWD))
146 {
147 llMessageLinked(LINK_SET, FALSE, "stop", "");
148
149
150 //..................IDLE...............................
151
152
153 vector I_start_color = <1,1,1>;
154 vector I_end_color = <0.5,0,0.2>;
155
156 float I_start_alpha = 0.0;
157 float I_end_alpha = 1.0;
158
159 vector I_start_scale = <0.3,0.3,0.0>;
160 vector I_end_scale = <0,0,0>;
161
162 float I_particle_age = 1.5;
163
164 float I_inner_angle = PI;
165 float I_outer_angle = PI;
166 vector I_spin_speed = <0.0,0.0,0.0>;
167
168 vector I_particle_accel = <0.0,0.0,0.0>;
169
170 float I_burst_rate = 0.1;
171 integer I_burst_count = 50;
172 float I_burst_radius = 0.05;
173 float I_min_speed = 0.1;
174 float I_max_speed = 0.65;
175
176 float I_source_age = 0.0; // 0.0 = forever
177
178 string I_particle_texture = "particle_glowWhite2"; //if not defined, the default particle
179
180 key I_target; //the target of your particles if they use a follow mask
181
182
187
190
192
193
194 PSYS_PART_START_COLOR, I_start_color,
195 PSYS_PART_END_COLOR, I_end_color,
196
197
198
199 PSYS_PART_START_SCALE, I_start_scale,
200 PSYS_PART_END_SCALE, I_end_scale,
201
202 PSYS_PART_MAX_AGE, I_particle_age,
203
204
206 PSYS_SRC_PATTERN_ANGLE_CONE,
207
208 PSYS_SRC_INNERANGLE, I_inner_angle,
209 PSYS_SRC_OUTERANGLE, I_outer_angle,
210 PSYS_SRC_OMEGA, I_spin_speed,
211
212 PSYS_SRC_ACCEL, I_particle_accel,
213
214 PSYS_SRC_TEXTURE, I_particle_texture,
215
216 PSYS_SRC_BURST_RATE, I_burst_rate,
217 PSYS_SRC_BURST_PART_COUNT, I_burst_count,
218 PSYS_SRC_BURST_RADIUS, I_burst_radius,
219 PSYS_SRC_BURST_SPEED_MIN, I_min_speed,
220 PSYS_SRC_BURST_SPEED_MAX, I_max_speed,
221
222 PSYS_SRC_MAX_AGE, I_source_age
223 ]);
224
225 }
226 else
227 {
228
229 llMessageLinked(LINK_SET, TRUE, "burst", "");
230 vector start_color = <1,1,1>;
231 vector end_color = <0.65,0.3,0.0>;
232
233 float start_alpha = 1.0;
234 float end_alpha = 0.0;
235
236 vector start_scale = <0.25,0.25,0.0>;
237 vector end_scale = <0.1,0.1,0.0>; //scale (z is ignored)
238
239 float particle_age = 2.5;
240
241 float inner_angle = PI;
242 float outer_angle = PI;
243 vector spin_speed = <0.0,0.0,0.0>;
244 vector particle_accel = <0.0,0.0,0.0>;
245
246 float burst_rate = 0.01;
247 integer burst_count = 20;
248 float burst_radius = 0.1;
249 float min_speed = 1;
250 float max_speed = 1.5;
251
252 float source_age = 0.0; // 0.0 = forever
253
254 string particle_texture = "particle_glowOrange4";
255
256 key target;
257
258
259 {
260
261 {
262
274
275 PSYS_PART_START_COLOR, start_color,
276 PSYS_PART_END_COLOR, end_color,
277
278 PSYS_PART_START_ALPHA, start_alpha,
279 PSYS_PART_END_ALPHA, end_alpha,
280
281 PSYS_PART_START_SCALE, start_scale,
282 PSYS_PART_END_SCALE, end_scale,
283
284 PSYS_PART_MAX_AGE, particle_age,
285
286
288 //PSYS_SRC_PATTERN_DROP,
289 //PSYS_SRC_PATTERN_EXPLODE,
290 //PSYS_SRC_PATTERN_ANGLE,
291 PSYS_SRC_PATTERN_ANGLE_CONE,
292
293 PSYS_SRC_INNERANGLE, inner_angle,
294 PSYS_SRC_OUTERANGLE, outer_angle,
295 PSYS_SRC_OMEGA, spin_speed,
296
297 // PSYS_SRC_ACCEL, particle_accel,
298
299 PSYS_SRC_TEXTURE, particle_texture,
300
301 PSYS_SRC_BURST_RATE, burst_rate,
302 PSYS_SRC_BURST_PART_COUNT, burst_count,
303 PSYS_SRC_BURST_RADIUS, burst_radius,
304 PSYS_SRC_BURST_SPEED_MIN, min_speed,
305 PSYS_SRC_BURST_SPEED_MAX, max_speed,
306
307 PSYS_SRC_MAX_AGE, source_age//,
308
309 //PSYS_SRC_TARGET_KEY, target
310
311 ]);
312
313 }}
314
315 }
316
317
318
319
320
321 }
322 }
323 }
324 // END //

Back to the Best Free Tools in Second Life and OpenSim.