Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
effectinfo.inc
Go to the documentation of this file.
1// docs: https://www.quakewiki.net/darkplaces-wiki/effectinfo-scripting-reference/
2// use `cl_particles_reloadeffects` to reload effects without restarting engine
3// use `chase_active 1` and `cl_lockview 1` to see effects from different perspectives
4// `dumpeffectinfo` currently doesn't work so edit effectinfo.txt manually, just try to keep the files in sync
5// always add new effects to the bottom of the list
6
7// `tex` are indices into particles/particlefont.tga (see particles/particlefont-template.tga for numbers)
8// the first index is inclusive, second exclusive (so `tex 0 8` will use images 0 though 7)
9// unless they're equal (`tex 69 69` is the same as `tex 69 70`)
10
11// item respawn effect
13// flare particle and light
15 MY(alpha_min) = 128;
16 MY(alpha_max) = 128;
17 MY(alpha_fade) = 128;
18 MY(color_min) = "0x63F2EA";
19 MY(color_max) = "0x63f2EA";
20 MY(countabsolute) = 1;
21 MY(lightcolor) = '0.4 0.9 0.9';
22 MY(lightradiusfade) = 200;
23 MY(lightradius) = 200;
24 MY(size_min) = 20;
25 MY(size_max) = 20;
26 MY(type) = "static";
27}
28// cloud of particles which expand rapidly and then slow to form a ball
30 MY(airfriction) = 2;
31 MY(alpha_min) = 64;
32 MY(alpha_max) = 64;
33 MY(alpha_fade) = 64;
34 MY(color_min) = "0x63F2EA";
35 MY(color_max) = "0x63f2EA";
36 MY(count) = 50;
37 MY(liquidfriction) = 2;
38 MY(originjitter) = '16.0 16.0 16.0';
39 MY(size_min) = 2;
40 MY(size_max) = 2;
41 MY(type) = "static";
42 MY(velocityjitter) = '32.0 32.0 32.0';
43}
44
45// laser impact
47// decal
49 MY(alpha_min) = 256;
50 MY(alpha_max) = 256;
51 MY(countabsolute) = 1;
52 MY(lightcolor) = '4.0 0.2 0.2';
53 MY(lightradiusfade) = 1000;
54 MY(lightradius) = 200;
55 MY(originjitter) = '16.0 16.0 16.0';
56 MY(size_min) = 24;
57 MY(size_max) = 24;
58 MY(tex_min) = 47;
59 MY(tex_max) = 47;
60 MY(type) = "decal";
61}
62// flare effect
64 MY(alpha_min) = 256;
65 MY(alpha_max) = 256;
66 MY(alpha_fade) = 1024;
67 MY(color_min) = "0xFF2010";
68 MY(color_max) = "0xFF2010";
69 MY(countabsolute) = 1;
70 MY(size_min) = 24;
71 MY(size_max) = 24;
72 MY(tex_min) = 39;
73 MY(tex_max) = 39;
74 MY(type) = "static";
75}
76// sparks that rapidly expand and rapidly slow down to form an interesting spherical effect
78 MY(airfriction) = 6;
79 MY(alpha_min) = 256;
80 MY(alpha_max) = 256;
81 MY(alpha_fade) = 1024;
82 MY(color_min) = "0x800000";
83 MY(color_max) = "0xFF8020";
84 MY(count) = 128;
85 MY(liquidfriction) = 6;
86 MY(size_min) = 4;
87 MY(size_max) = 4;
88 MY(type) = "spark";
89 MY(velocityjitter) = '256.0 256.0 256.0';
90}
91
92// machinegun bullet impact
94// bullet impact decal
96 MY(alpha_min) = 256;
97 MY(alpha_max) = 256;
98 MY(countabsolute) = 1;
99 MY(originjitter) = '6.0 6.0 6.0';
100 MY(size_min) = 5;
101 MY(size_max) = 5;
102 MY(tex_min) = 56;
103 MY(tex_max) = 59;
104 MY(type) = "decal";
105}
106// dust/smoke drifting away from the impact
107SUB(TE_SPIKE) {
108 MY(alpha_min) = 255;
109 MY(alpha_max) = 255;
110 MY(alpha_fade) = 256;
111 MY(color_min) = "0x101010";
112 MY(color_max) = "0x101010";
113 MY(count) = 4;
114 MY(sizeincrease) = 3;
115 MY(size_min) = 3;
116 MY(size_max) = 3;
117 MY(tex_max) = 8;
118 MY(type) = "smoke";
119 MY(velocityjitter) = '8.0 8.0 8.0';
120}
121// dust/smoke staying at the impact
122SUB(TE_SPIKE) {
123 MY(alpha_min) = 255;
124 MY(alpha_max) = 255;
125 MY(alpha_fade) = 128;
126 MY(color_min) = "0x505050";
127 MY(color_max) = "0x505050";
128 MY(count) = 0.500000;
129 MY(sizeincrease) = 4;
130 MY(size_min) = 4;
131 MY(size_max) = 4;
132 MY(tex_max) = 8;
133 MY(type) = "smoke";
134}
135// bouncing sparks
136SUB(TE_SPIKE) {
137 MY(alpha_max) = 256;
138 MY(alpha_fade) = 256;
139 MY(bounce) = 1.500000;
140 MY(color_min) = "0x8f4333";
141 MY(color_max) = "0xfff31b";
142 MY(count) = 10;
143 MY(gravity) = 1;
144 MY(size_min) = 0.400000;
145 MY(size_max) = 0.400000;
146 MY(type) = "spark";
147 MY(velocityjitter) = '64.0 64.0 64.0';
148 MY(velocityoffset) = '0.0 0.0 80.0';
149}
150
151// electro combo explosion
153// decal
155 MY(alpha_min) = 256;
156 MY(alpha_max) = 256;
157 MY(countabsolute) = 1;
158 MY(lightcolor) = '2.0 2.5 3.0';
159 MY(lightradiusfade) = 200;
160 MY(lightradius) = 400;
161 MY(originjitter) = '34.0 34.0 34.0';
162 MY(size_min) = 64;
163 MY(size_max) = 64;
164 MY(tex_min) = 59;
165 MY(tex_max) = 59;
166 MY(type) = "decal";
167}
168// flare effect
170 MY(alpha_min) = 256;
171 MY(alpha_max) = 256;
172 MY(alpha_fade) = 128;
173 MY(color_min) = "0x80C0FF";
174 MY(color_max) = "0x80C0FF";
175 MY(countabsolute) = 1;
176 MY(size_min) = 48;
177 MY(size_max) = 48;
178 MY(tex_min) = 38;
179 MY(tex_max) = 38;
180 MY(type) = "static";
181}
182// large sparks
184 MY(airfriction) = 4;
185 MY(alpha_min) = 256;
186 MY(alpha_max) = 256;
187 MY(alpha_fade) = 256;
188 MY(bounce) = 1.500000;
189 MY(color_min) = "0x2030FF";
190 MY(color_max) = "0x80C0FF";
191 MY(count) = 10;
192 MY(liquidfriction) = 16;
193 MY(size_min) = 32;
194 MY(size_max) = 32;
195 MY(type) = "static";
196 MY(velocityjitter) = '512.0 512.0 512.0';
197}
198
199// quake effect
201// decal
203 MY(alpha_min) = 256;
204 MY(alpha_max) = 256;
205 MY(countabsolute) = 1;
206 MY(originjitter) = '6.0 6.0 6.0';
207 MY(size_min) = 3;
208 MY(size_max) = 3;
209 MY(tex_min) = 56;
210 MY(tex_max) = 59;
211 MY(type) = "decal";
212}
213// dust/smoke drifting away from the impact
215 MY(alpha_min) = 255;
216 MY(alpha_max) = 255;
217 MY(alpha_fade) = 256;
218 MY(color_min) = "0x101010";
219 MY(color_max) = "0x101010";
220 MY(count) = 4;
221 MY(sizeincrease) = 3;
222 MY(size_min) = 3;
223 MY(size_max) = 3;
224 MY(tex_max) = 8;
225 MY(type) = "smoke";
226 MY(velocityjitter) = '8.0 8.0 8.0';
227}
228// dust/smoke staying at the impact
230 MY(alpha_min) = 255;
231 MY(alpha_max) = 255;
232 MY(alpha_fade) = 128;
233 MY(color_min) = "0x505050";
234 MY(color_max) = "0x505050";
235 MY(count) = 0.500000;
236 MY(sizeincrease) = 4;
237 MY(size_min) = 4;
238 MY(size_max) = 4;
239 MY(tex_max) = 8;
240 MY(type) = "smoke";
241}
242// sparks that disappear on impact
244 MY(alpha_max) = 256;
245 MY(alpha_fade) = 768;
246 MY(bounce) = -1;
247 MY(color_min) = "0x8f4333";
248 MY(color_max) = "0xfff31b";
249 MY(count) = 15;
250 MY(gravity) = 1;
251 MY(size_min) = 0.400000;
252 MY(size_max) = 0.400000;
253 MY(type) = "spark";
254 MY(velocityjitter) = '64.0 64.0 64.0';
255 MY(velocityoffset) = '0.0 0.0 80.0';
256}
257
258// quake effect
260// decal
262 MY(alpha_min) = 256;
263 MY(alpha_max) = 256;
264 MY(countabsolute) = 1;
265 MY(lightcolor) = '0.2 0.2 1.5';
266 MY(lightradiusfade) = 500;
267 MY(lightradius) = 100;
268 MY(originjitter) = '6.0 6.0 6.0';
269 MY(size_min) = 3;
270 MY(size_max) = 3;
271 MY(tex_min) = 56;
272 MY(tex_max) = 59;
273 MY(type) = "decal";
274}
275// dust/smoke drifting away from the impact
277 MY(alpha_min) = 255;
278 MY(alpha_max) = 255;
279 MY(alpha_fade) = 256;
280 MY(color_min) = "0x101010";
281 MY(color_max) = "0x101010";
282 MY(count) = 4;
283 MY(sizeincrease) = 3;
284 MY(size_min) = 3;
285 MY(size_max) = 3;
286 MY(tex_max) = 8;
287 MY(type) = "smoke";
288 MY(velocityjitter) = '8.0 8.0 8.0';
289}
290// dust/smoke staying at the impact
292 MY(alpha_min) = 255;
293 MY(alpha_max) = 255;
294 MY(alpha_fade) = 128;
295 MY(color_min) = "0x505050";
296 MY(color_max) = "0x505050";
297 MY(count) = 0.500000;
298 MY(sizeincrease) = 4;
299 MY(size_min) = 4;
300 MY(size_max) = 4;
301 MY(tex_max) = 8;
302 MY(type) = "smoke";
303}
304// sparks that disappear on impact
306 MY(alpha_max) = 256;
307 MY(alpha_fade) = 768;
308 MY(bounce) = -1;
309 MY(color_min) = "0x8f4333";
310 MY(color_max) = "0xfff31b";
311 MY(count) = 15;
312 MY(gravity) = 1;
313 MY(size_min) = 0.400000;
314 MY(size_max) = 0.400000;
315 MY(type) = "spark";
316 MY(velocityjitter) = '64.0 64.0 64.0';
317 MY(velocityoffset) = '0.0 0.0 80.0';
318}
319
320// shotgun pellet impact
322// decal
324 MY(alpha_min) = 256;
325 MY(alpha_max) = 256;
326 MY(countabsolute) = 1;
327 MY(originjitter) = '6.0 6.0 6.0';
328 MY(size_min) = 3;
329 MY(size_max) = 3;
330 MY(tex_min) = 56;
331 MY(tex_max) = 59;
332 MY(type) = "decal";
333}
334// dust/smoke drifting away from the impact
336 MY(alpha_min) = 128;
337 MY(alpha_max) = 128;
338 MY(alpha_fade) = 64;
339 MY(color_min) = "0x101010";
340 MY(color_max) = "0x101010";
341 MY(count) = 0.800000;
342 MY(sizeincrease) = 3;
343 MY(size_min) = 3;
344 MY(size_max) = 3;
345 MY(tex_max) = 8;
346 MY(type) = "smoke";
347 MY(velocityjitter) = '8.0 8.0 8.0';
348}
349// dust/smoke staying at the impact
351 MY(alpha_min) = 128;
352 MY(alpha_max) = 128;
353 MY(alpha_fade) = 64;
354 MY(color_min) = "0x505050";
355 MY(color_max) = "0x505050";
356 MY(count) = 0.200000;
357 MY(sizeincrease) = 4;
358 MY(size_min) = 4;
359 MY(size_max) = 4;
360 MY(tex_max) = 8;
361 MY(type) = "smoke";
362}
363// bouncing sparks
365 MY(alpha_max) = 64;
366 MY(alpha_fade) = 64;
367 MY(bounce) = 1.500000;
368 MY(color_min) = "0x8f4333";
369 MY(color_max) = "0xfff31b";
370 MY(count) = 2.500000;
371 MY(gravity) = 1;
372 MY(size_min) = 0.400000;
373 MY(size_max) = 0.400000;
374 MY(type) = "spark";
375 MY(velocityjitter) = '64.0 64.0 64.0';
376 MY(velocityoffset) = '0.0 0.0 80.0';
377}
378
379// crylink impact effect
381// decal
383 MY(alpha_min) = 256;
384 MY(alpha_max) = 256;
385 MY(countabsolute) = 1;
386 MY(originjitter) = '12.0 12.0 12.0';
387 MY(size_min) = 8;
388 MY(size_max) = 8;
389 MY(tex_min) = 47;
390 MY(tex_max) = 47;
391 MY(type) = "decal";
392}
393// purple flare effect
395 MY(alpha_min) = 256;
396 MY(alpha_max) = 256;
397 MY(alpha_fade) = 512;
398 MY(color_min) = "0x504060";
399 MY(color_max) = "0x504060";
400 MY(countabsolute) = 1;
401 MY(size_min) = 8;
402 MY(size_max) = 8;
403 MY(tex_min) = 39;
404 MY(tex_max) = 39;
405 MY(type) = "static";
406}
407// purple sparks
409 MY(alpha_min) = 128;
410 MY(alpha_max) = 128;
411 MY(alpha_fade) = 384;
412 MY(bounce) = 1.500000;
413 MY(color_min) = "0xA040C0";
414 MY(color_max) = "0xFFFFFF";
415 MY(count) = 6;
416 MY(gravity) = 1;
417 MY(size_min) = 1;
418 MY(size_max) = 1;
419 MY(type) = "spark";
420 MY(velocityjitter) = '128.0 128.0 128.0';
421 MY(velocityoffset) = '0.0 0.0 80.0';
422}
423
424// mortar/hagar explosion (smaller than rocket)
426// decal
428 MY(alpha_min) = 256;
429 MY(alpha_max) = 256;
430 MY(countabsolute) = 1;
431 MY(lightcolor) = '4.0 2.0 0.5';
432 MY(lightradiusfade) = 300;
433 MY(lightradius) = 150;
434 MY(originjitter) = '40.0 40.0 40.0';
435 MY(size_min) = 48;
436 MY(size_max) = 48;
437 MY(tex_min) = 8;
438 MY(tex_max) = 16;
439 MY(type) = "decal";
440}
441// flare effect
443 MY(alpha_min) = 192;
444 MY(alpha_max) = 192;
445 MY(alpha_fade) = 64;
446 MY(color_min) = "0x404040";
447 MY(color_max) = "0x404040";
448 MY(countabsolute) = 1;
449 MY(size_min) = 48;
450 MY(size_max) = 48;
451 MY(tex_min) = 35;
452 MY(tex_max) = 37;
453 MY(type) = "static";
454}
455// fire effect which expands then slows
457 MY(airfriction) = 4;
458 MY(alpha_min) = 128;
459 MY(alpha_max) = 128;
460 MY(alpha_fade) = 256;
461 MY(bounce) = 1.500000;
462 MY(color_min) = "0x902010";
463 MY(color_max) = "0xFFD080";
464 MY(count) = 64;
465 MY(liquidfriction) = 4;
466 MY(notunderwater) = true;
467 MY(originjitter) = '8.0 8.0 8.0';
468 MY(size_min) = 16;
469 MY(size_max) = 16;
470 MY(tex_min) = 48;
471 MY(tex_max) = 55;
472 MY(type) = "static";
473 MY(velocityjitter) = '256.0 256.0 256.0';
474}
475// underwater bubbles
477 MY(alpha_min) = 128;
478 MY(alpha_max) = 256;
479 MY(alpha_fade) = 64;
480 MY(bounce) = 1.500000;
481 MY(color_min) = "0x404040";
482 MY(color_max) = "0x808080";
483 MY(count) = 16;
484 MY(gravity) = -0.125000;
485 MY(liquidfriction) = 0.250000;
486 MY(originjitter) = '16.0 16.0 16.0';
487 MY(size_min) = 3;
488 MY(size_max) = 3;
489 MY(tex_min) = 62;
490 MY(tex_max) = 62;
491 MY(type) = "bubble";
492 MY(underwater) = true;
493 MY(velocityjitter) = '96.0 96.0 96.0';
494}
495// bouncing sparks
497 MY(airfriction) = 0.200000;
498 MY(alpha_min) = 256;
499 MY(alpha_max) = 256;
500 MY(alpha_fade) = 384;
501 MY(bounce) = 1.500000;
502 MY(color_min) = "0x903010";
503 MY(color_max) = "0xFFD030";
504 MY(count) = 16;
505 MY(gravity) = 1;
506 MY(liquidfriction) = 0.800000;
507 MY(notunderwater) = true;
508 MY(size_min) = 2;
509 MY(size_max) = 2;
510 MY(type) = "spark";
511 MY(velocityjitter) = '256.0 256.0 256.0';
512 MY(velocityoffset) = '0.0 0.0 80.0';
513}
514
515// quake effect
517// decal
519 MY(alpha_min) = 256;
520 MY(alpha_max) = 256;
521 MY(countabsolute) = 1;
522 MY(lightcolor) = '4.0 2.0 8.0';
523 MY(lightradiusfade) = 700;
524 MY(lightradius) = 350;
525 MY(originjitter) = '40.0 40.0 40.0';
526 MY(size_min) = 48;
527 MY(size_max) = 48;
528 MY(tex_min) = 8;
529 MY(tex_max) = 16;
530 MY(type) = "decal";
531}
532// smoke cloud
534 MY(alpha_min) = 32;
535 MY(alpha_max) = 32;
536 MY(alpha_fade) = 64;
537 MY(color_min) = "0x202020";
538 MY(color_max) = "0x404040";
539 MY(count) = 16;
540 MY(notunderwater) = true;
541 MY(size_min) = 12;
542 MY(size_max) = 12;
543 MY(tex_max) = 8;
544 MY(type) = "smoke";
545 MY(velocityjitter) = '48.0 48.0 48.0';
546}
547// underwater bubbles
549 MY(alpha_min) = 128;
550 MY(alpha_max) = 256;
551 MY(alpha_fade) = 64;
552 MY(bounce) = 1.500000;
553 MY(color_min) = "0x404040";
554 MY(color_max) = "0x808080";
555 MY(count) = 16;
556 MY(gravity) = -0.125000;
557 MY(liquidfriction) = 0.250000;
558 MY(originjitter) = '16.0 16.0 16.0';
559 MY(size_min) = 3;
560 MY(size_max) = 3;
561 MY(tex_min) = 62;
562 MY(tex_max) = 62;
563 MY(type) = "bubble";
564 MY(underwater) = true;
565 MY(velocityjitter) = '96.0 96.0 96.0';
566}
567// sparks which go through walls
569 MY(airfriction) = 0.200000;
570 MY(alpha_max) = 256;
571 MY(alpha_fade) = 512;
572 MY(color_min) = "0x903010";
573 MY(color_max) = "0xFFD030";
574 MY(count) = 64;
575 MY(gravity) = 1;
576 MY(liquidfriction) = 0.800000;
577 MY(notunderwater) = true;
578 MY(size_min) = 1;
579 MY(size_max) = 1;
580 MY(type) = "spark";
581 MY(velocityjitter) = '256.0 256.0 256.0';
582 MY(velocityoffset) = '0.0 0.0 80.0';
583}
584
585// quake effect
587// decal
589 MY(alpha_min) = 256;
590 MY(alpha_max) = 256;
591 MY(countabsolute) = 1;
592 MY(lightcolor) = '1.6 0.8 2.0';
593 MY(lightradiusfade) = 1200;
594 MY(lightradius) = 600;
595 MY(originjitter) = '40.0 40.0 40.0';
596 MY(size_min) = 48;
597 MY(size_max) = 48;
598 MY(tex_min) = 8;
599 MY(tex_max) = 16;
600 MY(type) = "decal";
601}
602// smoke cloud
604 MY(alpha_min) = 32;
605 MY(alpha_max) = 32;
606 MY(alpha_fade) = 64;
607 MY(color_min) = "0x202020";
608 MY(color_max) = "0x404040";
609 MY(count) = 16;
610 MY(notunderwater) = true;
611 MY(size_min) = 12;
612 MY(size_max) = 12;
613 MY(tex_max) = 8;
614 MY(type) = "smoke";
615 MY(velocityjitter) = '48.0 48.0 48.0';
616}
617// underwater bubbles
619 MY(alpha_min) = 128;
620 MY(alpha_max) = 256;
621 MY(alpha_fade) = 64;
622 MY(bounce) = 1.500000;
623 MY(color_min) = "0x404040";
624 MY(color_max) = "0x808080";
625 MY(count) = 16;
626 MY(gravity) = -0.125000;
627 MY(liquidfriction) = 0.250000;
628 MY(originjitter) = '16.0 16.0 16.0';
629 MY(size_min) = 3;
630 MY(size_max) = 3;
631 MY(tex_min) = 62;
632 MY(tex_max) = 62;
633 MY(type) = "bubble";
634 MY(underwater) = true;
635 MY(velocityjitter) = '96.0 96.0 96.0';
636}
637// sparks which go through walls
639 MY(airfriction) = 0.200000;
640 MY(alpha_max) = 256;
641 MY(alpha_fade) = 512;
642 MY(color_min) = "0x903010";
643 MY(color_max) = "0xFFD030";
644 MY(count) = 64;
645 MY(gravity) = 1;
646 MY(liquidfriction) = 0.800000;
647 MY(notunderwater) = true;
648 MY(size_min) = 1;
649 MY(size_max) = 1;
650 MY(type) = "spark";
651 MY(velocityjitter) = '256.0 256.0 256.0';
652 MY(velocityoffset) = '0.0 0.0 80.0';
653}
654
655// bloody impact effect indicating damage
658 MY(airfriction) = 1;
659 MY(alpha_min) = 256;
660 MY(alpha_max) = 256;
661 MY(alpha_fade) = 64;
662 MY(bounce) = -1;
663 MY(count) = 0.167000;
664 MY(liquidfriction) = 4;
665 MY(size_min) = 8;
666 MY(size_max) = 8;
667 MY(staincolor_min) = "0x808080";
668 MY(staincolor_max) = "0x808080";
669 MY(staintex_min) = 16;
670 MY(staintex_max) = 24;
671 MY(tex_min) = 24;
672 MY(tex_max) = 32;
673 MY(type) = "blood";
674 MY(velocityjitter) = '64.0 64.0 64.0';
675 MY(velocitymultiplier) = 1;
676}
677
678// sparks (quake effect)
679DEF(TE_SPARK);
680SUB(TE_SPARK) {
681 MY(alpha_min) = 64;
682 MY(alpha_max) = 256;
683 MY(alpha_fade) = 768;
684 MY(bounce) = -1;
685 MY(color_min) = "0x8f4333";
686 MY(color_max) = "0xfff31b";
687 MY(count) = 0.500000;
688 MY(gravity) = 1;
689 MY(size_min) = 0.400000;
690 MY(size_max) = 0.600000;
691 MY(tex_min) = 40;
692 MY(tex_max) = 40;
693 MY(type) = "spark";
694 MY(velocityjitter) = '64.0 64.0 64.0';
695 MY(velocitymultiplier) = 1;
696 MY(velocityoffset) = '0.0 0.0 80.0';
697}
698
699// vortex impact
700DEF(TE_PLASMABURN);
701// decal
702SUB(TE_PLASMABURN) {
703 MY(alpha_min) = 256;
704 MY(alpha_max) = 256;
705 MY(countabsolute) = 1;
706 MY(lightcolor) = '1.0 1.0 1.0';
707 MY(lightradiusfade) = 400;
708 MY(lightradius) = 200;
709 MY(originjitter) = '16.0 16.0 16.0';
710 MY(size_min) = 24;
711 MY(size_max) = 24;
712 MY(tex_min) = 47;
713 MY(tex_max) = 47;
714 MY(type) = "decal";
715}
716// flare effect
717SUB(TE_PLASMABURN) {
718 MY(alpha_min) = 256;
719 MY(alpha_max) = 256;
720 MY(alpha_fade) = 512;
721 MY(color_min) = "0x80C0FF";
722 MY(color_max) = "0x80C0FF";
723 MY(countabsolute) = 1;
724 MY(size_min) = 8;
725 MY(size_max) = 8;
726 MY(tex_min) = 37;
727 MY(tex_max) = 37;
728 MY(type) = "static";
729}
730// small sparks which form a sphere as they slow down
731SUB(TE_PLASMABURN) {
732 MY(airfriction) = 8;
733 MY(alpha_min) = 256;
734 MY(alpha_max) = 256;
735 MY(alpha_fade) = 1024;
736 MY(bounce) = 2;
737 MY(color_min) = "0x2030FF";
738 MY(color_max) = "0x80C0FF";
739 MY(count) = 128;
740 MY(liquidfriction) = 8;
741 MY(size_min) = 1;
742 MY(size_max) = 2;
743 MY(type) = "spark";
744 MY(velocityjitter) = '128.0 128.0 128.0';
745}
746
747// quake effect
748DEF(TE_SMALLFLASH);
749SUB(TE_SMALLFLASH) {
750 MY(lightcolor) = '2.0 2.0 2.0';
751 MY(lightradiusfade) = 1000;
752 MY(lightradius) = 200;
753}
754
755// quake effect
756DEF(TE_FLAMEJET);
757SUB(TE_FLAMEJET) {
758 MY(airfriction) = 1;
759 MY(alpha_min) = 64;
760 MY(alpha_max) = 128;
761 MY(alpha_fade) = 384;
762 MY(bounce) = 1.100000;
763 MY(color_min) = "0x6f0f00";
764 MY(color_max) = "0xe3974f";
765 MY(count) = 0.500000;
766 MY(gravity) = -1;
767 MY(liquidfriction) = 4;
768 MY(size_min) = 4;
769 MY(size_max) = 4;
770 MY(type) = "smoke";
771 MY(velocityjitter) = '128.0 128.0 128.0';
772 MY(velocitymultiplier) = 1;
773}
774
775// quake effect
778 MY(alpha_min) = 256;
779 MY(alpha_max) = 256;
780 MY(alpha_fade) = 256;
781 MY(color_min) = "0x6f0f00";
782 MY(color_max) = "0xe3974f";
783 MY(count) = 32;
784 MY(gravity) = 0.050000;
785 MY(originjitter) = '128.0 128.0 32.0';
786 MY(originoffset) = '0.0 0.0 32.0';
787 MY(size_min) = 12;
788 MY(size_max) = 12;
789 MY(type) = "alphastatic";
790 MY(velocityjitter) = '128.0 128.0 0.0';
791 MY(velocityoffset) = '0.0 0.0 256.0';
792}
793
794// player teleport effect
797 MY(airfriction) = 1;
798 MY(alpha_min) = 64;
799 MY(alpha_max) = 128;
800 MY(alpha_fade) = 256;
801 MY(color_min) = "0xA0A0A0";
802 MY(color_max) = "0xFFFFFF";
803 MY(count) = 56;
804 MY(liquidfriction) = 4;
805 MY(originjitter) = '16.0 16.0 28.0';
806 MY(originoffset) = '0.0 0.0 28.0';
807 MY(size_min) = 10;
808 MY(size_max) = 10;
809 MY(type) = "static";
810 MY(velocityjitter) = '0.0 0.0 256.0';
811}
812
813// vortex beam
816 MY(alpha_min) = 128;
817 MY(alpha_max) = 128;
818 MY(alpha_fade) = 256;
819 MY(color_min) = "0xFFFFFF";
820 MY(color_max) = "0xFFFFFF";
821 MY(countabsolute) = 1;
822 MY(size_min) = 4;
823 MY(size_max) = 4;
824 MY(tex_min) = 200;
825 MY(tex_max) = 200;
826 MY(type) = "beam";
827}
828SUB(TE_TEI_G3) {
829 MY(airfriction) = -4;
830 MY(alpha_min) = 256;
831 MY(alpha_max) = 256;
832 MY(alpha_fade) = 512;
833 MY(color_min) = "0x202020";
834 MY(color_max) = "0x404040";
835 MY(size_min) = 1;
836 MY(size_max) = 1;
837 MY(trailspacing) = 4;
838 MY(type) = "smoke";
839 MY(velocityjitter) = '8.0 8.0 8.0';
840}
841
842// smoke effect
843DEF(TE_TEI_SMOKE);
844SUB(TE_TEI_SMOKE) {
845 MY(alpha_min) = 256;
846 MY(alpha_max) = 256;
847 MY(alpha_fade) = 512;
848 MY(color_min) = "0x202020";
849 MY(color_max) = "0x404040";
850 MY(count) = 0.167000;
851 MY(originjitter) = '1.5 1.5 1.5';
852 MY(size_min) = 5;
853 MY(size_max) = 5;
854 MY(tex_max) = 8;
855 MY(type) = "smoke";
856 MY(velocityjitter) = '6.0 6.0 6.0';
857 MY(velocitymultiplier) = 1;
858}
859
860// rocket explosion (bigger than mortar and hagar)
861DEF(TE_TEI_BIGEXPLOSION);
862// decal
863SUB(TE_TEI_BIGEXPLOSION) {
864 MY(alpha_min) = 256;
865 MY(alpha_max) = 256;
866 MY(countabsolute) = 1;
867 MY(lightcolor) = '4.0 2.0 0.5';
868 MY(lightradiusfade) = 500;
869 MY(lightradius) = 500;
870 MY(originjitter) = '40.0 40.0 40.0';
871 MY(size_min) = 72;
872 MY(size_max) = 72;
873 MY(tex_min) = 8;
874 MY(tex_max) = 16;
875 MY(type) = "decal";
876}
877// flare effect
878SUB(TE_TEI_BIGEXPLOSION) {
879 MY(alpha_min) = 192;
880 MY(alpha_max) = 192;
881 MY(alpha_fade) = 64;
882 MY(color_min) = "0x404040";
883 MY(color_max) = "0x404040";
884 MY(countabsolute) = 1;
885 MY(size_min) = 72;
886 MY(size_max) = 72;
887 MY(tex_min) = 35;
888 MY(tex_max) = 37;
889 MY(type) = "static";
890}
891// fire effect
892SUB(TE_TEI_BIGEXPLOSION) {
893 MY(airfriction) = 4;
894 MY(alpha_min) = 128;
895 MY(alpha_max) = 128;
896 MY(alpha_fade) = 256;
897 MY(bounce) = 1.500000;
898 MY(color_min) = "0x902010";
899 MY(color_max) = "0xFFD080";
900 MY(count) = 128;
901 MY(liquidfriction) = 4;
902 MY(notunderwater) = true;
903 MY(originjitter) = '8.0 8.0 8.0';
904 MY(size_min) = 16;
905 MY(size_max) = 16;
906 MY(tex_min) = 48;
907 MY(tex_max) = 55;
908 MY(type) = "static";
909 MY(velocityjitter) = '512.0 512.0 512.0';
910}
911// underwater bubbles
912SUB(TE_TEI_BIGEXPLOSION) {
913 MY(alpha_min) = 128;
914 MY(alpha_max) = 256;
915 MY(alpha_fade) = 64;
916 MY(bounce) = 1.500000;
917 MY(color_min) = "0x404040";
918 MY(color_max) = "0x808080";
919 MY(count) = 32;
920 MY(gravity) = -0.125000;
921 MY(liquidfriction) = 0.250000;
922 MY(originjitter) = '16.0 16.0 16.0';
923 MY(size_min) = 3;
924 MY(size_max) = 3;
925 MY(tex_min) = 62;
926 MY(tex_max) = 62;
927 MY(type) = "bubble";
928 MY(underwater) = true;
929 MY(velocityjitter) = '144.0 144.0 144.0';
930}
931// bouncing sparks
932SUB(TE_TEI_BIGEXPLOSION) {
933 MY(airfriction) = 0.200000;
934 MY(alpha_min) = 256;
935 MY(alpha_max) = 256;
936 MY(alpha_fade) = 384;
937 MY(bounce) = 1.500000;
938 MY(color_min) = "0x903010";
939 MY(color_max) = "0xFFD030";
940 MY(count) = 64;
941 MY(gravity) = 1;
942 MY(liquidfriction) = 0.800000;
943 MY(notunderwater) = true;
944 MY(size_min) = 2;
945 MY(size_max) = 2;
946 MY(type) = "spark";
947 MY(velocityjitter) = '384.0 384.0 384.0';
948 MY(velocityoffset) = '0.0 0.0 80.0';
949}
950
951// electro explosion
952DEF(TE_TEI_PLASMAHIT);
953// decal
954SUB(TE_TEI_PLASMAHIT) {
955 MY(alpha_min) = 256;
956 MY(alpha_max) = 256;
957 MY(countabsolute) = 1;
958 MY(lightcolor) = '2.4 4.8 8.0';
959 MY(lightradiusfade) = 600;
960 MY(lightradius) = 200;
961 MY(originjitter) = '20.0 20.0 20.0';
962 MY(size_min) = 32;
963 MY(size_max) = 32;
964 MY(tex_min) = 59;
965 MY(tex_max) = 59;
966 MY(type) = "decal";
967}
968// flare effect
969SUB(TE_TEI_PLASMAHIT) {
970 MY(alpha_min) = 256;
971 MY(alpha_max) = 256;
972 MY(alpha_fade) = 512;
973 MY(color_min) = "0x80C0FF";
974 MY(color_max) = "0x80C0FF";
975 MY(countabsolute) = 1;
976 MY(size_min) = 32;
977 MY(size_max) = 32;
978 MY(tex_min) = 38;
979 MY(tex_max) = 38;
980 MY(type) = "static";
981}
982// cloud of bouncing sparks
983SUB(TE_TEI_PLASMAHIT) {
984 MY(alpha_min) = 256;
985 MY(alpha_max) = 256;
986 MY(alpha_fade) = 1024;
987 MY(bounce) = 1.500000;
988 MY(color_min) = "0x2030FF";
989 MY(color_max) = "0x80C0FF";
990 MY(count) = 0.500000;
991 MY(size_min) = 2;
992 MY(size_max) = 4;
993 MY(type) = "spark";
994 MY(velocityjitter) = '512.0 512.0 512.0';
995}
996
997// bloody impact effect indicating damage
998DEF(blood);
999SUB(blood) {
1000 MY(airfriction) = 0.400000;
1001 MY(alpha_min) = 1560;
1002 MY(alpha_max) = 2560;
1003 MY(alpha_fade) = 7000;
1004 MY(blend) = "invmod";
1005 MY(bounce) = -1;
1006 MY(color_min) = "0xA8FFFF";
1007 MY(color_max) = "0xA8FFFFF";
1008 MY(count) = 0.400000;
1009 MY(sizeincrease) = 20;
1010 MY(size_min) = 5;
1011 MY(size_max) = 11;
1012 MY(staincolor_min) = "0x808080";
1013 MY(staincolor_max) = "0x808080";
1014 MY(stainsize_min) = 1;
1015 MY(stainsize_max) = 2;
1016 MY(staintex_min) = 16;
1017 MY(staintex_max) = 24;
1018 MY(stretchfactor) = 20;
1019 MY(tex_min) = 24;
1020 MY(tex_max) = 32;
1021 MY(type) = "spark";
1022 MY(velocityjitter) = '99.0 99.0 55.0';
1023}
1024//blood mist
1025SUB(blood) {
1026 MY(alpha_min) = 100;
1027 MY(alpha_max) = 256;
1028 MY(alpha_fade) = 400;
1029 MY(blend) = "invmod";
1030 MY(color_min) = "0x000000";
1031 MY(color_max) = "0x420000";
1032 MY(countabsolute) = 1;
1033 MY(originjitter) = '11.0 11.0 11.0';
1034 MY(sizeincrease) = 20;
1035 MY(size_min) = 25;
1036 MY(size_max) = 30;
1037 MY(tex_min) = 24;
1038 MY(tex_max) = 32;
1039 MY(type) = "alphastatic";
1040}
1041
1042// player teleport effect
1043DEF(teleport);
1044SUB(teleport) {
1045 MY(airfriction) = 2;
1046 MY(alpha_max) = 256;
1047 MY(alpha_fade) = 100;
1048 MY(bounce) = 1.500000;
1049 MY(color_min) = "0x807aff";
1050 MY(color_max) = "0x4463d5";
1051 MY(count) = 500;
1052 MY(originjitter) = '1.0 1.0 1.0';
1053 MY(size_min) = 1;
1054 MY(size_max) = 1;
1055 MY(stretchfactor) = 0.600000;
1056 MY(tex_min) = 64;
1057 MY(tex_max) = 64;
1058 MY(type) = "spark";
1059 MY(velocityjitter) = '1000.0 1000.0 1500.0';
1060 MY(velocitymultiplier) = 0.500000;
1061}
1062SUB(teleport) {
1063 MY(alpha_min) = 190;
1064 MY(alpha_max) = 190;
1065 MY(alpha_fade) = 180;
1066 MY(color_min) = "0x807aff";
1067 MY(color_max) = "0x4463d5";
1068 MY(countabsolute) = 1;
1069 MY(sizeincrease) = -80;
1070 MY(size_min) = 150;
1071 MY(size_max) = 150;
1072 MY(tex_min) = 65;
1073 MY(tex_max) = 65;
1074 MY(type) = "smoke";
1075}
1076
1077// normal super gory blood trail (used by gibs)
1078DEF(TR_BLOOD);
1079SUB(TR_BLOOD) {
1080 MY(airfriction) = -2;
1081 MY(alpha_min) = 384;
1082 MY(alpha_max) = 984;
1083 MY(alpha_fade) = 1492;
1084 MY(blend) = "invmod";
1085 MY(bounce) = -1;
1086 MY(color_min) = "0xA8FFFF";
1087 MY(color_max) = "0xA8FFFF";
1088 MY(gravity) = 0.400000;
1089 MY(liquidfriction) = 1;
1090 MY(sizeincrease) = -5;
1091 MY(size_min) = 4;
1092 MY(size_max) = 19;
1093 MY(staincolor_min) = "0x808080";
1094 MY(staincolor_max) = "0x808080";
1095 MY(stainsize_min) = 1;
1096 MY(stainsize_max) = 2;
1097 MY(staintex_min) = 16;
1098 MY(staintex_max) = 24;
1099 MY(stretchfactor) = 7;
1100 MY(tex_min) = 24;
1101 MY(tex_max) = 32;
1102 MY(trailspacing) = 20;
1103 MY(type) = "spark";
1104 MY(velocityjitter) = '64.0 64.0 64.0';
1105 MY(velocitymultiplier) = -0.100000;
1106}
1107// splash around gib
1108SUB(TR_BLOOD) {
1109 MY(alpha_min) = 684;
1110 MY(alpha_max) = 684;
1111 MY(alpha_fade) = 7492;
1112 MY(color_min) = "0xA8FFFF";
1113 MY(color_max) = "0xA8FFFF";
1114 MY(sizeincrease) = 500;
1115 MY(size_min) = 4;
1116 MY(size_max) = 6;
1117 MY(tex_min) = 24;
1118 MY(tex_max) = 32;
1119 MY(trailspacing) = 42;
1120 MY(type) = "blood";
1121}
1122
1123// thinner blood trail (used by quake zombies)
1124DEF(TR_SLIGHTBLOOD);
1125SUB(TR_SLIGHTBLOOD) {
1126 MY(airfriction) = 1;
1127 MY(alpha_min) = 384;
1128 MY(alpha_max) = 384;
1129 MY(alpha_fade) = 192;
1130 MY(bounce) = -1;
1131 MY(color_min) = "0xA8FFFF";
1132 MY(color_max) = "0xA8FFFF";
1133 MY(liquidfriction) = 4;
1134 MY(size_min) = 8;
1135 MY(size_max) = 8;
1136 MY(staincolor_min) = "0x808080";
1137 MY(staincolor_max) = "0x808080";
1138 MY(staintex_min) = 16;
1139 MY(staintex_max) = 24;
1140 MY(tex_min) = 24;
1141 MY(tex_max) = 32;
1142 MY(trailspacing) = 64;
1143 MY(type) = "blood";
1144 MY(velocityjitter) = '64.0 64.0 64.0';
1145 MY(velocitymultiplier) = 0.500000;
1146}
1147
1148// func_stardust effect, used in some maps to indicate teleporters
1151 MY(airfriction) = 0.200000;
1152 MY(alpha_min) = 64;
1153 MY(alpha_max) = 128;
1154 MY(alpha_fade) = 128;
1155 MY(color_min) = "0xfff368";
1156 MY(color_max) = "0xfff368";
1157 MY(count) = 37.500000;
1158 MY(gravity) = -0.100000;
1159 MY(liquidfriction) = 0.800000;
1160 MY(originjitter) = '16.0 16.0 64.0';
1161 MY(size_min) = 1;
1162 MY(size_max) = 2;
1163 MY(type) = "static";
1164 MY(velocityjitter) = '32.0 32.0 0.0';
1165}
1166
1167// flare particle and light
1168DEF(item_respawn);
1169SUB(item_respawn) {
1170 MY(alpha_min) = 128;
1171 MY(alpha_max) = 128;
1172 MY(alpha_fade) = 128;
1173 MY(color_min) = "0x63F2EA";
1174 MY(color_max) = "0x63f2EA";
1175 MY(countabsolute) = 1;
1176 MY(size_min) = 32;
1177 MY(size_max) = 32;
1178 MY(type) = "static";
1179}
1180// cloud of particles which expand rapidly and then slow to form a ball
1181SUB(item_respawn) {
1182 MY(alpha_min) = 256;
1183 MY(alpha_max) = 256;
1184 MY(alpha_fade) = 1280;
1185 MY(color_min) = "0x63F2EA";
1186 MY(color_max) = "0x63f2EA";
1187 MY(count) = 128;
1188 MY(size_min) = 2;
1189 MY(size_max) = 2;
1190 MY(tex_min) = 41;
1191 MY(tex_max) = 41;
1192 MY(type) = "spark";
1193 MY(velocityjitter) = '256.0 256.0 256.0';
1194}
1195
1196DEF(jumppad_activate);
1197SUB(jumppad_activate) {
1198 MY(lightcolor) = '2.0 2.0 2.0';
1199 MY(lightradiusfade) = 2000;
1200 MY(lightradius) = 200;
1201}
1202
1203DEF(laser_muzzleflash);
1204// glow and light
1205SUB(laser_muzzleflash) {
1206 MY(airfriction) = 10;
1207 MY(alpha_min) = 256;
1208 MY(alpha_max) = 512;
1209 MY(alpha_fade) = 6280;
1210 MY(color_min) = "0xcc0000";
1211 MY(color_max) = "0xff0000";
1212 MY(countabsolute) = 1;
1213 MY(lightcolor) = '3.0 0.1 0.1';
1214 MY(lightradiusfade) = 2000;
1215 MY(lightradius) = 200;
1216 MY(sizeincrease) = -100;
1217 MY(size_min) = 10;
1218 MY(size_max) = 15;
1219 MY(stretchfactor) = 2;
1220 MY(tex_min) = 65;
1221 MY(tex_max) = 65;
1222 MY(type) = "smoke";
1223}
1224// electricity
1225SUB(laser_muzzleflash) {
1226 MY(airfriction) = 10;
1227 MY(alpha_min) = 256;
1228 MY(alpha_max) = 512;
1229 MY(alpha_fade) = 6280;
1230 MY(color_min) = "0xb44215";
1231 MY(color_max) = "0xff0000";
1232 MY(count) = 3;
1233 MY(originjitter) = '2.0 2.0 2.0';
1234 MY(startangle_min) = -180;
1235 MY(startangle_max) = 180;
1236 MY(spin_min) = 4000;
1237 MY(spin_max) = -4000;
1238 MY(sizeincrease) = -100;
1239 MY(size_min) = 5;
1240 MY(size_max) = 7;
1241 MY(stretchfactor) = 2.300000;
1242 MY(tex_min) = 43;
1243 MY(tex_max) = 43;
1244 MY(type) = "spark";
1245 MY(velocityjitter) = '150.0 150.0 150.0';
1246 MY(velocitymultiplier) = 0.200000;
1247}
1248// fire
1249SUB(laser_muzzleflash) {
1250 MY(airfriction) = 12;
1251 MY(alpha_min) = 256;
1252 MY(alpha_max) = 512;
1253 MY(alpha_fade) = 6280;
1254 MY(color_min) = "0xff4200";
1255 MY(color_max) = "0xff0000";
1256 MY(count) = 6;
1257 MY(originjitter) = '2.0 2.0 2.0';
1258 MY(sizeincrease) = -100;
1259 MY(size_min) = 7;
1260 MY(size_max) = 9;
1261 MY(stretchfactor) = 2;
1262 MY(tex_min) = 8;
1263 MY(tex_max) = 15;
1264 MY(type) = "spark";
1265 MY(velocityjitter) = '100.0 100.0 100.0';
1266 MY(velocitymultiplier) = 0.200000;
1267}
1268
1269DEF(laser_impact);
1270// decal
1271SUB(laser_impact) {
1272 MY(alpha_min) = 256;
1273 MY(alpha_max) = 256;
1274 MY(countabsolute) = 1;
1275 MY(lightcolor) = '8.0 0.4 0.4';
1276 MY(lightradiusfade) = 500;
1277 MY(lightradius) = 200;
1278 MY(originjitter) = '14.0 14.0 14.0';
1279 MY(size_min) = 24;
1280 MY(size_max) = 24;
1281 MY(tex_min) = 47;
1282 MY(tex_max) = 47;
1283 MY(type) = "decal";
1284}
1285// flare effect
1286SUB(laser_impact) {
1287 MY(alpha_min) = 256;
1288 MY(alpha_max) = 256;
1289 MY(alpha_fade) = 1024;
1290 MY(color_min) = "0xFF2010";
1291 MY(color_max) = "0xFF2010";
1292 MY(countabsolute) = 1;
1293 MY(size_min) = 24;
1294 MY(size_max) = 24;
1295 MY(tex_min) = 39;
1296 MY(tex_max) = 39;
1297 MY(type) = "static";
1298}
1299// sparks that rapidly expand and rapidly slow down to form an interesting spherical effect
1300SUB(laser_impact) {
1301 MY(airfriction) = 6;
1302 MY(alpha_min) = 256;
1303 MY(alpha_max) = 256;
1304 MY(alpha_fade) = 1024;
1305 MY(color_min) = "0x800000";
1306 MY(color_max) = "0xFF8020";
1307 MY(count) = 128;
1308 MY(liquidfriction) = 6;
1309 MY(size_min) = 4;
1310 MY(size_max) = 4;
1311 MY(type) = "spark";
1312 MY(velocityjitter) = '256.0 256.0 256.0';
1313}
1314SUB(laser_impact) {
1315 MY(alpha_min) = 128;
1316 MY(alpha_max) = 256;
1317 MY(alpha_fade) = 256;
1318 MY(color_min) = "0x800000";
1319 MY(color_max) = "0xFF8020";
1320 MY(count) = 4;
1321 MY(originjitter) = '1.0 1.0 1.0';
1322 MY(sizeincrease) = 6;
1323 MY(size_min) = 12;
1324 MY(size_max) = 12;
1325 MY(tex_min) = 48;
1326 MY(tex_max) = 55;
1327 MY(type) = "smoke";
1328 MY(velocityjitter) = '16.0 16.0 16.0';
1329 MY(velocitymultiplier) = 0.010000;
1330}
1331
1332DEF(shotgun_muzzleflash);
1333SUB(shotgun_muzzleflash) {
1334 MY(alpha_min) = 256;
1335 MY(alpha_max) = 256;
1336 MY(alpha_fade) = 512;
1337 MY(color_min) = "0x202020";
1338 MY(color_max) = "0x404040";
1339 MY(count) = 1.500000;
1340 MY(lightcolor) = '2.0 1.5 0.2';
1341 MY(lightradiusfade) = 2000;
1342 MY(lightradius) = 200;
1343 MY(originjitter) = '1.5 1.5 1.5';
1344 MY(sizeincrease) = 12;
1345 MY(size_min) = 5;
1346 MY(size_max) = 5;
1347 MY(tex_max) = 8;
1348 MY(type) = "smoke";
1349 MY(velocityjitter) = '6.0 6.0 6.0';
1350 MY(velocitymultiplier) = 0.050000;
1351}
1352SUB(shotgun_muzzleflash) {
1353 MY(airfriction) = 5;
1354 MY(alpha_max) = 128;
1355 MY(alpha_fade) = 1024;
1356 MY(color_min) = "0xffdb96";
1357 MY(color_max) = "0xff5400";
1358 MY(count) = 16;
1359 MY(originjitter) = '1.0 1.0 1.0';
1360 MY(size_min) = 10;
1361 MY(size_max) = 20;
1362 MY(stretchfactor) = 2.500000;
1363 MY(tex_min) = 48;
1364 MY(tex_max) = 55;
1365 MY(type) = "spark";
1366 MY(velocityjitter) = '100.0 100.0 100.0';
1367 MY(velocitymultiplier) = 0.500000;
1368}
1369
1370// shotgun pellet impact
1371DEF(shotgun_impact);
1372// decal
1373SUB(shotgun_impact) {
1374 MY(alpha_min) = 256;
1375 MY(alpha_max) = 256;
1376 MY(countabsolute) = 1;
1377 MY(originjitter) = '10.0 10.0 10.0';
1378 MY(size_min) = 5;
1379 MY(size_max) = 8;
1380 MY(tex_min) = 56;
1381 MY(tex_max) = 59;
1382 MY(type) = "decal";
1383}
1384// dust/smoke drifting away from the impact
1385SUB(shotgun_impact) {
1386 MY(airfriction) = 5;
1387 MY(alpha_min) = 300;
1388 MY(alpha_max) = 550;
1389 MY(alpha_fade) = 756;
1390 MY(color_min) = "0x473a37";
1391 MY(color_max) = "0x0b0a07";
1392 MY(count) = 1;
1393 MY(notunderwater) = true;
1394 MY(startangle_max) = 360;
1395 MY(spin_min) = -50;
1396 MY(spin_max) = 50;
1397 MY(sizeincrease) = 25;
1398 MY(size_min) = 10;
1399 MY(size_max) = 20;
1400 MY(tex_max) = 8;
1401 MY(type) = "alphastatic";
1402 MY(velocityjitter) = '150.0 150.0 150.0';
1403 MY(velocitymultiplier) = 0.200000;
1404}
1405// dust/smoke staying at the impact
1406SUB(shotgun_impact) {
1407 MY(airfriction) = 5;
1408 MY(alpha_min) = 200;
1409 MY(alpha_max) = 350;
1410 MY(alpha_fade) = 500;
1411 MY(bounce) = 6;
1412 MY(color_min) = "0x201d1a";
1413 MY(color_max) = "0x000000";
1414 MY(count) = 0.200000;
1415 MY(notunderwater) = true;
1416 MY(startangle_max) = 360;
1417 MY(spin_min) = -50;
1418 MY(spin_max) = 50;
1419 MY(sizeincrease) = 74;
1420 MY(size_min) = 10;
1421 MY(size_max) = 11;
1422 MY(tex_min) = 36;
1423 MY(tex_max) = 36;
1424 MY(type) = "alphastatic";
1425 MY(velocityjitter) = '11.0 11.0 11.0';
1426 MY(velocitymultiplier) = 0.030000;
1427}
1428// sparks
1429SUB(shotgun_impact) {
1430 MY(airfriction) = 1.100000;
1431 MY(alpha_max) = 356;
1432 MY(alpha_fade) = 268;
1433 MY(bounce) = 1.500000;
1434 MY(color_min) = "0xFDFFD9";
1435 MY(color_max) = "0xFDFFD9";
1436 MY(count) = 0.500000;
1437 MY(gravity) = 1;
1438 MY(notunderwater) = true;
1439 MY(originjitter) = '1.0 1.0 1.0';
1440 MY(size_min) = 0.600000;
1441 MY(size_max) = 0.600000;
1442 MY(tex_min) = 40;
1443 MY(tex_max) = 40;
1444 MY(type) = "spark";
1445 MY(velocityjitter) = '200.0 200.0 200.0';
1446 MY(velocitymultiplier) = 0.200000;
1447}
1448
1449DEF(uzi_muzzleflash);
1450SUB(uzi_muzzleflash) {
1451 MY(alpha_min) = 256;
1452 MY(alpha_max) = 256;
1453 MY(alpha_fade) = 512;
1454 MY(color_min) = "0x202020";
1455 MY(color_max) = "0x404040";
1456 MY(count) = 1;
1457 MY(gravity) = -0.100000;
1458 MY(lightcolor) = '2.0 1.5 0.2';
1459 MY(lightradiusfade) = 2000;
1460 MY(lightradius) = 200;
1461 MY(originjitter) = '1.5 1.5 1.5';
1462 MY(size_min) = 5;
1463 MY(size_max) = 5;
1464 MY(tex_max) = 8;
1465 MY(type) = "static";
1466 MY(velocityjitter) = '1.0 1.0 1.0';
1467 MY(velocitymultiplier) = 0.030000;
1468}
1469SUB(uzi_muzzleflash) {
1470 MY(airfriction) = 12;
1471 MY(alpha_max) = 256;
1472 MY(alpha_fade) = 6000;
1473 MY(color_min) = "0xff9c00";
1474 MY(color_max) = "0xffd200";
1475 MY(count) = 3;
1476 MY(originjitter) = '1.0 1.0 1.0';
1477 MY(size_min) = 0.300000;
1478 MY(size_max) = 0.400000;
1479 MY(stretchfactor) = 0.150000;
1480 MY(tex_min) = 40;
1481 MY(tex_max) = 40;
1482 MY(type) = "spark";
1483 MY(velocityjitter) = '555.0 555.0 555.0';
1484 MY(velocitymultiplier) = 3;
1485}
1486
1487DEF(machinegun_impact);
1488// decal
1489SUB(machinegun_impact) {
1490 MY(alpha_min) = 256;
1491 MY(alpha_max) = 256;
1492 MY(countabsolute) = 1;
1493 MY(lightcolor) = '6.0 3.6 0.6';
1494 MY(lightradiusfade) = 800;
1495 MY(lightradius) = 80;
1496 MY(originjitter) = '10.0 10.0 10.0';
1497 MY(size_min) = 5;
1498 MY(size_max) = 5;
1499 MY(tex_min) = 56;
1500 MY(tex_max) = 59;
1501 MY(type) = "decal";
1502}
1503// dust/smoke drifting away from the impact
1504SUB(machinegun_impact) {
1505 MY(airfriction) = 5;
1506 MY(alpha_min) = 300;
1507 MY(alpha_max) = 550;
1508 MY(alpha_fade) = 456;
1509 MY(color_min) = "0x473a37";
1510 MY(color_max) = "0x0b0a07";
1511 MY(count) = 1.500000;
1512 MY(notunderwater) = true;
1513 MY(startangle_max) = 360;
1514 MY(spin_min) = -50;
1515 MY(spin_max) = 50;
1516 MY(sizeincrease) = 15;
1517 MY(size_min) = 10;
1518 MY(size_max) = 20;
1519 MY(tex_max) = 8;
1520 MY(type) = "alphastatic";
1521 MY(velocityjitter) = '150.0 150.0 150.0';
1522 MY(velocitymultiplier) = 0.100000;
1523}
1524// dust/smoke staying at the impact
1525SUB(machinegun_impact) {
1526 MY(airfriction) = 5;
1527 MY(alpha_min) = 200;
1528 MY(alpha_max) = 350;
1529 MY(alpha_fade) = 500;
1530 MY(bounce) = 6;
1531 MY(color_min) = "0x201d1a";
1532 MY(color_max) = "0x000000";
1533 MY(count) = 0.500000;
1534 MY(notunderwater) = true;
1535 MY(startangle_max) = 360;
1536 MY(spin_min) = -50;
1537 MY(spin_max) = 50;
1538 MY(sizeincrease) = 74;
1539 MY(size_min) = 10;
1540 MY(size_max) = 11;
1541 MY(tex_min) = 36;
1542 MY(tex_max) = 36;
1543 MY(type) = "alphastatic";
1544 MY(velocityjitter) = '11.0 11.0 11.0';
1545 MY(velocitymultiplier) = 0.030000;
1546}
1547// debris
1548SUB(machinegun_impact) {
1549 MY(airfriction) = 1;
1550 MY(alpha_min) = 300;
1551 MY(alpha_max) = 550;
1552 MY(alpha_fade) = 256;
1553 MY(bounce) = 1.700000;
1554 MY(color_min) = "0x63493e";
1555 MY(color_max) = "0xffffff";
1556 MY(count) = 1;
1557 MY(gravity) = 1.400000;
1558 MY(notunderwater) = true;
1559 MY(startangle_max) = 360;
1560 MY(spin_min) = -500;
1561 MY(spin_max) = 500;
1562 MY(size_min) = 1;
1563 MY(size_max) = 5;
1564 MY(tex_min) = 66;
1565 MY(tex_max) = 68;
1566 MY(type) = "alphastatic";
1567 MY(velocityjitter) = '350.0 350.0 350.0';
1568 MY(velocitymultiplier) = 0.200000;
1569}
1570// sparks
1571SUB(machinegun_impact) {
1572 MY(airfriction) = 2;
1573 MY(alpha_min) = 256;
1574 MY(alpha_max) = 256;
1575 MY(alpha_fade) = 168;
1576 MY(bounce) = 1;
1577 MY(color_min) = "0xFDFFD9";
1578 MY(color_max) = "0xFDFFD9";
1579 MY(count) = 1;
1580 MY(gravity) = 1;
1581 MY(notunderwater) = true;
1582 MY(originjitter) = '1.0 1.0 1.0';
1583 MY(size_min) = 0.300000;
1584 MY(size_max) = 0.300000;
1585 MY(tex_min) = 40;
1586 MY(tex_max) = 40;
1587 MY(type) = "spark";
1588 MY(velocityjitter) = '300.0 300.0 300.0';
1589 MY(velocitymultiplier) = 0.200000;
1590}
1591
1592DEF(grenadelauncher_muzzleflash);
1593SUB(grenadelauncher_muzzleflash) {
1594 MY(airfriction) = 12;
1595 MY(alpha_min) = 256;
1596 MY(alpha_max) = 256;
1597 MY(alpha_fade) = 512;
1598 MY(color_min) = "0x202020";
1599 MY(color_max) = "0x404040";
1600 MY(count) = 1.500000;
1601 MY(lightcolor) = '2.0 1.5 0.2';
1602 MY(lightradiusfade) = 2000;
1603 MY(lightradius) = 200;
1604 MY(originjitter) = '1.5 1.5 1.5';
1605 MY(size_min) = 5;
1606 MY(size_max) = 5;
1607 MY(tex_max) = 8;
1608 MY(type) = "smoke";
1609 MY(velocityjitter) = '20.0 20.0 20.0';
1610 MY(velocitymultiplier) = 0.030000;
1611}
1612SUB(grenadelauncher_muzzleflash) {
1613 MY(airfriction) = 5;
1614 MY(alpha_max) = 128;
1615 MY(alpha_fade) = 1024;
1616 MY(color_min) = "0xffdb96";
1617 MY(color_max) = "0xff5400";
1618 MY(count) = 16;
1619 MY(originjitter) = '1.0 1.0 1.0';
1620 MY(size_min) = 10;
1621 MY(size_max) = 20;
1622 MY(stretchfactor) = 2.500000;
1623 MY(tex_min) = 48;
1624 MY(tex_max) = 55;
1625 MY(type) = "spark";
1626 MY(velocityjitter) = '100.0 100.0 100.0';
1627 MY(velocitymultiplier) = 0.500000;
1628}
1629
1630// mortar trail
1631DEF(TR_GRENADE);
1632// smoke
1633SUB(TR_GRENADE) {
1634 MY(alpha_min) = 300;
1635 MY(alpha_max) = 400;
1636 MY(alpha_fade) = 780;
1637 MY(bounce) = 1;
1638 MY(color_min) = "0x101010";
1639 MY(color_max) = "0x000000";
1640 MY(originjitter) = '1.0 1.0 1.0';
1641 MY(sizeincrease) = 10;
1642 MY(size_min) = 3;
1643 MY(size_max) = 2;
1644 MY(tex_max) = 8;
1645 MY(trailspacing) = 4;
1646 MY(type) = "smoke";
1647 MY(velocityjitter) = '1.0 1.0 1.0';
1648 MY(velocitymultiplier) = -0.020000;
1649}
1650// fire
1651SUB(TR_GRENADE) {
1652 MY(airfriction) = 8;
1653 MY(alpha_min) = 100;
1654 MY(alpha_max) = 144;
1655 MY(alpha_fade) = 988;
1656 MY(color_min) = "0xffdf72";
1657 MY(color_max) = "0x811200";
1658 MY(notunderwater) = true;
1659 MY(sizeincrease) = -15;
1660 MY(size_min) = 5;
1661 MY(size_max) = 2;
1662 MY(tex_min) = 48;
1663 MY(tex_max) = 55;
1664 MY(trailspacing) = 4;
1665 MY(type) = "static";
1666 MY(velocityjitter) = '32.0 32.0 32.0';
1667 MY(velocitymultiplier) = -1;
1668}
1669// bubbles
1670SUB(TR_GRENADE) {
1671 MY(alpha_min) = 256;
1672 MY(alpha_max) = 256;
1673 MY(alpha_fade) = 256;
1674 MY(bounce) = 1.500000;
1675 MY(color_min) = "0x404040";
1676 MY(color_max) = "0x808080";
1677 MY(gravity) = -0.125000;
1678 MY(liquidfriction) = 4;
1679 MY(size_min) = 1;
1680 MY(size_max) = 1;
1681 MY(tex_min) = 62;
1682 MY(tex_max) = 62;
1683 MY(trailspacing) = 16;
1684 MY(type) = "bubble";
1685 MY(underwater) = true;
1686 MY(velocityjitter) = '16.0 16.0 16.0';
1687}
1688
1689// hookbomb trail
1690DEF(TR_KNIGHTSPIKE);
1691// smoke
1692SUB(TR_KNIGHTSPIKE) {
1693 MY(alpha_min) = 300;
1694 MY(alpha_max) = 400;
1695 MY(alpha_fade) = 600;
1696 MY(bounce) = 1;
1697 MY(color_min) = "0x303030";
1698 MY(color_max) = "0x000000";
1699 MY(gravity) = -0.110000;
1700 MY(notunderwater) = true;
1701 MY(originjitter) = '2.0 2.0 2.0';
1702 MY(sizeincrease) = 11;
1703 MY(size_min) = 3;
1704 MY(size_max) = 3;
1705 MY(tex_max) = 8;
1706 MY(trailspacing) = 6;
1707 MY(type) = "smoke";
1708 MY(velocityjitter) = '3.0 3.0 3.0';
1709 MY(velocitymultiplier) = -0.020000;
1710}
1711// marker
1712SUB(TR_KNIGHTSPIKE) {
1713 MY(alpha_min) = 256;
1714 MY(alpha_max) = 256;
1715 MY(alpha_fade) = 720;
1716 MY(color_min) = "0x666666";
1717 MY(color_max) = "0x000000";
1718 MY(sizeincrease) = -0.100000;
1719 MY(size_min) = 1;
1720 MY(size_max) = 1;
1721 MY(tex_min) = 62;
1722 MY(tex_max) = 62;
1723 MY(trailspacing) = 2;
1724 MY(type) = "alphastatic";
1725}
1726// bubbles
1727SUB(TR_KNIGHTSPIKE) {
1728 MY(alpha_min) = 256;
1729 MY(alpha_max) = 256;
1730 MY(alpha_fade) = 256;
1731 MY(bounce) = 1.500000;
1732 MY(color_min) = "0x404040";
1733 MY(color_max) = "0x808080";
1734 MY(gravity) = -0.125000;
1735 MY(liquidfriction) = 4;
1736 MY(size_min) = 1;
1737 MY(size_max) = 1;
1738 MY(tex_min) = 62;
1739 MY(tex_max) = 62;
1740 MY(trailspacing) = 32;
1741 MY(type) = "bubble";
1742 MY(underwater) = true;
1743 MY(velocityjitter) = '16.0 16.0 16.0';
1744}
1745
1746DEF(grenade_explode);
1747// decal
1748SUB(grenade_explode) {
1749 MY(alpha_min) = 256;
1750 MY(alpha_max) = 256;
1751 MY(countabsolute) = 1;
1752 MY(lightcolor) = '8.0 4.0 1.0';
1753 MY(lightradiusfade) = 400;
1754 MY(lightradius) = 250;
1755 MY(originjitter) = '26.0 26.0 26.0';
1756 MY(size_min) = 48;
1757 MY(size_max) = 48;
1758 MY(tex_min) = 8;
1759 MY(tex_max) = 16;
1760 MY(type) = "decal";
1761}
1762// fire effect which expands then slows
1763SUB(grenade_explode) {
1764 MY(airfriction) = 8;
1765 MY(alpha_min) = 128;
1766 MY(alpha_max) = 228;
1767 MY(alpha_fade) = 356;
1768 MY(bounce) = 4.500000;
1769 MY(color_min) = "0xe03f00";
1770 MY(color_max) = "0x5e0000";
1771 MY(count) = 40;
1772 MY(liquidfriction) = 8;
1773 MY(notunderwater) = true;
1774 MY(originjitter) = '8.0 8.0 8.0';
1775 MY(sizeincrease) = 20;
1776 MY(size_min) = 16;
1777 MY(size_max) = 26;
1778 MY(tex_min) = 48;
1779 MY(tex_max) = 55;
1780 MY(type) = "static";
1781 MY(velocityjitter) = '256.0 256.0 256.0';
1782}
1783// fire effect which make bright dot inside
1784SUB(grenade_explode) {
1785 MY(airfriction) = 8;
1786 MY(alpha_min) = 228;
1787 MY(alpha_max) = 328;
1788 MY(alpha_fade) = 756;
1789 MY(bounce) = 1;
1790 MY(color_min) = "0xe03f00";
1791 MY(color_max) = "0xffdf92";
1792 MY(count) = 15;
1793 MY(liquidfriction) = 8;
1794 MY(notunderwater) = true;
1795 MY(originjitter) = '8.0 8.0 8.0';
1796 MY(sizeincrease) = 40;
1797 MY(size_min) = 6;
1798 MY(size_max) = 16;
1799 MY(tex_min) = 48;
1800 MY(tex_max) = 55;
1801 MY(type) = "static";
1802 MY(velocityjitter) = '256.0 256.0 256.0';
1803}
1804// smoke
1805SUB(grenade_explode) {
1806 MY(airfriction) = 5;
1807 MY(alpha_min) = 300;
1808 MY(alpha_max) = 550;
1809 MY(alpha_fade) = 556;
1810 MY(bounce) = 6;
1811 MY(color_min) = "0x000000";
1812 MY(color_max) = "0x111111";
1813 MY(count) = 10;
1814 MY(notunderwater) = true;
1815 MY(sizeincrease) = 34;
1816 MY(size_min) = 20;
1817 MY(size_max) = 40;
1818 MY(tex_max) = 8;
1819 MY(type) = "alphastatic";
1820 MY(velocityjitter) = '256.0 256.0 256.0';
1821}
1822// underwater bubbles
1823SUB(grenade_explode) {
1824 MY(alpha_min) = 128;
1825 MY(alpha_max) = 256;
1826 MY(alpha_fade) = 64;
1827 MY(bounce) = 1.500000;
1828 MY(color_min) = "0x404040";
1829 MY(color_max) = "0x808080";
1830 MY(count) = 32;
1831 MY(gravity) = -0.125000;
1832 MY(liquidfriction) = 0.250000;
1833 MY(originjitter) = '16.0 16.0 16.0';
1834 MY(size_min) = 3;
1835 MY(size_max) = 6;
1836 MY(tex_min) = 62;
1837 MY(tex_max) = 62;
1838 MY(type) = "bubble";
1839 MY(underwater) = true;
1840 MY(velocityjitter) = '196.0 196.0 196.0';
1841}
1842// underwatershockwave
1843SUB(grenade_explode) {
1844 MY(alpha_min) = 40;
1845 MY(alpha_max) = 40;
1846 MY(alpha_fade) = 300;
1847 MY(countabsolute) = 1;
1848 MY(sizeincrease) = 1500;
1849 MY(size_min) = 5;
1850 MY(size_max) = 5;
1851 MY(tex_min) = 33;
1852 MY(tex_max) = 33;
1853 MY(type) = "smoke";
1854 MY(underwater) = true;
1855 MY(velocitymultiplier) = 0.300000;
1856}
1857// bouncing sparks
1858SUB(grenade_explode) {
1859 MY(airfriction) = 1;
1860 MY(alpha_min) = 644;
1861 MY(alpha_max) = 956;
1862 MY(alpha_fade) = 484;
1863 MY(bounce) = 1.600000;
1864 MY(color_min) = "0xffa35b";
1865 MY(color_max) = "0xfff2be";
1866 MY(count) = 16;
1867 MY(gravity) = 1;
1868 MY(liquidfriction) = 0.800000;
1869 MY(notunderwater) = true;
1870 MY(originjitter) = '16.0 16.0 16.0';
1871 MY(size_min) = 1;
1872 MY(size_max) = 0.100000;
1873 MY(tex_min) = 40;
1874 MY(tex_max) = 40;
1875 MY(type) = "spark";
1876 MY(velocityjitter) = '424.0 424.0 624.0';
1877 MY(velocityoffset) = '0.0 0.0 80.0';
1878}
1879// debris
1880SUB(grenade_explode) {
1881 MY(airfriction) = 0.500000;
1882 MY(alpha_min) = 644;
1883 MY(alpha_max) = 956;
1884 MY(alpha_fade) = 684;
1885 MY(bounce) = 1.600000;
1886 MY(color_min) = "0x6a3d25";
1887 MY(color_max) = "0xcac5b4";
1888 MY(count) = 12;
1889 MY(gravity) = 1.300000;
1890 MY(notunderwater) = true;
1891 MY(startangle_min) = -180;
1892 MY(startangle_max) = 180;
1893 MY(spin_min) = -1000;
1894 MY(spin_max) = 1000;
1895 MY(size_min) = 2;
1896 MY(size_max) = 6;
1897 MY(tex_min) = 66;
1898 MY(tex_max) = 68;
1899 MY(type) = "alphastatic";
1900 MY(velocityjitter) = '324.0 324.0 524.0';
1901}
1902
1903DEF(electro_muzzleflash);
1904SUB(electro_muzzleflash) {
1905 MY(alpha_min) = 256;
1906 MY(alpha_max) = 256;
1907 MY(alpha_fade) = 512;
1908 MY(color_min) = "0x283880";
1909 MY(color_max) = "0x283880";
1910 MY(countabsolute) = 1;
1911 MY(lightcolor) = '1.5 3.0 6.0';
1912 MY(lightradiusfade) = 2000;
1913 MY(lightradius) = 200;
1914 MY(originjitter) = '1.5 1.5 1.5';
1915 MY(sizeincrease) = -10;
1916 MY(size_min) = 15;
1917 MY(size_max) = 15;
1918 MY(tex_min) = 65;
1919 MY(tex_max) = 65;
1920 MY(type) = "smoke";
1921 MY(velocityjitter) = '6.0 6.0 6.0';
1922 MY(velocitymultiplier) = 0.010000;
1923}
1924SUB(electro_muzzleflash) {
1925 MY(airfriction) = 2;
1926 MY(alpha_min) = 110;
1927 MY(alpha_max) = 228;
1928 MY(alpha_fade) = 2024;
1929 MY(color_min) = "0xD9FDFF";
1930 MY(color_max) = "0xD9FDFF";
1931 MY(count) = 7;
1932 MY(originjitter) = '1.0 1.0 1.0';
1933 MY(size_min) = 5;
1934 MY(size_max) = 15;
1935 MY(stretchfactor) = 1.500000;
1936 MY(tex_min) = 8;
1937 MY(tex_max) = 15;
1938 MY(type) = "spark";
1939 MY(velocityjitter) = '150.0 150.0 150.0';
1940 MY(velocitymultiplier) = 0.500000;
1941}
1942SUB(electro_muzzleflash) {
1943 MY(airfriction) = 8;
1944 MY(alpha_min) = 110;
1945 MY(alpha_max) = 228;
1946 MY(alpha_fade) = 1024;
1947 MY(color_min) = "0xD9FDFF";
1948 MY(color_max) = "0xD9FDFF";
1949 MY(count) = 5;
1950 MY(gravity) = 1.300000;
1951 MY(originjitter) = '1.0 1.0 1.0';
1952 MY(size_min) = 7;
1953 MY(size_max) = 6;
1954 MY(stretchfactor) = 0.100000;
1955 MY(tex_min) = 41;
1956 MY(tex_max) = 41;
1957 MY(type) = "spark";
1958 MY(velocityjitter) = '350.0 350.0 350.0';
1959 MY(velocitymultiplier) = 2.500000;
1960}
1961
1962// electro trail
1963DEF(TR_NEXUIZPLASMA);
1964// glowing vapor trail
1965SUB(TR_NEXUIZPLASMA) {
1966 MY(alpha_min) = 256;
1967 MY(alpha_max) = 256;
1968 MY(alpha_fade) = 968;
1969 MY(color_min) = "0x283880";
1970 MY(color_max) = "0x283880";
1971 MY(lightcolor) = '1.5 3.0 6.0';
1972 MY(lightradius) = 90;
1973 MY(size_min) = 3;
1974 MY(size_max) = 3;
1975 MY(tex_min) = 38;
1976 MY(tex_max) = 38;
1977 MY(trailspacing) = 2;
1978 MY(type) = "static";
1979 MY(velocitymultiplier) = -0.100000;
1980}
1981// bright sparks
1982SUB(TR_NEXUIZPLASMA) {
1983 MY(airfriction) = 12;
1984 MY(alpha_min) = 444;
1985 MY(alpha_max) = 512;
1986 MY(alpha_fade) = 1866;
1987 MY(bounce) = 1;
1988 MY(color_min) = "0x629dff";
1989 MY(color_max) = "0x0018ff";
1990 MY(count) = 1.500000;
1991 MY(originjitter) = '1.0 1.0 1.0';
1992 MY(sizeincrease) = -20;
1993 MY(size_min) = 2;
1994 MY(size_max) = 4;
1995 MY(tex_min) = 42;
1996 MY(tex_max) = 42;
1997 MY(trailspacing) = 12;
1998 MY(type) = "snow";
1999 MY(velocityjitter) = '50.0 50.0 50.0';
2000 MY(velocityoffset) = '0.0 0.0 15.0';
2001}
2002
2003DEF(electro_impact);
2004// decal
2005SUB(electro_impact) {
2006 MY(alpha_min) = 256;
2007 MY(alpha_max) = 256;
2008 MY(countabsolute) = 1;
2009 MY(lightcolor) = '3.1 4.4 10.0';
2010 MY(lightradiusfade) = 250;
2011 MY(lightradius) = 250;
2012 MY(originjitter) = '17.0 17.0 17.0';
2013 MY(size_min) = 32;
2014 MY(size_max) = 32;
2015 MY(tex_min) = 59;
2016 MY(tex_max) = 59;
2017 MY(type) = "decal";
2018}
2019// shockwave
2020SUB(electro_impact) {
2021 MY(alpha_min) = 40;
2022 MY(alpha_max) = 40;
2023 MY(alpha_fade) = 350;
2024 MY(color_min) = "0x80C0FF";
2025 MY(color_max) = "0x80C0FF";
2026 MY(countabsolute) = 1;
2027 MY(sizeincrease) = 1000;
2028 MY(size_min) = 32;
2029 MY(size_max) = 32;
2030 MY(tex_min) = 33;
2031 MY(tex_max) = 33;
2032 MY(type) = "smoke";
2033 MY(velocitymultiplier) = 44;
2034}
2035// flare effect
2036SUB(electro_impact) {
2037 MY(alpha_min) = 256;
2038 MY(alpha_max) = 256;
2039 MY(alpha_fade) = 512;
2040 MY(color_min) = "0x80C0FF";
2041 MY(color_max) = "0x80C0FF";
2042 MY(countabsolute) = 1;
2043 MY(size_min) = 12;
2044 MY(size_max) = 32;
2045 MY(tex_min) = 38;
2046 MY(tex_max) = 38;
2047 MY(type) = "static";
2048}
2049// cloud of bouncing sparks
2050SUB(electro_impact) {
2051 MY(airfriction) = 6;
2052 MY(alpha_min) = 256;
2053 MY(alpha_max) = 256;
2054 MY(alpha_fade) = 1024;
2055 MY(bounce) = 2;
2056 MY(color_min) = "0x629dff";
2057 MY(color_max) = "0x0018ff";
2058 MY(count) = 30;
2059 MY(gravity) = -0.300000;
2060 MY(originjitter) = '1.0 1.0 1.0';
2061 MY(startangle_min) = -180;
2062 MY(startangle_max) = 180;
2063 MY(spin_min) = -9999;
2064 MY(spin_max) = 9999;
2065 MY(sizeincrease) = -50;
2066 MY(size_min) = 36;
2067 MY(size_max) = 36;
2068 MY(tex_min) = 42;
2069 MY(tex_max) = 42;
2070 MY(type) = "smoke";
2071 MY(velocityjitter) = '512.0 512.0 512.0';
2072}
2073// inner cloud of smoke
2074SUB(electro_impact) {
2075 MY(airfriction) = 30;
2076 MY(alpha_min) = 200;
2077 MY(alpha_max) = 256;
2078 MY(alpha_fade) = 512;
2079 MY(color_min) = "0x629dff";
2080 MY(color_max) = "0x0018ff";
2081 MY(count) = 30;
2082 MY(originjitter) = '20.0 20.0 20.0';
2083 MY(sizeincrease) = 50;
2084 MY(size_min) = 20;
2085 MY(size_max) = 24;
2086 MY(tex_max) = 8;
2087 MY(type) = "smoke";
2088 MY(velocityjitter) = '320.0 320.0 320.0';
2089}
2090
2091DEF(electro_ballexplode);
2092// decal
2093SUB(electro_ballexplode) {
2094 MY(alpha_min) = 256;
2095 MY(alpha_max) = 256;
2096 MY(countabsolute) = 1;
2097 MY(lightcolor) = '3.1 4.4 10.0';
2098 MY(lightradiusfade) = 250;
2099 MY(lightradius) = 250;
2100 MY(originjitter) = '17.0 17.0 17.0';
2101 MY(size_min) = 32;
2102 MY(size_max) = 32;
2103 MY(tex_min) = 59;
2104 MY(tex_max) = 59;
2105 MY(type) = "decal";
2106}
2107// flare effect
2108SUB(electro_ballexplode) {
2109 MY(alpha_min) = 256;
2110 MY(alpha_max) = 256;
2111 MY(alpha_fade) = 512;
2112 MY(color_min) = "0x80C0FF";
2113 MY(color_max) = "0x80C0FF";
2114 MY(countabsolute) = 1;
2115 MY(size_min) = 32;
2116 MY(size_max) = 32;
2117 MY(tex_min) = 38;
2118 MY(tex_max) = 38;
2119 MY(type) = "static";
2120}
2121// cloud of bouncing sparks
2122SUB(electro_ballexplode) {
2123 MY(alpha_min) = 256;
2124 MY(alpha_max) = 256;
2125 MY(alpha_fade) = 1024;
2126 MY(bounce) = 2;
2127 MY(color_min) = "0xFDFFD9";
2128 MY(color_max) = "0xFDFFD9";
2129 MY(count) = 64;
2130 MY(originjitter) = '1.0 1.0 1.0';
2131 MY(size_min) = 1;
2132 MY(size_max) = 2;
2133 MY(stretchfactor) = 0.400000;
2134 MY(tex_min) = 41;
2135 MY(tex_max) = 41;
2136 MY(type) = "spark";
2137 MY(velocityjitter) = '512.0 512.0 512.0';
2138}
2139// inner cloud of smoke
2140SUB(electro_ballexplode) {
2141 MY(alpha_min) = 256;
2142 MY(alpha_max) = 256;
2143 MY(alpha_fade) = 512;
2144 MY(color_min) = "0x202020";
2145 MY(color_max) = "0x404040";
2146 MY(count) = 8;
2147 MY(originjitter) = '20.0 20.0 20.0';
2148 MY(size_min) = 24;
2149 MY(size_max) = 24;
2150 MY(tex_max) = 8;
2151 MY(type) = "smoke";
2152 MY(velocityjitter) = '32.0 32.0 32.0';
2153}
2154
2155DEF(electro_combo);
2156// decal
2157SUB(electro_combo) {
2158 MY(alpha_min) = 256;
2159 MY(alpha_max) = 256;
2160 MY(countabsolute) = 1;
2161 MY(lightcolor) = '4.0 5.0 6.0';
2162 MY(lightradiusfade) = 300;
2163 MY(lightradius) = 400;
2164 MY(originjitter) = '17.0 17.0 17.0';
2165 MY(size_min) = 64;
2166 MY(size_max) = 64;
2167 MY(tex_min) = 59;
2168 MY(tex_max) = 59;
2169 MY(type) = "decal";
2170}
2171// flare effect
2172SUB(electro_combo) {
2173 MY(alpha_min) = 128;
2174 MY(alpha_max) = 128;
2175 MY(alpha_fade) = 64;
2176 MY(color_min) = "0x80C0FF";
2177 MY(color_max) = "0x80C0FF";
2178 MY(countabsolute) = 1;
2179 MY(size_min) = 48;
2180 MY(size_max) = 48;
2181 MY(tex_min) = 38;
2182 MY(tex_max) = 38;
2183 MY(type) = "static";
2184}
2185// large sparks
2186SUB(electro_combo) {
2187 MY(airfriction) = 6;
2188 MY(alpha_min) = 156;
2189 MY(alpha_max) = 156;
2190 MY(alpha_fade) = 156;
2191 MY(bounce) = 2;
2192 MY(color_min) = "0x2030FF";
2193 MY(color_max) = "0x80C0FF";
2194 MY(count) = 5;
2195 MY(liquidfriction) = 16;
2196 MY(sizeincrease) = 50;
2197 MY(size_min) = 32;
2198 MY(size_max) = 32;
2199 MY(tex_max) = 7;
2200 MY(type) = "static";
2201 MY(velocityjitter) = '512.0 512.0 512.0';
2202}
2203SUB(electro_combo) {
2204 MY(alpha_min) = 444;
2205 MY(alpha_max) = 512;
2206 MY(alpha_fade) = 500;
2207 MY(bounce) = 1.600000;
2208 MY(color_min) = "0xa9cacf";
2209 MY(color_max) = "0x0054ff";
2210 MY(count) = 32;
2211 MY(originjitter) = '1.0 1.0 1.0';
2212 MY(size_min) = 2;
2213 MY(size_max) = 4;
2214 MY(stretchfactor) = 2;
2215 MY(tex_min) = 41;
2216 MY(tex_max) = 41;
2217 MY(type) = "spark";
2218 MY(velocityjitter) = '128.0 128.0 128.0';
2219 MY(velocitymultiplier) = 0.300000;
2220}
2221// inner cloud of smoke
2222SUB(electro_combo) {
2223 MY(alpha_min) = 256;
2224 MY(alpha_max) = 256;
2225 MY(alpha_fade) = 256;
2226 MY(color_min) = "0x202020";
2227 MY(color_max) = "0x404040";
2228 MY(count) = 0.125000;
2229 MY(originjitter) = '20.0 20.0 20.0';
2230 MY(size_min) = 24;
2231 MY(size_max) = 24;
2232 MY(tex_max) = 8;
2233 MY(type) = "smoke";
2234 MY(velocityjitter) = '32.0 32.0 32.0';
2235}
2236// shockwave
2237SUB(electro_combo) {
2238 MY(alpha_min) = 64;
2239 MY(alpha_max) = 64;
2240 MY(alpha_fade) = 40;
2241 MY(color_min) = "0xa9cacf";
2242 MY(color_max) = "0x0054ff";
2243 MY(countabsolute) = 1;
2244 MY(size_min) = 120;
2245 MY(size_max) = 120;
2246 MY(tex_min) = 33;
2247 MY(tex_max) = 33;
2248 MY(type) = "smoke";
2249 MY(velocitymultiplier) = 0.300000;
2250}
2251
2252DEF(crylink_muzzleflash);
2253SUB(crylink_muzzleflash) {
2254 MY(alpha_min) = 128;
2255 MY(alpha_max) = 128;
2256 MY(alpha_fade) = 2024;
2257 MY(color_min) = "0xdd9cff";
2258 MY(color_max) = "0xff0090";
2259 MY(count) = 0.500000;
2260 MY(lightcolor) = '1.6 0.2 2.0';
2261 MY(lightradiusfade) = 2000;
2262 MY(lightradius) = 200;
2263 MY(size_min) = 15;
2264 MY(size_max) = 20;
2265 MY(tex_min) = 65;
2266 MY(tex_max) = 65;
2267 MY(type) = "smoke";
2268 MY(velocitymultiplier) = 0.010000;
2269}
2270SUB(crylink_muzzleflash) {
2271 MY(airfriction) = 12;
2272 MY(alpha_max) = 128;
2273 MY(alpha_fade) = 1024;
2274 MY(color_min) = "0xA080C0";
2275 MY(color_max) = "0xA080C0";
2276 MY(count) = 5;
2277 MY(originjitter) = '1.0 1.0 1.0';
2278 MY(size_min) = 5;
2279 MY(size_max) = 10;
2280 MY(stretchfactor) = 1.500000;
2281 MY(tex_min) = 35;
2282 MY(tex_max) = 36;
2283 MY(type) = "spark";
2284 MY(velocityjitter) = '200.0 200.0 200.0';
2285 MY(velocitymultiplier) = 0.300000;
2286}
2287
2288DEF(crylink_impact);
2289// decal
2290SUB(crylink_impact) {
2291 MY(alpha_min) = 256;
2292 MY(alpha_max) = 256;
2293 MY(countabsolute) = 1;
2294 MY(originjitter) = '12.0 12.0 12.0';
2295 MY(size_min) = 24;
2296 MY(size_max) = 24;
2297 MY(tex_min) = 47;
2298 MY(tex_max) = 47;
2299 MY(type) = "decal";
2300}
2301// purple flare effect
2302SUB(crylink_impact) {
2303 MY(alpha_min) = 256;
2304 MY(alpha_max) = 256;
2305 MY(alpha_fade) = 512;
2306 MY(color_min) = "0x504060";
2307 MY(color_max) = "0x504060";
2308 MY(countabsolute) = 1;
2309 MY(size_min) = 24;
2310 MY(size_max) = 24;
2311 MY(tex_min) = 39;
2312 MY(tex_max) = 39;
2313 MY(type) = "static";
2314}
2315// purple sparks
2316SUB(crylink_impact) {
2317 MY(alpha_min) = 256;
2318 MY(alpha_max) = 256;
2319 MY(alpha_fade) = 1024;
2320 MY(bounce) = 2;
2321 MY(color_min) = "0xA040C0";
2322 MY(color_max) = "0xA040C0";
2323 MY(count) = 40;
2324 MY(size_min) = 6;
2325 MY(size_max) = 6;
2326 MY(tex_min) = 41;
2327 MY(tex_max) = 41;
2328 MY(type) = "spark";
2329 MY(velocityjitter) = '512.0 512.0 512.0';
2330}
2331// purple splash
2332SUB(crylink_impact) {
2333 MY(alpha_min) = 256;
2334 MY(alpha_max) = 256;
2335 MY(alpha_fade) = 512;
2336 MY(color_min) = "0xE070FF";
2337 MY(color_max) = "0xE070FF";
2338 MY(count) = 1.500000;
2339 MY(size_min) = 16;
2340 MY(size_max) = 16;
2341 MY(type) = "static";
2342 MY(velocityjitter) = '32.0 32.0 32.0';
2343}
2344// purple splash
2345SUB(crylink_impact) {
2346 MY(alpha_min) = 256;
2347 MY(alpha_max) = 256;
2348 MY(alpha_fade) = 1024;
2349 MY(color_min) = "0xE070FF";
2350 MY(color_max) = "0xE070FF";
2351 MY(count) = 3;
2352 MY(size_min) = 16;
2353 MY(size_max) = 16;
2354 MY(type) = "static";
2355 MY(velocityjitter) = '256.0 256.0 256.0';
2356}
2357
2358DEF(nex_muzzleflash);
2359SUB(nex_muzzleflash) {
2360 MY(airfriction) = 9;
2361 MY(alpha_min) = 328;
2362 MY(alpha_max) = 328;
2363 MY(alpha_fade) = 4000;
2364 MY(color_min) = "0x202020";
2365 MY(color_max) = "0x0072ff";
2366 MY(count) = 12;
2367 MY(lightcolor) = '2.0 2.5 3.0';
2368 MY(lightradiusfade) = 200;
2369 MY(lightradius) = 200;
2370 MY(originjitter) = '4.0 4.0 4.0';
2371 MY(sizeincrease) = -100;
2372 MY(size_min) = 16;
2373 MY(size_max) = 16;
2374 MY(stretchfactor) = 2;
2375 MY(tex_min) = 48;
2376 MY(tex_max) = 55;
2377 MY(type) = "spark";
2378 MY(velocityjitter) = '180.0 180.0 180.0';
2379 MY(velocitymultiplier) = 1.400000;
2380}
2381SUB(nex_muzzleflash) {
2382 MY(airfriction) = 9;
2383 MY(alpha_max) = 128;
2384 MY(alpha_fade) = 1024;
2385 MY(color_min) = "0xD9FDFF";
2386 MY(color_max) = "0xD9FDFF";
2387 MY(count) = 50;
2388 MY(originjitter) = '1.0 1.0 1.0';
2389 MY(size_min) = 1;
2390 MY(size_max) = 1;
2391 MY(tex_min) = 41;
2392 MY(tex_max) = 41;
2393 MY(type) = "spark";
2394 MY(velocityjitter) = '600.0 600.0 600.0';
2395 MY(velocitymultiplier) = 1.500000;
2396}
2397
2398// vortex beam
2399DEF(nex_beam);
2400SUB(nex_beam) {
2401 MY(airfriction) = 5;
2402 MY(alpha_min) = 64;
2403 MY(alpha_max) = 128;
2404 MY(alpha_fade) = 64;
2405 MY(color_min) = "0x1680A0";
2406 MY(color_max) = "0x1680A0";
2407 MY(sizeincrease) = 2;
2408 MY(size_min) = 4;
2409 MY(size_max) = 4;
2410 MY(tex_min) = 32;
2411 MY(tex_max) = 32;
2412 MY(trailspacing) = 64;
2413 MY(type) = "static";
2414}
2415// drifting smoke
2416SUB(nex_beam) {
2417 MY(airfriction) = 9;
2418 MY(alpha_min) = 32;
2419 MY(alpha_max) = 64;
2420 MY(alpha_fade) = 32;
2421 MY(color_min) = "0x5080A0";
2422 MY(color_max) = "0x5080A0";
2423 MY(sizeincrease) = 8;
2424 MY(size_min) = 1;
2425 MY(size_max) = 1;
2426 MY(tex_max) = 8;
2427 MY(trailspacing) = 12;
2428 MY(type) = "static";
2429 MY(velocityjitter) = '64.0 64.0 64.0';
2430}
2431// bright core
2432SUB(nex_beam) {
2433 MY(alpha_min) = 256;
2434 MY(alpha_max) = 256;
2435 MY(alpha_fade) = 1280;
2436 MY(color_min) = "0x80CDFF";
2437 MY(color_max) = "0x80CDFF";
2438 MY(size_min) = 4;
2439 MY(size_max) = 4;
2440 MY(trailspacing) = 12;
2441 MY(type) = "static";
2442}
2443// sparks
2444SUB(nex_beam) {
2445 MY(airfriction) = 5;
2446 MY(alpha_min) = 64;
2447 MY(alpha_max) = 128;
2448 MY(alpha_fade) = 80;
2449 MY(color_min) = "0x1680A0";
2450 MY(color_max) = "0x1680A0";
2451 MY(gravity) = -0.010000;
2452 MY(size_min) = 1;
2453 MY(size_max) = 1;
2454 MY(tex_min) = 63;
2455 MY(tex_max) = 63;
2456 MY(trailspacing) = 16;
2457 MY(type) = "snow";
2458}
2459
2460DEF(nex_impact);
2461// decal
2462SUB(nex_impact) {
2463 MY(alpha_min) = 256;
2464 MY(alpha_max) = 256;
2465 MY(countabsolute) = 1;
2466 MY(lightcolor) = '4.0 6.0 8.0';
2467 MY(lightradiusfade) = 250;
2468 MY(lightradius) = 200;
2469 MY(originjitter) = '14.0 14.0 14.0';
2470 MY(startangle_min) = -180;
2471 MY(startangle_max) = 180;
2472 MY(size_min) = 24;
2473 MY(size_max) = 24;
2474 MY(tex_min) = 47;
2475 MY(tex_max) = 47;
2476 MY(type) = "decal";
2477}
2478// rotating something
2479SUB(nex_impact) {
2480 MY(alpha_min) = 55;
2481 MY(alpha_max) = 55;
2482 MY(alpha_fade) = 50;
2483 MY(color_min) = "0x1680A0";
2484 MY(color_max) = "0x1680A0";
2485 MY(count) = 5;
2486 MY(startangle_min) = 180;
2487 MY(startangle_max) = -180;
2488 MY(spin_min) = 500;
2489 MY(spin_max) = -500;
2490 MY(sizeincrease) = 20;
2491 MY(size_min) = 25;
2492 MY(size_max) = 28;
2493 MY(tex_min) = 46;
2494 MY(tex_max) = 46;
2495 MY(type) = "smoke";
2496}
2497// shockwave
2498SUB(nex_impact) {
2499 MY(alpha_min) = 50;
2500 MY(alpha_max) = 50;
2501 MY(alpha_fade) = 400;
2502 MY(color_min) = "0x1680A0";
2503 MY(color_max) = "0x1680A0";
2504 MY(countabsolute) = 1;
2505 MY(sizeincrease) = 900;
2506 MY(size_min) = 16;
2507 MY(size_max) = 16;
2508 MY(tex_min) = 33;
2509 MY(tex_max) = 33;
2510 MY(type) = "static";
2511}
2512// shockwave2
2513SUB(nex_impact) {
2514 MY(alpha_min) = 50;
2515 MY(alpha_max) = 50;
2516 MY(alpha_fade) = 100;
2517 MY(color_min) = "0x1680A0";
2518 MY(color_max) = "0x1680A0";
2519 MY(countabsolute) = 1;
2520 MY(sizeincrease) = 500;
2521 MY(size_min) = 5;
2522 MY(size_max) = 5;
2523 MY(tex_min) = 65;
2524 MY(tex_max) = 65;
2525 MY(type) = "static";
2526}
2527// flare effect
2528SUB(nex_impact) {
2529 MY(alpha_min) = 256;
2530 MY(alpha_max) = 256;
2531 MY(alpha_fade) = 256;
2532 MY(color_min) = "0x80C0FF";
2533 MY(color_max) = "0x80C0FF";
2534 MY(countabsolute) = 1;
2535 MY(size_min) = 8;
2536 MY(size_max) = 8;
2537 MY(tex_min) = 37;
2538 MY(tex_max) = 37;
2539 MY(type) = "static";
2540}
2541// small sparks which glow brightly but live briefly
2542SUB(nex_impact) {
2543 MY(airfriction) = 9;
2544 MY(alpha_max) = 128;
2545 MY(alpha_fade) = 512;
2546 MY(bounce) = 2;
2547 MY(color_min) = "0xD9FDFF";
2548 MY(color_max) = "0xD9FDFF";
2549 MY(count) = 64;
2550 MY(size_min) = 4;
2551 MY(size_max) = 4;
2552 MY(stretchfactor) = 3;
2553 MY(tex_min) = 41;
2554 MY(tex_max) = 41;
2555 MY(type) = "spark";
2556 MY(velocityjitter) = '600.0 600.0 600.0';
2557 MY(velocitymultiplier) = 0.500000;
2558}
2559// small sparks that live longer
2560SUB(nex_impact) {
2561 MY(airfriction) = 2;
2562 MY(alpha_min) = 255;
2563 MY(alpha_max) = 255;
2564 MY(alpha_fade) = 112;
2565 MY(bounce) = 1.600000;
2566 MY(color_min) = "0xD9FDFF";
2567 MY(color_max) = "0xD9FDFF";
2568 MY(count) = 16;
2569 MY(gravity) = 1;
2570 MY(size_min) = 2;
2571 MY(size_max) = 2;
2572 MY(stretchfactor) = 0.700000;
2573 MY(tex_min) = 41;
2574 MY(tex_max) = 41;
2575 MY(type) = "spark";
2576 MY(velocityjitter) = '300.0 300.0 600.0';
2577 MY(velocitymultiplier) = 2.500000;
2578}
2579
2580DEF(hagar_muzzleflash);
2581SUB(hagar_muzzleflash) {
2582 MY(alpha_min) = 256;
2583 MY(alpha_max) = 256;
2584 MY(alpha_fade) = 512;
2585 MY(color_min) = "0x202020";
2586 MY(color_max) = "0x404040";
2587 MY(count) = 2;
2588 MY(lightcolor) = '2.0 1.5 0.2';
2589 MY(lightradiusfade) = 2000;
2590 MY(lightradius) = 200;
2591 MY(originjitter) = '1.5 1.5 1.5';
2592 MY(size_min) = 5;
2593 MY(size_max) = 5;
2594 MY(tex_max) = 8;
2595 MY(type) = "smoke";
2596 MY(velocityjitter) = '6.0 6.0 6.0';
2597 MY(velocitymultiplier) = 0.010000;
2598}
2599SUB(hagar_muzzleflash) {
2600 MY(airfriction) = 12;
2601 MY(alpha_max) = 128;
2602 MY(alpha_fade) = 1024;
2603 MY(color_min) = "0xff8400";
2604 MY(color_max) = "0xff4200";
2605 MY(count) = 15;
2606 MY(originjitter) = '1.0 1.0 1.0';
2607 MY(startangle_min) = -180;
2608 MY(startangle_max) = 180;
2609 MY(spin_min) = -400;
2610 MY(spin_max) = 400;
2611 MY(size_min) = 5;
2612 MY(size_max) = 10;
2613 MY(stretchfactor) = 2;
2614 MY(tex_min) = 48;
2615 MY(tex_max) = 55;
2616 MY(type) = "spark";
2617 MY(velocityjitter) = '200.0 200.0 200.0';
2618 MY(velocitymultiplier) = 0.500000;
2619}
2620
2621DEF(hagar_bounce);
2622SUB(hagar_bounce) {
2623 MY(alpha_min) = 256;
2624 MY(alpha_max) = 256;
2625 MY(alpha_fade) = 256;
2626 MY(color_min) = "0x202020";
2627 MY(color_max) = "0x404040";
2628 MY(count) = 2;
2629 MY(lightcolor) = '2.0 1.5 0.2';
2630 MY(lightradiusfade) = 300;
2631 MY(lightradius) = 60;
2632 MY(originjitter) = '1.5 1.5 1.5';
2633 MY(size_min) = 5;
2634 MY(size_max) = 5;
2635 MY(tex_max) = 8;
2636 MY(type) = "smoke";
2637 MY(velocityjitter) = '6.0 6.0 6.0';
2638 MY(velocitymultiplier) = 0.010000;
2639}
2640SUB(hagar_bounce) {
2641 MY(airfriction) = 12;
2642 MY(alpha_max) = 256;
2643 MY(alpha_fade) = 256;
2644 MY(bounce) = 1.500000;
2645 MY(color_min) = "0xFFFDD9";
2646 MY(color_max) = "0xFFFDD9";
2647 MY(count) = 15;
2648 MY(gravity) = 1;
2649 MY(originjitter) = '1.0 1.0 1.0';
2650 MY(size_min) = 3;
2651 MY(size_max) = 3;
2652 MY(tex_min) = 40;
2653 MY(tex_max) = 40;
2654 MY(type) = "spark";
2655 MY(velocityjitter) = '600.0 600.0 600.0';
2656 MY(velocitymultiplier) = 0.500000;
2657}
2658
2659DEF(hagar_explode);
2660// decal
2661SUB(hagar_explode) {
2662 MY(alpha_min) = 256;
2663 MY(alpha_max) = 256;
2664 MY(countabsolute) = 1;
2665 MY(lightcolor) = '8.0 4.0 1.0';
2666 MY(lightradiusfade) = 400;
2667 MY(lightradius) = 120;
2668 MY(originjitter) = '14.0 14.0 14.0';
2669 MY(size_min) = 28;
2670 MY(size_max) = 38;
2671 MY(tex_min) = 8;
2672 MY(tex_max) = 16;
2673 MY(type) = "decal";
2674}
2675// fire effect which make bright dot inside
2676SUB(hagar_explode) {
2677 MY(airfriction) = 8;
2678 MY(alpha_min) = 80;
2679 MY(alpha_max) = 200;
2680 MY(alpha_fade) = 356;
2681 MY(bounce) = 1.500000;
2682 MY(color_min) = "0xffe955";
2683 MY(color_max) = "0xff5a00";
2684 MY(count) = 3.500000;
2685 MY(liquidfriction) = 8;
2686 MY(notunderwater) = true;
2687 MY(originjitter) = '8.0 8.0 8.0';
2688 MY(sizeincrease) = 5;
2689 MY(size_min) = 16;
2690 MY(size_max) = 26;
2691 MY(tex_min) = 48;
2692 MY(tex_max) = 55;
2693 MY(type) = "smoke";
2694 MY(velocityjitter) = '156.0 156.0 156.0';
2695}
2696// fire effect which expands then slows
2697SUB(hagar_explode) {
2698 MY(airfriction) = 12;
2699 MY(alpha_min) = 128;
2700 MY(alpha_max) = 256;
2701 MY(alpha_fade) = 456;
2702 MY(bounce) = 1.500000;
2703 MY(color_min) = "0x8f0d00";
2704 MY(color_max) = "0xff5a00";
2705 MY(count) = 12;
2706 MY(liquidfriction) = 8;
2707 MY(notunderwater) = true;
2708 MY(originjitter) = '8.0 8.0 8.0';
2709 MY(sizeincrease) = 15;
2710 MY(size_min) = 20;
2711 MY(size_max) = 26;
2712 MY(tex_min) = 48;
2713 MY(tex_max) = 55;
2714 MY(type) = "static";
2715 MY(velocityjitter) = '286.0 286.0 286.0';
2716}
2717// smoke
2718SUB(hagar_explode) {
2719 MY(airfriction) = 5;
2720 MY(alpha_min) = 200;
2721 MY(alpha_max) = 500;
2722 MY(alpha_fade) = 600;
2723 MY(bounce) = 2;
2724 MY(color_min) = "0x000000";
2725 MY(color_max) = "0x111111";
2726 MY(count) = 7;
2727 MY(notunderwater) = true;
2728 MY(sizeincrease) = 20;
2729 MY(size_min) = 20;
2730 MY(size_max) = 40;
2731 MY(tex_max) = 8;
2732 MY(type) = "alphastatic";
2733 MY(velocityjitter) = '244.0 244.0 244.0';
2734}
2735// underwater bubbles
2736SUB(hagar_explode) {
2737 MY(alpha_min) = 128;
2738 MY(alpha_max) = 256;
2739 MY(alpha_fade) = 64;
2740 MY(bounce) = 1.500000;
2741 MY(color_min) = "0x404040";
2742 MY(color_max) = "0x808080";
2743 MY(count) = 16;
2744 MY(gravity) = -0.125000;
2745 MY(liquidfriction) = 0.250000;
2746 MY(originjitter) = '16.0 16.0 16.0';
2747 MY(size_min) = 3;
2748 MY(size_max) = 3;
2749 MY(tex_min) = 62;
2750 MY(tex_max) = 62;
2751 MY(type) = "bubble";
2752 MY(underwater) = true;
2753 MY(velocityjitter) = '96.0 96.0 96.0';
2754}
2755// bouncing sparks
2756SUB(hagar_explode) {
2757 MY(airfriction) = 1;
2758 MY(alpha_min) = 644;
2759 MY(alpha_max) = 956;
2760 MY(alpha_fade) = 684;
2761 MY(bounce) = 1.600000;
2762 MY(color_min) = "0xffa35b";
2763 MY(color_max) = "0xfff2be";
2764 MY(count) = 4;
2765 MY(gravity) = 1;
2766 MY(liquidfriction) = 0.800000;
2767 MY(notunderwater) = true;
2768 MY(originjitter) = '16.0 16.0 16.0';
2769 MY(size_min) = 1;
2770 MY(size_max) = 0.100000;
2771 MY(tex_min) = 40;
2772 MY(tex_max) = 40;
2773 MY(type) = "spark";
2774 MY(velocityjitter) = '224.0 224.0 224.0';
2775 MY(velocityoffset) = '0.0 0.0 80.0';
2776}
2777
2778DEF(rocketlauncher_muzzleflash);
2779SUB(rocketlauncher_muzzleflash) {
2780 MY(airfriction) = 2;
2781 MY(alpha_min) = 256;
2782 MY(alpha_max) = 256;
2783 MY(alpha_fade) = 256;
2784 MY(color_min) = "0x202020";
2785 MY(color_max) = "0x404040";
2786 MY(count) = 10;
2787 MY(originjitter) = '1.5 1.5 1.5';
2788 MY(sizeincrease) = 20;
2789 MY(size_min) = 1;
2790 MY(size_max) = 1;
2791 MY(tex_max) = 8;
2792 MY(type) = "smoke";
2793 MY(velocityjitter) = '40.0 40.0 40.0';
2794 MY(velocitymultiplier) = -0.130000;
2795}
2796SUB(rocketlauncher_muzzleflash) {
2797 MY(airfriction) = 9;
2798 MY(alpha_min) = 10;
2799 MY(alpha_max) = 25;
2800 MY(alpha_fade) = 20;
2801 MY(color_min) = "0xFFFDD9";
2802 MY(color_max) = "0xFFFDD9";
2803 MY(count) = 6;
2804 MY(originjitter) = '3.0 3.0 3.0';
2805 MY(startangle_min) = -180;
2806 MY(startangle_max) = 180;
2807 MY(spin_min) = -30;
2808 MY(spin_max) = 30;
2809 MY(sizeincrease) = 20;
2810 MY(size_min) = 5;
2811 MY(size_max) = 10;
2812 MY(tex_min) = 35;
2813 MY(tex_max) = 36;
2814 MY(type) = "smoke";
2815 MY(velocityjitter) = '100.0 100.0 100.0';
2816 MY(velocitymultiplier) = 0.300000;
2817}
2818
2819// rocket trail
2820DEF(TR_ROCKET);
2821// smoke
2822SUB(TR_ROCKET) {
2823 MY(alpha_min) = 200;
2824 MY(alpha_max) = 300;
2825 MY(alpha_fade) = 200;
2826 MY(bounce) = 1;
2827 MY(color_min) = "0x000000";
2828 MY(color_max) = "0x666666";
2829 MY(lightcolor) = '6.0 3.0 1.0';
2830 MY(lightradius) = 150;
2831 MY(notunderwater) = true;
2832 MY(originjitter) = '2.0 2.0 2.0';
2833 MY(startangle_min) = -180;
2834 MY(startangle_max) = 180;
2835 MY(spin_min) = -30;
2836 MY(spin_max) = 30;
2837 MY(sizeincrease) = 11;
2838 MY(size_min) = 3;
2839 MY(size_max) = 4;
2840 MY(tex_max) = 8;
2841 MY(trailspacing) = 10;
2842 MY(type) = "smoke";
2843 MY(velocityjitter) = '3.0 3.0 3.0';
2844 MY(velocitymultiplier) = -0.020000;
2845}
2846// fire
2847SUB(TR_ROCKET) {
2848 MY(airfriction) = 8;
2849 MY(alpha_min) = 100;
2850 MY(alpha_max) = 144;
2851 MY(alpha_fade) = 588;
2852 MY(color_min) = "0xffdf72";
2853 MY(color_max) = "0x811200";
2854 MY(sizeincrease) = -30;
2855 MY(size_min) = 7;
2856 MY(size_max) = 7;
2857 MY(tex_min) = 48;
2858 MY(tex_max) = 55;
2859 MY(trailspacing) = 4;
2860 MY(type) = "static";
2861 MY(velocityjitter) = '32.0 32.0 32.0';
2862 MY(velocitymultiplier) = -1.500000;
2863}
2864// bubbles
2865SUB(TR_ROCKET) {
2866 MY(alpha_min) = 256;
2867 MY(alpha_max) = 256;
2868 MY(alpha_fade) = 256;
2869 MY(bounce) = 1.500000;
2870 MY(gravity) = -0.125000;
2871 MY(liquidfriction) = 4;
2872 MY(size_min) = 1;
2873 MY(size_max) = 2;
2874 MY(tex_min) = 62;
2875 MY(tex_max) = 62;
2876 MY(trailspacing) = 16;
2877 MY(type) = "bubble";
2878 MY(underwater) = true;
2879 MY(velocityjitter) = '16.0 16.0 16.0';
2880 MY(velocitymultiplier) = -0.310000;
2881}
2882// sparks
2883SUB(TR_ROCKET) {
2884 MY(airfriction) = 5;
2885 MY(alpha_min) = 444;
2886 MY(alpha_max) = 512;
2887 MY(alpha_fade) = 1866;
2888 MY(bounce) = 1;
2889 MY(color_min) = "0xFFFDD9";
2890 MY(color_max) = "0xFFFDD9";
2891 MY(notunderwater) = true;
2892 MY(originjitter) = '1.0 1.0 1.0';
2893 MY(size_min) = 0.500000;
2894 MY(size_max) = 0.500000;
2895 MY(stretchfactor) = 0.300000;
2896 MY(tex_min) = 40;
2897 MY(tex_max) = 40;
2898 MY(trailspacing) = 20;
2899 MY(type) = "spark";
2900 MY(velocityjitter) = '100.0 100.0 100.0';
2901 MY(velocitymultiplier) = -0.310000;
2902}
2903
2904// rocket explosion (bigger than mortar and hagar)
2905DEF(rocket_explode);
2906SUB(rocket_explode) {
2907 MY(alpha_min) = 256;
2908 MY(alpha_max) = 256;
2909 MY(countabsolute) = 1;
2910 MY(lightcolor) = '8.0 4.0 1.0';
2911 MY(lightradiusfade) = 750;
2912 MY(lightradius) = 400;
2913 MY(originjitter) = '23.0 23.0 23.0';
2914 MY(size_min) = 72;
2915 MY(size_max) = 72;
2916 MY(tex_min) = 8;
2917 MY(tex_max) = 16;
2918 MY(type) = "decal";
2919}
2920// fire effect
2921SUB(rocket_explode) {
2922 MY(airfriction) = 8;
2923 MY(alpha_min) = 200;
2924 MY(alpha_max) = 256;
2925 MY(alpha_fade) = 512;
2926 MY(bounce) = 1.500000;
2927 MY(color_min) = "0x8f0d00";
2928 MY(color_max) = "0xff5a00";
2929 MY(count) = 32;
2930 MY(liquidfriction) = 8;
2931 MY(notunderwater) = true;
2932 MY(originjitter) = '8.0 8.0 8.0';
2933 MY(sizeincrease) = 45;
2934 MY(size_min) = 33;
2935 MY(size_max) = 44;
2936 MY(tex_min) = 48;
2937 MY(tex_max) = 55;
2938 MY(type) = "static";
2939 MY(velocityjitter) = '512.0 512.0 512.0';
2940}
2941// fire effect 2
2942SUB(rocket_explode) {
2943 MY(airfriction) = 19;
2944 MY(alpha_min) = 200;
2945 MY(alpha_max) = 256;
2946 MY(alpha_fade) = 612;
2947 MY(bounce) = 2.500000;
2948 MY(color_min) = "0xea691b";
2949 MY(color_max) = "0xeed05a";
2950 MY(count) = 14;
2951 MY(liquidfriction) = 19;
2952 MY(notunderwater) = true;
2953 MY(originjitter) = '8.0 8.0 8.0';
2954 MY(sizeincrease) = 55;
2955 MY(size_min) = 33;
2956 MY(size_max) = 44;
2957 MY(tex_min) = 48;
2958 MY(tex_max) = 55;
2959 MY(type) = "smoke";
2960 MY(velocityjitter) = '912.0 912.0 912.0';
2961}
2962// smoke
2963SUB(rocket_explode) {
2964 MY(airfriction) = 5;
2965 MY(alpha_min) = 200;
2966 MY(alpha_max) = 450;
2967 MY(alpha_fade) = 456;
2968 MY(bounce) = 2;
2969 MY(color_min) = "0x000000";
2970 MY(color_max) = "0x111111";
2971 MY(count) = 32;
2972 MY(notunderwater) = true;
2973 MY(sizeincrease) = 44;
2974 MY(size_min) = 20;
2975 MY(size_max) = 40;
2976 MY(tex_max) = 8;
2977 MY(type) = "alphastatic";
2978 MY(velocityjitter) = '444.0 444.0 444.0';
2979}
2980// underwater bubbles
2981SUB(rocket_explode) {
2982 MY(alpha_min) = 128;
2983 MY(alpha_max) = 256;
2984 MY(alpha_fade) = 64;
2985 MY(bounce) = 1.500000;
2986 MY(color_min) = "0x404040";
2987 MY(color_max) = "0x808080";
2988 MY(count) = 32;
2989 MY(gravity) = -0.125000;
2990 MY(liquidfriction) = 0.250000;
2991 MY(originjitter) = '16.0 16.0 16.0';
2992 MY(size_min) = 3;
2993 MY(size_max) = 3;
2994 MY(tex_min) = 62;
2995 MY(tex_max) = 62;
2996 MY(type) = "bubble";
2997 MY(underwater) = true;
2998 MY(velocityjitter) = '144.0 144.0 144.0';
2999}
3000// underwatershockwave
3001SUB(rocket_explode) {
3002 MY(alpha_min) = 40;
3003 MY(alpha_max) = 40;
3004 MY(alpha_fade) = 300;
3005 MY(countabsolute) = 1;
3006 MY(sizeincrease) = 1900;
3007 MY(size_min) = 30;
3008 MY(size_max) = 30;
3009 MY(tex_min) = 33;
3010 MY(tex_max) = 33;
3011 MY(type) = "smoke";
3012 MY(underwater) = true;
3013 MY(velocitymultiplier) = 0.300000;
3014}
3015// bouncing sparks
3016SUB(rocket_explode) {
3017 MY(airfriction) = 1;
3018 MY(alpha_min) = 644;
3019 MY(alpha_max) = 956;
3020 MY(alpha_fade) = 484;
3021 MY(bounce) = 1.600000;
3022 MY(color_min) = "0xffa35b";
3023 MY(color_max) = "0xfff2be";
3024 MY(count) = 16;
3025 MY(gravity) = 1;
3026 MY(liquidfriction) = 0.800000;
3027 MY(notunderwater) = true;
3028 MY(originjitter) = '16.0 16.0 16.0';
3029 MY(size_min) = 1;
3030 MY(size_max) = 0.100000;
3031 MY(tex_min) = 40;
3032 MY(tex_max) = 40;
3033 MY(type) = "spark";
3034 MY(velocityjitter) = '424.0 424.0 624.0';
3035 MY(velocityoffset) = '0.0 0.0 80.0';
3036}
3037// debris
3038SUB(rocket_explode) {
3039 MY(airfriction) = 0.500000;
3040 MY(alpha_min) = 644;
3041 MY(alpha_max) = 956;
3042 MY(alpha_fade) = 684;
3043 MY(bounce) = 1.600000;
3044 MY(color_min) = "0x6a3d25";
3045 MY(color_max) = "0xcac5b4";
3046 MY(count) = 12;
3047 MY(gravity) = 1.300000;
3048 MY(notunderwater) = true;
3049 MY(startangle_min) = -180;
3050 MY(startangle_max) = 180;
3051 MY(spin_min) = -1000;
3052 MY(spin_max) = 1000;
3053 MY(size_min) = 2;
3054 MY(size_max) = 6;
3055 MY(tex_min) = 66;
3056 MY(tex_max) = 68;
3057 MY(type) = "alphastatic";
3058 MY(velocityjitter) = '324.0 324.0 524.0';
3059}
3060
3061DEF(grapple_muzzleflash);
3062SUB(grapple_muzzleflash) {
3063 MY(lightcolor) = '1.0 0.0 0.0';
3064 MY(lightradiusfade) = 800;
3065 MY(lightradius) = 160;
3066}
3067
3068DEF(grapple_impact);
3069SUB(grapple_impact) {
3070 MY(lightcolor) = '1.0 0.0 0.0';
3071 MY(lightradiusfade) = 800;
3072 MY(lightradius) = 160;
3073}
3074
3075DEF(nex242_misc_laser_beam);
3076SUB(nex242_misc_laser_beam) {
3077 MY(alpha_min) = 256;
3078 MY(alpha_max) = 256;
3079 MY(alpha_fade) = 64;
3080 MY(color_min) = "0xff0000";
3081 MY(color_max) = "0xff0000";
3082 MY(countabsolute) = 1;
3083 MY(sizeincrease) = 1;
3084 MY(size_min) = 1;
3085 MY(size_max) = 1;
3086 MY(tex_min) = 200;
3087 MY(tex_max) = 200;
3088 MY(type) = "beam";
3089}
3090
3091DEF(nex242_misc_laser_beam_end);
3092SUB(nex242_misc_laser_beam_end) {
3093 MY(alpha_min) = 128;
3094 MY(alpha_max) = 256;
3095 MY(alpha_fade) = 768;
3096 MY(bounce) = -1;
3097 MY(color_min) = "0x8f4333";
3098 MY(color_max) = "0xfff31b";
3099 MY(count) = 0.500000;
3100 MY(gravity) = 1;
3101 MY(size_min) = 0.400000;
3102 MY(size_max) = 0.400000;
3103 MY(type) = "spark";
3104 MY(velocityjitter) = '64.0 64.0 64.0';
3105 MY(velocitymultiplier) = 100;
3106}
3107
3108DEF(nex242_misc_laser_beam_fast);
3109SUB(nex242_misc_laser_beam_fast) {
3110 MY(alpha_min) = 256;
3111 MY(alpha_max) = 256;
3112 MY(alpha_fade) = 640;
3113 MY(color_min) = "0xff0000";
3114 MY(color_max) = "0xff0000";
3115 MY(countabsolute) = 1;
3116 MY(sizeincrease) = 0.100000;
3117 MY(size_min) = 1;
3118 MY(size_max) = 1;
3119 MY(tex_min) = 200;
3120 MY(tex_max) = 200;
3121 MY(type) = "beam";
3122}
3123
3124DEF(nex242_misc_laser_beam_fast_end);
3125SUB(nex242_misc_laser_beam_fast_end) {
3126 MY(alpha_min) = 128;
3127 MY(alpha_max) = 256;
3128 MY(alpha_fade) = 768;
3129 MY(bounce) = -1;
3130 MY(color_min) = "0x8f4333";
3131 MY(color_max) = "0xfff31b";
3132 MY(count) = 0.500000;
3133 MY(gravity) = 1;
3134 MY(size_min) = 0.400000;
3135 MY(size_max) = 0.400000;
3136 MY(type) = "spark";
3137 MY(velocityjitter) = '64.0 64.0 64.0';
3138 MY(velocitymultiplier) = 100;
3139}
3140
3141DEF(nex242_misc_laser_green_beam);
3142SUB(nex242_misc_laser_green_beam) {
3143 MY(alpha_min) = 256;
3144 MY(alpha_max) = 256;
3145 MY(alpha_fade) = 64;
3146 MY(color_min) = "0x00ff00";
3147 MY(color_max) = "0x00ff00";
3148 MY(countabsolute) = 1;
3149 MY(sizeincrease) = 1;
3150 MY(size_min) = 1;
3151 MY(size_max) = 1;
3152 MY(tex_min) = 200;
3153 MY(tex_max) = 200;
3154 MY(type) = "beam";
3155}
3156
3157DEF(nex242_misc_laser_green_beam_end);
3158SUB(nex242_misc_laser_green_beam_end) {
3159 MY(alpha_min) = 128;
3160 MY(alpha_max) = 256;
3161 MY(alpha_fade) = 768;
3162 MY(bounce) = -1;
3163 MY(color_min) = "0x8f4333";
3164 MY(color_max) = "0xfff31b";
3165 MY(count) = 0.500000;
3166 MY(gravity) = 1;
3167 MY(size_min) = 0.400000;
3168 MY(size_max) = 0.400000;
3169 MY(type) = "spark";
3170 MY(velocityjitter) = '64.0 64.0 64.0';
3171 MY(velocitymultiplier) = 100;
3172}
3173
3174DEF(nex242_misc_laser_blue_beam);
3175SUB(nex242_misc_laser_blue_beam) {
3176 MY(alpha_min) = 256;
3177 MY(alpha_max) = 256;
3178 MY(alpha_fade) = 64;
3179 MY(color_min) = "0x0000ff";
3180 MY(color_max) = "0x0000ff";
3181 MY(countabsolute) = 1;
3182 MY(sizeincrease) = 1;
3183 MY(size_min) = 1;
3184 MY(size_max) = 1;
3185 MY(tex_min) = 200;
3186 MY(tex_max) = 200;
3187 MY(type) = "beam";
3188}
3189
3190DEF(nex242_misc_laser_blue_beam_end);
3191SUB(nex242_misc_laser_blue_beam_end) {
3192 MY(alpha_min) = 128;
3193 MY(alpha_max) = 256;
3194 MY(alpha_fade) = 768;
3195 MY(bounce) = -1;
3196 MY(color_min) = "0x8f4333";
3197 MY(color_max) = "0xfff31b";
3198 MY(count) = 0.500000;
3199 MY(gravity) = 1;
3200 MY(size_min) = 0.400000;
3201 MY(size_max) = 0.400000;
3202 MY(type) = "spark";
3203 MY(velocityjitter) = '64.0 64.0 64.0';
3204 MY(velocitymultiplier) = 100;
3205}
3206
3207DEF(nex242_misc_laser_yellow_beam);
3208SUB(nex242_misc_laser_yellow_beam) {
3209 MY(alpha_min) = 256;
3210 MY(alpha_max) = 256;
3211 MY(alpha_fade) = 64;
3212 MY(color_min) = "0xffff00";
3213 MY(color_max) = "0xffff00";
3214 MY(countabsolute) = 1;
3215 MY(sizeincrease) = 1;
3216 MY(size_min) = 1;
3217 MY(size_max) = 1;
3218 MY(tex_min) = 200;
3219 MY(tex_max) = 200;
3220 MY(type) = "beam";
3221}
3222
3223DEF(nex242_misc_laser_yellow_beam_end);
3224SUB(nex242_misc_laser_yellow_beam_end) {
3225 MY(alpha_min) = 128;
3226 MY(alpha_max) = 256;
3227 MY(alpha_fade) = 768;
3228 MY(bounce) = -1;
3229 MY(color_min) = "0x8f4333";
3230 MY(color_max) = "0xfff31b";
3231 MY(count) = 0.500000;
3232 MY(gravity) = 1;
3233 MY(size_min) = 0.400000;
3234 MY(size_max) = 0.400000;
3235 MY(type) = "spark";
3236 MY(velocityjitter) = '64.0 64.0 64.0';
3237 MY(velocitymultiplier) = 100;
3238}
3239
3240DEF(nex242_misc_laser_cyan_beam);
3241SUB(nex242_misc_laser_cyan_beam) {
3242 MY(alpha_min) = 256;
3243 MY(alpha_max) = 256;
3244 MY(alpha_fade) = 64;
3245 MY(color_min) = "0x00ffff";
3246 MY(color_max) = "0x00ffff";
3247 MY(countabsolute) = 1;
3248 MY(sizeincrease) = 1;
3249 MY(size_min) = 1;
3250 MY(size_max) = 1;
3251 MY(tex_min) = 200;
3252 MY(tex_max) = 200;
3253 MY(type) = "beam";
3254}
3255
3256DEF(nex242_misc_laser_cyan_beam_end);
3257SUB(nex242_misc_laser_cyan_beam_end) {
3258 MY(alpha_min) = 128;
3259 MY(alpha_max) = 256;
3260 MY(alpha_fade) = 768;
3261 MY(bounce) = -1;
3262 MY(color_min) = "0x8f4333";
3263 MY(color_max) = "0xfff31b";
3264 MY(count) = 0.500000;
3265 MY(gravity) = 1;
3266 MY(size_min) = 0.400000;
3267 MY(size_max) = 0.400000;
3268 MY(type) = "spark";
3269 MY(velocityjitter) = '64.0 64.0 64.0';
3270 MY(velocitymultiplier) = 100;
3271}
3272
3273DEF(nex242_misc_laser_magenta_beam);
3274SUB(nex242_misc_laser_magenta_beam) {
3275 MY(alpha_min) = 256;
3276 MY(alpha_max) = 256;
3277 MY(alpha_fade) = 64;
3278 MY(color_min) = "0xff00ff";
3279 MY(color_max) = "0xff00ff";
3280 MY(countabsolute) = 1;
3281 MY(sizeincrease) = 1;
3282 MY(size_min) = 1;
3283 MY(size_max) = 1;
3284 MY(tex_min) = 200;
3285 MY(tex_max) = 200;
3286 MY(type) = "beam";
3287}
3288
3289DEF(nex242_misc_laser_magenta_beam_end);
3290SUB(nex242_misc_laser_magenta_beam_end) {
3291 MY(alpha_min) = 128;
3292 MY(alpha_max) = 256;
3293 MY(alpha_fade) = 768;
3294 MY(bounce) = -1;
3295 MY(color_min) = "0x8f4333";
3296 MY(color_max) = "0xfff31b";
3297 MY(count) = 0.500000;
3298 MY(gravity) = 1;
3299 MY(size_min) = 0.400000;
3300 MY(size_max) = 0.400000;
3301 MY(type) = "spark";
3302 MY(velocityjitter) = '64.0 64.0 64.0';
3303 MY(velocitymultiplier) = 100;
3304}
3305
3306DEF(nex242_misc_laser_white_beam);
3307SUB(nex242_misc_laser_white_beam) {
3308 MY(alpha_min) = 256;
3309 MY(alpha_max) = 256;
3310 MY(alpha_fade) = 64;
3311 MY(color_min) = "0xffffff";
3312 MY(color_max) = "0xffffff";
3313 MY(countabsolute) = 1;
3314 MY(sizeincrease) = 1;
3315 MY(size_min) = 1;
3316 MY(size_max) = 1;
3317 MY(tex_min) = 200;
3318 MY(tex_max) = 200;
3319 MY(type) = "beam";
3320}
3321
3322DEF(nex242_misc_laser_white_beam_end);
3323SUB(nex242_misc_laser_white_beam_end) {
3324 MY(alpha_min) = 128;
3325 MY(alpha_max) = 256;
3326 MY(alpha_fade) = 768;
3327 MY(bounce) = -1;
3328 MY(color_min) = "0x8f4333";
3329 MY(color_max) = "0xfff31b";
3330 MY(count) = 0.500000;
3331 MY(gravity) = 1;
3332 MY(size_min) = 0.400000;
3333 MY(size_max) = 0.400000;
3334 MY(type) = "spark";
3335 MY(velocityjitter) = '64.0 64.0 64.0';
3336 MY(velocitymultiplier) = 100;
3337}
3338
3339DEF(nex242_misc_laser_black_beam);
3340SUB(nex242_misc_laser_black_beam) {
3341 MY(alpha_min) = 256;
3342 MY(alpha_max) = 256;
3343 MY(alpha_fade) = 64;
3344 MY(color_min) = "0x000000";
3345 MY(color_max) = "0x000000";
3346 MY(countabsolute) = 1;
3347 MY(sizeincrease) = 1;
3348 MY(size_min) = 1;
3349 MY(size_max) = 1;
3350 MY(tex_min) = 200;
3351 MY(tex_max) = 200;
3352 MY(type) = "beam";
3353}
3354
3355DEF(nex242_misc_laser_black_beam_end);
3356SUB(nex242_misc_laser_black_beam_end) {
3357 MY(alpha_min) = 128;
3358 MY(alpha_max) = 256;
3359 MY(alpha_fade) = 768;
3360 MY(bounce) = -1;
3361 MY(color_min) = "0x8f4333";
3362 MY(color_max) = "0xfff31b";
3363 MY(count) = 0.500000;
3364 MY(gravity) = 1;
3365 MY(size_min) = 0.400000;
3366 MY(size_max) = 0.400000;
3367 MY(type) = "spark";
3368 MY(velocityjitter) = '64.0 64.0 64.0';
3369 MY(velocitymultiplier) = 100;
3370}
3371
3372DEF(nex242_misc_laser_orange_beam);
3373SUB(nex242_misc_laser_orange_beam) {
3374 MY(alpha_min) = 256;
3375 MY(alpha_max) = 256;
3376 MY(alpha_fade) = 64;
3377 MY(color_min) = "0xff6600";
3378 MY(color_max) = "0xff6600";
3379 MY(countabsolute) = 1;
3380 MY(sizeincrease) = 1;
3381 MY(size_min) = 1;
3382 MY(size_max) = 1;
3383 MY(tex_min) = 200;
3384 MY(tex_max) = 200;
3385 MY(type) = "beam";
3386}
3387
3388DEF(nex242_misc_laser_orange_beam_end);
3389SUB(nex242_misc_laser_orange_beam_end) {
3390 MY(alpha_min) = 128;
3391 MY(alpha_max) = 256;
3392 MY(alpha_fade) = 768;
3393 MY(bounce) = -1;
3394 MY(color_min) = "0x8f4333";
3395 MY(color_max) = "0xfff31b";
3396 MY(count) = 0.500000;
3397 MY(gravity) = 1;
3398 MY(size_min) = 0.400000;
3399 MY(size_max) = 0.400000;
3400 MY(type) = "spark";
3401 MY(velocityjitter) = '64.0 64.0 64.0';
3402 MY(velocitymultiplier) = 100;
3403}
3404
3405// bigger crylink impact effect
3406DEF(crylink_impactbig);
3407// decal
3408SUB(crylink_impactbig) {
3409 MY(alpha_min) = 256;
3410 MY(alpha_max) = 256;
3411 MY(countabsolute) = 1;
3412 MY(originjitter) = '12.0 12.0 12.0';
3413 MY(size_min) = 24;
3414 MY(size_max) = 24;
3415 MY(tex_min) = 47;
3416 MY(tex_max) = 47;
3417 MY(type) = "decal";
3418}
3419// purple flare effect
3420SUB(crylink_impactbig) {
3421 MY(alpha_min) = 256;
3422 MY(alpha_max) = 256;
3423 MY(alpha_fade) = 512;
3424 MY(color_min) = "0x504060";
3425 MY(color_max) = "0x504060";
3426 MY(countabsolute) = 1;
3427 MY(size_min) = 24;
3428 MY(size_max) = 24;
3429 MY(tex_min) = 39;
3430 MY(tex_max) = 39;
3431 MY(type) = "static";
3432}
3433// purple sparks
3434SUB(crylink_impactbig) {
3435 MY(alpha_min) = 256;
3436 MY(alpha_max) = 256;
3437 MY(alpha_fade) = 1024;
3438 MY(bounce) = 2;
3439 MY(color_min) = "0xA040C0";
3440 MY(color_max) = "0xA040C0";
3441 MY(count) = 40;
3442 MY(size_min) = 6;
3443 MY(size_max) = 6;
3444 MY(tex_min) = 41;
3445 MY(tex_max) = 41;
3446 MY(type) = "spark";
3447 MY(velocityjitter) = '512.0 512.0 512.0';
3448}
3449// purple splash
3450SUB(crylink_impactbig) {
3451 MY(alpha_min) = 256;
3452 MY(alpha_max) = 256;
3453 MY(alpha_fade) = 512;
3454 MY(color_min) = "0xE070FF";
3455 MY(color_max) = "0xE070FF";
3456 MY(count) = 1.500000;
3457 MY(size_min) = 16;
3458 MY(size_max) = 16;
3459 MY(type) = "static";
3460 MY(velocityjitter) = '32.0 32.0 32.0';
3461}
3462// purple splash
3463SUB(crylink_impactbig) {
3464 MY(alpha_min) = 256;
3465 MY(alpha_max) = 256;
3466 MY(alpha_fade) = 1024;
3467 MY(color_min) = "0xE070FF";
3468 MY(color_max) = "0xE070FF";
3469 MY(count) = 3;
3470 MY(size_min) = 16;
3471 MY(size_max) = 16;
3472 MY(type) = "static";
3473 MY(velocityjitter) = '256.0 256.0 256.0';
3474}
3475
3476#include "effectinfo_gentle.inc"
3477
3478DEF(laser_deadly);
3479// decal
3480SUB(laser_deadly) {
3481 MY(alpha_min) = 256;
3482 MY(alpha_max) = 256;
3483 MY(countabsolute) = 1;
3484 MY(originjitter) = '6.0 6.0 6.0';
3485 MY(size_min) = 5;
3486 MY(size_max) = 5;
3487 MY(tex_min) = 56;
3488 MY(tex_max) = 59;
3489 MY(type) = "decal";
3490}
3491// dust/smoke drifting away from the impact
3492SUB(laser_deadly) {
3493 MY(airfriction) = 7;
3494 MY(alpha_max) = 64;
3495 MY(alpha_fade) = 64;
3496 MY(color_min) = "0xFFFFFF";
3497 MY(color_max) = "0xFFFFFF";
3498 MY(count) = 0.025000;
3499 MY(liquidfriction) = 16;
3500 MY(originjitter) = '1.0 1.0 1.0';
3501 MY(sizeincrease) = 2;
3502 MY(size_min) = 3;
3503 MY(size_max) = 3;
3504 MY(tex_min) = 48;
3505 MY(tex_max) = 55;
3506 MY(type) = "smoke";
3507 MY(velocityjitter) = '15.0 15.0 15.0';
3508 MY(velocitymultiplier) = 20;
3509}
3510// sparks
3511SUB(laser_deadly) {
3512 MY(airfriction) = 5;
3513 MY(alpha_min) = 256;
3514 MY(alpha_max) = 256;
3515 MY(alpha_fade) = 768;
3516 MY(bounce) = 1;
3517 MY(color_min) = "0xFDFFD9";
3518 MY(color_max) = "0xFDFFD9";
3519 MY(count) = 0.025000;
3520 MY(gravity) = 1;
3521 MY(notunderwater) = true;
3522 MY(originjitter) = '1.0 1.0 1.0';
3523 MY(size_min) = 0.600000;
3524 MY(size_max) = 0.600000;
3525 MY(tex_min) = 40;
3526 MY(tex_max) = 40;
3527 MY(type) = "spark";
3528 MY(velocityjitter) = '100.0 100.0 100.0';
3529 MY(velocitymultiplier) = 100;
3530}
3531
3532DEF(torch_small);
3533// fire
3534SUB(torch_small) {
3535 MY(alpha_min) = 200;
3536 MY(alpha_max) = 256;
3537 MY(alpha_fade) = 512;
3538 MY(color_min) = "0x8f0d00";
3539 MY(color_max) = "0xff5a00";
3540 MY(count) = 8;
3541 MY(gravity) = -0.500000;
3542 MY(originjitter) = '5.0 5.0 5.0';
3543 MY(sizeincrease) = -1;
3544 MY(size_min) = 1;
3545 MY(size_max) = 11;
3546 MY(tex_min) = 48;
3547 MY(tex_max) = 55;
3548 MY(type) = "smoke";
3549 MY(velocityjitter) = '1.0 1.0 50.0';
3550}
3551// smoke
3552SUB(torch_small) {
3553 MY(alpha_min) = 200;
3554 MY(alpha_max) = 256;
3555 MY(alpha_fade) = 200;
3556 MY(color_min) = "0x000000";
3557 MY(color_max) = "0x111111";
3558 MY(count) = 4;
3559 MY(gravity) = -0.300000;
3560 MY(originjitter) = '3.0 3.0 3.0';
3561 MY(sizeincrease) = 5;
3562 MY(size_min) = 5;
3563 MY(size_max) = 10;
3564 MY(tex_max) = 8;
3565 MY(type) = "alphastatic";
3566 MY(velocityjitter) = '11.0 11.0 50.0';
3567}
3568
3569DEF(fountain01);
3570SUB(fountain01) {
3571 MY(alpha_max) = 100;
3572 MY(alpha_fade) = 100;
3573 MY(bounce) = 1;
3574 MY(color_min) = "0x7cbaff";
3575 MY(color_max) = "0xcfd1ff";
3576 MY(count) = 16;
3577 MY(gravity) = 0.600000;
3578 MY(originjitter) = '5.0 5.0 5.0';
3579 MY(sizeincrease) = 20;
3580 MY(size_min) = 10;
3581 MY(size_max) = 15;
3582 MY(tex_max) = 8;
3583 MY(type) = "snow";
3584 MY(velocityjitter) = '81.0 81.0 150.0';
3585 MY(velocitymultiplier) = 2;
3586}
3587
3588DEF(hookbomb_explode);
3589// decal
3590SUB(hookbomb_explode) {
3591 MY(airfriction) = 10;
3592 MY(alpha_max) = 256;
3593 MY(alpha_fade) = 200;
3594 MY(bounce) = 1.500000;
3595 MY(color_min) = "0x807aff";
3596 MY(color_max) = "0x4463d5";
3597 MY(count) = 25;
3598 MY(originjitter) = '10.0 10.0 10.0';
3599 MY(sizeincrease) = -160;
3600 MY(size_min) = 150;
3601 MY(size_max) = 200;
3602 MY(tex_min) = 38;
3603 MY(tex_max) = 38;
3604 MY(type) = "static";
3605 MY(velocityjitter) = '550.0 550.0 550.0';
3606}
3607// decal in the air
3608SUB(hookbomb_explode) {
3609 MY(alpha_min) = 256;
3610 MY(alpha_max) = 265;
3611 MY(alpha_fade) = 100;
3612 MY(color_min) = "0x807aff";
3613 MY(color_max) = "0x4463d5";
3614 MY(countabsolute) = 3;
3615 MY(originoffset) = '0.0 0.0 6.0';
3616 MY(sizeincrease) = -60;
3617 MY(size_min) = 160;
3618 MY(size_max) = 200;
3619 MY(tex_min) = 38;
3620 MY(tex_max) = 38;
3621 MY(type) = "static";
3622}
3623// decal on the ground
3624SUB(hookbomb_explode) {
3625 MY(alpha_min) = 256;
3626 MY(alpha_max) = 256;
3627 MY(countabsolute) = 1;
3628 MY(originjitter) = '6.0 6.0 6.0';
3629 MY(size_min) = 80;
3630 MY(size_max) = 100;
3631 MY(tex_min) = 39;
3632 MY(tex_max) = 39;
3633 MY(type) = "decal";
3634}
3635// some sparks
3636SUB(hookbomb_explode) {
3637 MY(airfriction) = 2;
3638 MY(alpha_min) = 256;
3639 MY(alpha_max) = 256;
3640 MY(alpha_fade) = 456;
3641 MY(bounce) = 1.500000;
3642 MY(color_min) = "0x807aff";
3643 MY(color_max) = "0x4463d5";
3644 MY(count) = 30;
3645 MY(gravity) = 1;
3646 MY(originjitter) = '1.0 1.0 1.0';
3647 MY(sizeincrease) = -60;
3648 MY(size_min) = 20;
3649 MY(size_max) = 30;
3650 MY(tex_min) = 38;
3651 MY(tex_max) = 38;
3652 MY(type) = "spark";
3653 MY(velocityjitter) = '1900.0 1900.0 1300.0';
3654 MY(velocitymultiplier) = 0.500000;
3655}
3656
3657DEF(EF_MGTURRETTRAIL);
3658// smoke
3659SUB(EF_MGTURRETTRAIL) {
3660 MY(alpha_min) = 128;
3661 MY(alpha_max) = 196;
3662 MY(alpha_fade) = 768;
3663 MY(color_min) = "0xd0d0a0";
3664 MY(color_max) = "0xffffff";
3665 MY(gravity) = -0.010000;
3666 MY(notunderwater) = true;
3667 MY(sizeincrease) = -8;
3668 MY(size_min) = 5;
3669 MY(size_max) = 4;
3670 MY(tex_max) = 8;
3671 MY(trailspacing) = 10;
3672 MY(type) = "smoke";
3673}
3674// bubbles
3675SUB(EF_MGTURRETTRAIL) {
3676 MY(alpha_min) = 256;
3677 MY(alpha_max) = 256;
3678 MY(alpha_fade) = 256;
3679 MY(bounce) = 1.500000;
3680 MY(color_min) = "0x404040";
3681 MY(color_max) = "0x808080";
3682 MY(gravity) = -0.125000;
3683 MY(liquidfriction) = 4;
3684 MY(size_min) = 1;
3685 MY(size_max) = 1;
3686 MY(tex_min) = 62;
3687 MY(tex_max) = 62;
3688 MY(trailspacing) = 32;
3689 MY(type) = "bubble";
3690 MY(underwater) = true;
3691 MY(velocityjitter) = '16.0 16.0 16.0';
3692}
3693
3694DEF(fire_big);
3695// fire
3696SUB(fire_big) {
3697 MY(alpha_min) = 200;
3698 MY(alpha_max) = 356;
3699 MY(alpha_fade) = 512;
3700 MY(bounce) = 2;
3701 MY(color_min) = "0x8f0d00";
3702 MY(color_max) = "0xff5a00";
3703 MY(count) = 26;
3704 MY(gravity) = -0.500000;
3705 MY(originjitter) = '33.0 33.0 33.0';
3706 MY(sizeincrease) = -3;
3707 MY(size_min) = 11;
3708 MY(size_max) = 31;
3709 MY(tex_min) = 48;
3710 MY(tex_max) = 55;
3711 MY(type) = "smoke";
3712 MY(velocityjitter) = '22.0 22.0 50.0';
3713}
3714// smoke
3715SUB(fire_big) {
3716 MY(alpha_min) = 200;
3717 MY(alpha_max) = 256;
3718 MY(alpha_fade) = 200;
3719 MY(bounce) = 2;
3720 MY(color_min) = "0x000000";
3721 MY(color_max) = "0x111111";
3722 MY(count) = 11;
3723 MY(gravity) = -0.300000;
3724 MY(originjitter) = '44.0 44.0 44.0';
3725 MY(sizeincrease) = 11;
3726 MY(size_min) = 22;
3727 MY(size_max) = 33;
3728 MY(tex_max) = 8;
3729 MY(type) = "alphastatic";
3730 MY(velocityjitter) = '11.0 11.0 50.0';
3731}
3732
3733#define flare(name, colormin, colormax) \
3734 DEF(name##_flare); \
3735 SUB(name##_flare) /* smoke */ { \
3736 MY(alpha_min) = 200; \
3737 MY(alpha_max) = 256; \
3738 MY(alpha_fade) = 160; \
3739 MY(bounce) = 1; \
3740 MY(color_min) = colormin; \
3741 MY(color_max) = colormax; \
3742 MY(count) = 10.500000; \
3743 MY(gravity) = -0.240000; \
3744 MY(originjitter) = '2.0 2.0 0.0'; \
3745 MY(sizeincrease) = 11; \
3746 MY(size_min) = 1; \
3747 MY(size_max) = 11; \
3748 MY(tex_max) = 8; \
3749 MY(type) = "alphastatic"; \
3750 MY(velocityjitter) = '15.0 15.0 30.0'; \
3751 }
3752
3753flare(red, "0xff0000", "0xdc7171")
3754flare(blue, "0x0000ff", "0x7194dc")
3755#undef flare
3756
3757DEF(smoke_ring);
3758// smoke
3759SUB(smoke_ring) {
3760 MY(airfriction) = 3;
3761 MY(alpha_min) = 100;
3762 MY(alpha_max) = 156;
3763 MY(alpha_fade) = 200;
3764 MY(bounce) = 1.100000;
3765 MY(color_min) = "0x111111";
3766 MY(color_max) = "0x979797";
3767 MY(count) = 45;
3768 MY(gravity) = 0.100000;
3769 MY(notunderwater) = true;
3770 MY(sizeincrease) = 21;
3771 MY(size_min) = 1;
3772 MY(size_max) = 11;
3773 MY(tex_max) = 8;
3774 MY(type) = "smoke";
3775 MY(velocityjitter) = '190.0 190.0 50.0';
3776}
3777
3778DEF(smoke_large);
3779// smoke
3780SUB(smoke_large) {
3781 MY(airfriction) = 7;
3782 MY(alpha_min) = 140;
3783 MY(alpha_max) = 256;
3784 MY(alpha_fade) = 190;
3785 MY(bounce) = 1.100000;
3786 MY(color_min) = "0x9e895f";
3787 MY(color_max) = "0xffd39b";
3788 MY(count) = 25;
3789 MY(gravity) = -0.150000;
3790 MY(notunderwater) = true;
3791 MY(sizeincrease) = 21;
3792 MY(size_min) = 11;
3793 MY(size_max) = 21;
3794 MY(tex_max) = 8;
3795 MY(type) = "alphastatic";
3796 MY(velocityjitter) = '390.0 390.0 390.0';
3797}
3798
3799DEF(sparks);
3800SUB(sparks) {
3801 MY(airfriction) = 3;
3802 MY(alpha_max) = 256;
3803 MY(alpha_fade) = 256;
3804 MY(bounce) = 1.500000;
3805 MY(color_min) = "0xFFFDD9";
3806 MY(color_max) = "0xFFFDD9";
3807 MY(count) = 15;
3808 MY(gravity) = 1;
3809 MY(originjitter) = '1.0 1.0 1.0';
3810 MY(size_min) = 1;
3811 MY(size_max) = 3;
3812 MY(tex_min) = 40;
3813 MY(tex_max) = 40;
3814 MY(type) = "spark";
3815 MY(velocityjitter) = '300.0 300.0 200.0';
3816 MY(velocitymultiplier) = 1.500000;
3817}
3818
3819DEF(electricity_sparks);
3820SUB(electricity_sparks) {
3821 MY(airfriction) = 3;
3822 MY(alpha_max) = 256;
3823 MY(alpha_fade) = 556;
3824 MY(bounce) = 1.500000;
3825 MY(color_min) = "0x807aff";
3826 MY(color_max) = "0x4463d5";
3827 MY(count) = 35;
3828 MY(gravity) = 1;
3829 MY(originjitter) = '1.0 1.0 1.0';
3830 MY(size_min) = 1;
3831 MY(size_max) = 3;
3832 MY(tex_min) = 40;
3833 MY(tex_max) = 40;
3834 MY(type) = "spark";
3835 MY(velocityjitter) = '300.0 300.0 300.0';
3836 MY(velocitymultiplier) = 0.500000;
3837}
3838
3839DEF(steam);
3840SUB(steam) {
3841 MY(airfriction) = 5;
3842 MY(alpha_min) = 140;
3843 MY(alpha_max) = 256;
3844 MY(alpha_fade) = 190;
3845 MY(bounce) = 1.100000;
3846 MY(color_min) = "0xfffbdf";
3847 MY(color_max) = "0xffffff";
3848 MY(count) = 1;
3849 MY(gravity) = -0.250000;
3850 MY(notunderwater) = true;
3851 MY(sizeincrease) = 7;
3852 MY(size_min) = 1;
3853 MY(size_max) = 3;
3854 MY(tex_max) = 8;
3855 MY(type) = "smoke";
3856 MY(velocityjitter) = '19.0 19.0 19.0';
3857 MY(velocitymultiplier) = 14;
3858}
3859
3860DEF(smoking);
3861SUB(smoking) {
3862 MY(airfriction) = -1;
3863 MY(alpha_min) = 100;
3864 MY(alpha_max) = 256;
3865 MY(alpha_fade) = 100;
3866 MY(bounce) = 1.500000;
3867 MY(color_min) = "0x292929";
3868 MY(color_max) = "0x000000";
3869 MY(count) = 10;
3870 MY(gravity) = -0.100000;
3871 MY(originjitter) = '10.0 10.0 10.0';
3872 MY(sizeincrease) = 5;
3873 MY(size_min) = 10;
3874 MY(size_max) = 40;
3875 MY(tex_max) = 8;
3876 MY(type) = "alphastatic";
3877 MY(velocityjitter) = '5.0 5.0 20.0';
3878}
3879
3880// golden dust (create it once per second to cover large area in small yellow particles)
3881DEF(goldendust);
3882SUB(goldendust) {
3883 MY(alpha_min) = 256;
3884 MY(alpha_max) = 256;
3885 MY(alpha_fade) = 70;
3886 MY(bounce) = 1.500000;
3887 MY(color_min) = "0xff9600";
3888 MY(color_max) = "0xffefb8";
3889 MY(count) = 25;
3890 MY(originjitter) = '500.0 500.0 500.0';
3891 MY(sizeincrease) = -0.300000;
3892 MY(size_min) = 2;
3893 MY(size_max) = 3;
3894 MY(tex_min) = 38;
3895 MY(tex_max) = 38;
3896 MY(type) = "snow";
3897 MY(velocityjitter) = '0.1 0.1 0.1';
3898}
3899
3900DEF(healing_fx);
3901SUB(healing_fx) {
3902 MY(airfriction) = -0.500000;
3903 MY(alpha_min) = 256;
3904 MY(alpha_max) = 256;
3905 MY(alpha_fade) = 170;
3906 MY(bounce) = 1.500000;
3907 MY(color_min) = "0xff0000";
3908 MY(color_max) = "0xff0000";
3909 MY(count) = 25;
3910 MY(gravity) = -0.100000;
3911 MY(originjitter) = '5.0 5.0 100.0';
3912 MY(sizeincrease) = -0.050000;
3913 MY(size_min) = 1;
3914 MY(size_max) = 3;
3915 MY(tex_min) = 40;
3916 MY(tex_max) = 40;
3917 MY(type) = "spark";
3918 MY(velocityjitter) = '50.0 50.0 0.0';
3919}
3920
3921DEF(armorrepair_fx);
3922SUB(armorrepair_fx) {
3923 MY(airfriction) = -0.500000;
3924 MY(alpha_min) = 256;
3925 MY(alpha_max) = 256;
3926 MY(alpha_fade) = 170;
3927 MY(bounce) = 1.500000;
3928 MY(color_min) = "0x00ff00";
3929 MY(color_max) = "0x00ff00";
3930 MY(count) = 25;
3931 MY(gravity) = -0.100000;
3932 MY(originjitter) = '5.0 5.0 50.0';
3933 MY(sizeincrease) = -0.050000;
3934 MY(size_min) = 1;
3935 MY(size_max) = 3;
3936 MY(tex_min) = 40;
3937 MY(tex_max) = 40;
3938 MY(type) = "spark";
3939 MY(velocityjitter) = '50.0 50.0 0.0';
3940}
3941
3942DEF(ammoregen_fx);
3943SUB(ammoregen_fx) {
3944 MY(airfriction) = -0.500000;
3945 MY(alpha_min) = 256;
3946 MY(alpha_max) = 256;
3947 MY(alpha_fade) = 170;
3948 MY(bounce) = 1.500000;
3949 MY(color_min) = "0x0000ff";
3950 MY(color_max) = "0x0000ff";
3951 MY(count) = 25;
3952 MY(gravity) = -0.100000;
3953 MY(originjitter) = '5.0 5.0 50.0';
3954 MY(sizeincrease) = -0.050000;
3955 MY(size_min) = 1;
3956 MY(size_max) = 3;
3957 MY(tex_min) = 40;
3958 MY(tex_max) = 40;
3959 MY(type) = "spark";
3960 MY(velocityjitter) = '50.0 50.0 0.0';
3961}
3962
3963// red-yellow flame like fx
3964DEF(rage);
3965SUB(rage) {
3966 MY(airfriction) = 2;
3967 MY(alpha_min) = 256;
3968 MY(alpha_max) = 256;
3969 MY(alpha_fade) = 190;
3970 MY(color_min) = "0xff0000";
3971 MY(color_max) = "0xff7800";
3972 MY(count) = 2.500000;
3973 MY(gravity) = -0.060000;
3974 MY(originjitter) = '5.0 5.0 5.0';
3975 MY(sizeincrease) = 10;
3976 MY(size_min) = 1;
3977 MY(size_max) = 3;
3978 MY(tex_min) = 35;
3979 MY(tex_max) = 36;
3980 MY(type) = "smoke";
3981 MY(velocityjitter) = '25.0 25.0 25.0';
3982}
3983
3984// pieces of glass or ice falling on the floor
3985DEF(iceorglass);
3986SUB(iceorglass) {
3987 MY(airfriction) = 3;
3988 MY(alpha_min) = 256;
3989 MY(alpha_max) = 256;
3990 MY(bounce) = 2;
3991 MY(color_min) = "0xffffff";
3992 MY(color_max) = "0xb2d3e6";
3993 MY(count) = 15;
3994 MY(gravity) = 1.300000;
3995 MY(originjitter) = '30.0 30.0 30.0';
3996 MY(size_min) = 3;
3997 MY(size_max) = 7;
3998 MY(tex_min) = 44;
3999 MY(tex_max) = 44;
4000 MY(time_min) = 1;
4001 MY(time_max) = 3;
4002 MY(type) = "alphastatic";
4003 MY(velocityjitter) = '100.0 100.0 100.0';
4004}
4005
4006// cover small area in poison gas, spawn it once per second
4007DEF(poisonfield);
4008SUB(poisonfield) {
4009 MY(airfriction) = 1;
4010 MY(alpha_min) = 256;
4011 MY(alpha_max) = 256;
4012 MY(alpha_fade) = 50;
4013 MY(bounce) = 1.500000;
4014 MY(color_min) = "0x00ff00";
4015 MY(color_max) = "0x7db843";
4016 MY(count) = 15;
4017 MY(gravity) = -0.010000;
4018 MY(originjitter) = '333.0 333.0 50.0';
4019 MY(sizeincrease) = 30;
4020 MY(size_min) = 1;
4021 MY(size_max) = 1;
4022 MY(tex_max) = 8;
4023 MY(type) = "smoke";
4024 MY(velocityjitter) = '5.0 5.0 5.0';
4025}
4026
4027// cover small area in dark fog, spawn it once per second
4028DEF(darkfield);
4029SUB(darkfield) {
4030 MY(airfriction) = 1;
4031 MY(alpha_min) = 256;
4032 MY(alpha_max) = 256;
4033 MY(alpha_fade) = 50;
4034 MY(bounce) = 1.500000;
4035 MY(color_min) = "0x600089";
4036 MY(color_max) = "0x000000";
4037 MY(count) = 10;
4038 MY(gravity) = -0.010000;
4039 MY(originjitter) = '333.0 333.0 0.0';
4040 MY(sizeincrease) = 10;
4041 MY(size_min) = 1;
4042 MY(size_max) = 1;
4043 MY(tex_max) = 8;
4044 MY(type) = "smoke";
4045 MY(velocityjitter) = '5.0 5.0 30.0';
4046}
4047SUB(darkfield) {
4048 MY(alpha_min) = 256;
4049 MY(alpha_max) = 256;
4050 MY(alpha_fade) = 50;
4051 MY(color_min) = "0x600089";
4052 MY(color_max) = "0x000000";
4053 MY(count) = 5;
4054 MY(gravity) = -0.001000;
4055 MY(originjitter) = '333.0 333.0 0.0';
4056 MY(sizeincrease) = 10;
4057 MY(size_min) = 1;
4058 MY(size_max) = 1;
4059 MY(tex_min) = 48;
4060 MY(tex_max) = 55;
4061 MY(type) = "smoke";
4062}
4063
4064// cover small area in icy mist, spawn it once per second
4065DEF(icefield);
4066SUB(icefield) {
4067 MY(airfriction) = 1;
4068 MY(alpha_min) = 256;
4069 MY(alpha_max) = 256;
4070 MY(alpha_fade) = 50;
4071 MY(bounce) = 1.500000;
4072 MY(color_min) = "0x008aff";
4073 MY(color_max) = "0x75e7ff";
4074 MY(count) = 10;
4075 MY(gravity) = -0.010000;
4076 MY(originjitter) = '333.0 333.0 0.0';
4077 MY(sizeincrease) = 10;
4078 MY(size_min) = 1;
4079 MY(size_max) = 1;
4080 MY(tex_max) = 8;
4081 MY(type) = "smoke";
4082 MY(velocityjitter) = '5.0 5.0 30.0';
4083}
4084SUB(icefield) {
4085 MY(alpha_min) = 256;
4086 MY(alpha_max) = 256;
4087 MY(alpha_fade) = 50;
4088 MY(color_min) = "0x008aff";
4089 MY(color_max) = "0x75e7ff";
4090 MY(count) = 5;
4091 MY(gravity) = -0.001000;
4092 MY(originjitter) = '333.0 333.0 0.0';
4093 MY(sizeincrease) = 10;
4094 MY(size_min) = 1;
4095 MY(size_max) = 1;
4096 MY(tex_min) = 48;
4097 MY(tex_max) = 55;
4098 MY(type) = "smoke";
4099}
4100
4101// cover very small area in flames, spawn it 3 times per second (or more often to get better looking fire at cost of fps hit )
4102DEF(firefield);
4103// flames that go up
4104SUB(firefield) {
4105 MY(airfriction) = 1;
4106 MY(alpha_min) = 50;
4107 MY(alpha_max) = 256;
4108 MY(alpha_fade) = 200;
4109 MY(bounce) = 1.500000;
4110 MY(color_min) = "0x8f0d00";
4111 MY(color_max) = "0xff5a00";
4112 MY(count) = 100;
4113 MY(gravity) = -0.060000;
4114 MY(originjitter) = '180.0 180.0 0.0';
4115 MY(sizeincrease) = 20;
4116 MY(size_min) = 1;
4117 MY(size_max) = 1;
4118 MY(tex_min) = 48;
4119 MY(tex_max) = 55;
4120 MY(type) = "smoke";
4121 MY(velocityjitter) = '5.0 5.0 30.0';
4122}
4123// flames that stay on the ground
4124SUB(firefield) {
4125 MY(alpha_min) = 50;
4126 MY(alpha_max) = 256;
4127 MY(alpha_fade) = 200;
4128 MY(color_min) = "0x8f0d00";
4129 MY(color_max) = "0xff5a00";
4130 MY(count) = 50;
4131 MY(originjitter) = '180.0 180.0 0.0';
4132 MY(sizeincrease) = 40;
4133 MY(size_min) = 1;
4134 MY(size_max) = 1;
4135 MY(tex_min) = 48;
4136 MY(tex_max) = 55;
4137 MY(type) = "smoke";
4138}
4139// smoke
4140SUB(firefield) {
4141 MY(alpha_min) = 256;
4142 MY(alpha_max) = 256;
4143 MY(alpha_fade) = 70;
4144 MY(color_min) = "0x000000";
4145 MY(color_max) = "0x111111";
4146 MY(count) = 20;
4147 MY(gravity) = -0.020000;
4148 MY(originjitter) = '180.0 180.0 0.0';
4149 MY(sizeincrease) = 7;
4150 MY(size_min) = 1;
4151 MY(size_max) = 1;
4152 MY(tex_max) = 8;
4153 MY(type) = "alphastatic";
4154}
4155
4156// flamethrower, spawn it as fast as you can 20 times per second or more, it needs direction
4157DEF(flamethrower);
4158// fast fire
4159SUB(flamethrower) {
4160 MY(airfriction) = 1.200000;
4161 MY(alpha_min) = 50;
4162 MY(alpha_max) = 256;
4163 MY(alpha_fade) = 250;
4164 MY(bounce) = 1.500000;
4165 MY(color_min) = "0x8f0d00";
4166 MY(color_max) = "0xff5a00";
4167 MY(count) = 3;
4168 MY(gravity) = -0.060000;
4169 MY(sizeincrease) = 20;
4170 MY(size_min) = 5;
4171 MY(size_max) = 5;
4172 MY(tex_min) = 48;
4173 MY(tex_max) = 55;
4174 MY(type) = "smoke";
4175 MY(velocityjitter) = '40.0 40.0 11.0';
4176 MY(velocitymultiplier) = 30;
4177}
4178// slow fire
4179SUB(flamethrower) {
4180 MY(airfriction) = 1.200000;
4181 MY(alpha_min) = 50;
4182 MY(alpha_max) = 256;
4183 MY(alpha_fade) = 200;
4184 MY(bounce) = 1.500000;
4185 MY(color_min) = "0x8f0d00";
4186 MY(color_max) = "0xff5a00";
4187 MY(count) = 2.500000;
4188 MY(gravity) = -0.060000;
4189 MY(sizeincrease) = 20;
4190 MY(size_min) = 5;
4191 MY(size_max) = 5;
4192 MY(tex_min) = 48;
4193 MY(tex_max) = 55;
4194 MY(type) = "smoke";
4195 MY(velocityjitter) = '40.0 40.0 40.0';
4196 MY(velocitymultiplier) = 20;
4197}
4198// very slow and small fire
4199SUB(flamethrower) {
4200 MY(airfriction) = 0.300000;
4201 MY(alpha_min) = 50;
4202 MY(alpha_max) = 256;
4203 MY(alpha_fade) = 200;
4204 MY(bounce) = 1.500000;
4205 MY(color_min) = "0x8f0d00";
4206 MY(color_max) = "0xff5a00";
4207 MY(count) = 1.500000;
4208 MY(gravity) = -0.060000;
4209 MY(sizeincrease) = 10;
4210 MY(size_min) = 5;
4211 MY(size_max) = 5;
4212 MY(tex_min) = 48;
4213 MY(tex_max) = 55;
4214 MY(type) = "smoke";
4215 MY(velocityjitter) = '30.0 30.0 30.0';
4216 MY(velocitymultiplier) = 10;
4217}
4218// decreasing fire
4219SUB(flamethrower) {
4220 MY(airfriction) = 0.300000;
4221 MY(alpha_min) = 50;
4222 MY(alpha_max) = 256;
4223 MY(alpha_fade) = 200;
4224 MY(bounce) = 1.500000;
4225 MY(color_min) = "0x8f0d00";
4226 MY(color_max) = "0xff5a00";
4227 MY(count) = 2;
4228 MY(gravity) = -0.060000;
4229 MY(sizeincrease) = -10;
4230 MY(size_min) = 20;
4231 MY(size_max) = 30;
4232 MY(tex_min) = 48;
4233 MY(tex_max) = 55;
4234 MY(type) = "smoke";
4235 MY(velocityjitter) = '10.0 10.0 10.0';
4236 MY(velocitymultiplier) = 15;
4237}
4238// smoke
4239SUB(flamethrower) {
4240 MY(airfriction) = 1;
4241 MY(alpha_min) = 256;
4242 MY(alpha_max) = 256;
4243 MY(alpha_fade) = 90;
4244 MY(color_min) = "0x000000";
4245 MY(color_max) = "0x111111";
4246 MY(count) = 0.500000;
4247 MY(originjitter) = '10.0 10.0 10.0';
4248 MY(sizeincrease) = 7;
4249 MY(size_min) = 5;
4250 MY(size_max) = 15;
4251 MY(tex_max) = 8;
4252 MY(type) = "alphastatic";
4253 MY(velocitymultiplier) = 20;
4254 MY(velocityoffset) = '0.0 0.0 10.0';
4255}
4256
4257// port-o-launch trail
4258DEF(TR_WIZSPIKE);
4259// glowing vapor trail
4260SUB(TR_WIZSPIKE) {
4261 MY(alpha_min) = 256;
4262 MY(alpha_max) = 256;
4263 MY(alpha_fade) = 968;
4264 MY(color_min) = "0x404040";
4265 MY(color_max) = "0x404040";
4266 MY(lightcolor) = '1.5 3.0 6.0';
4267 MY(lightradius) = 90;
4268 MY(size_min) = 3;
4269 MY(size_max) = 3;
4270 MY(tex_min) = 62;
4271 MY(tex_max) = 62;
4272 MY(trailspacing) = 4;
4273 MY(type) = "static";
4274 MY(velocitymultiplier) = -0.100000;
4275}
4276// bright sparks
4277SUB(TR_WIZSPIKE) {
4278 MY(airfriction) = 12;
4279 MY(alpha_min) = 444;
4280 MY(alpha_max) = 512;
4281 MY(alpha_fade) = 1866;
4282 MY(bounce) = 1;
4283 MY(color_min) = "0x404040";
4284 MY(color_max) = "0x404040";
4285 MY(count) = 1.500000;
4286 MY(originjitter) = '1.0 1.0 1.0';
4287 MY(sizeincrease) = -20;
4288 MY(size_min) = 2;
4289 MY(size_max) = 4;
4290 MY(tex_min) = 42;
4291 MY(tex_max) = 42;
4292 MY(trailspacing) = 12;
4293 MY(type) = "snow";
4294 MY(velocityjitter) = '50.0 50.0 50.0';
4295 MY(velocityoffset) = '0.0 0.0 15.0';
4296}
4297
4298// TAG trail
4299DEF(TR_VORESPIKE);
4300// glowing vapor trail
4301SUB(TR_VORESPIKE) {
4302 MY(alpha_min) = 256;
4303 MY(alpha_max) = 256;
4304 MY(alpha_fade) = 968;
4305 MY(color_min) = "0x804000";
4306 MY(color_max) = "0x804000";
4307 MY(lightcolor) = '1.5 3.0 6.0';
4308 MY(lightradius) = 90;
4309 MY(size_min) = 3;
4310 MY(size_max) = 3;
4311 MY(tex_min) = 62;
4312 MY(tex_max) = 62;
4313 MY(trailspacing) = 4;
4314 MY(type) = "static";
4315 MY(velocitymultiplier) = -0.100000;
4316}
4317// bright sparks
4318SUB(TR_VORESPIKE) {
4319 MY(airfriction) = 12;
4320 MY(alpha_min) = 444;
4321 MY(alpha_max) = 512;
4322 MY(alpha_fade) = 1866;
4323 MY(bounce) = 1;
4324 MY(color_min) = "0xff8000";
4325 MY(color_max) = "0xff8000";
4326 MY(count) = 1.500000;
4327 MY(originjitter) = '1.0 1.0 1.0';
4328 MY(sizeincrease) = -20;
4329 MY(size_min) = 2;
4330 MY(size_max) = 4;
4331 MY(tex_min) = 42;
4332 MY(tex_max) = 42;
4333 MY(trailspacing) = 12;
4334 MY(type) = "snow";
4335 MY(velocityjitter) = '50.0 50.0 50.0';
4336 MY(velocityoffset) = '0.0 0.0 15.0';
4337}
4338
4339DEF(flac_explode);
4340SUB(flac_explode) {
4341 MY(alpha_min) = 256;
4342 MY(alpha_max) = 256;
4343 MY(countabsolute) = 1;
4344 MY(lightcolor) = '8.0 4.0 1.0';
4345 MY(lightradiusfade) = 400;
4346 MY(lightradius) = 150;
4347 MY(originjitter) = '40.0 40.0 40.0';
4348 MY(size_min) = 18;
4349 MY(size_max) = 28;
4350 MY(tex_min) = 8;
4351 MY(tex_max) = 16;
4352 MY(type) = "decal";
4353}
4354// fire effect which make bright dot inside
4355SUB(flac_explode) {
4356 MY(airfriction) = 8;
4357 MY(alpha_min) = 128;
4358 MY(alpha_max) = 256;
4359 MY(alpha_fade) = 456;
4360 MY(bounce) = 1.500000;
4361 MY(color_min) = "0xffe955";
4362 MY(color_max) = "0xff5a00";
4363 MY(count) = 3;
4364 MY(liquidfriction) = 8;
4365 MY(notunderwater) = true;
4366 MY(originjitter) = '8.0 8.0 8.0';
4367 MY(sizeincrease) = 5;
4368 MY(size_min) = 6;
4369 MY(size_max) = 16;
4370 MY(tex_min) = 48;
4371 MY(tex_max) = 55;
4372 MY(type) = "smoke";
4373 MY(velocityjitter) = '156.0 156.0 156.0';
4374}
4375// fire effect which expands then slows
4376SUB(flac_explode) {
4377 MY(airfriction) = 12;
4378 MY(alpha_min) = 128;
4379 MY(alpha_max) = 256;
4380 MY(alpha_fade) = 456;
4381 MY(bounce) = 1.500000;
4382 MY(color_min) = "0x8f0d00";
4383 MY(color_max) = "0xff5a00";
4384 MY(count) = 6;
4385 MY(liquidfriction) = 8;
4386 MY(notunderwater) = true;
4387 MY(originjitter) = '8.0 8.0 8.0';
4388 MY(sizeincrease) = 15;
4389 MY(size_min) = 10;
4390 MY(size_max) = 16;
4391 MY(tex_min) = 48;
4392 MY(tex_max) = 55;
4393 MY(type) = "static";
4394 MY(velocityjitter) = '256.0 256.0 256.0';
4395}
4396// smoke
4397SUB(flac_explode) {
4398 MY(airfriction) = 5;
4399 MY(alpha_min) = 500;
4400 MY(alpha_max) = 600;
4401 MY(alpha_fade) = 556;
4402 MY(bounce) = 2;
4403 MY(color_min) = "0x000000";
4404 MY(color_max) = "0x111111";
4405 MY(count) = 5;
4406 MY(notunderwater) = true;
4407 MY(sizeincrease) = 20;
4408 MY(size_min) = 10;
4409 MY(size_max) = 20;
4410 MY(tex_max) = 8;
4411 MY(type) = "alphastatic";
4412 MY(velocityjitter) = '244.0 244.0 244.0';
4413}
4414// underwater bubbles
4415SUB(flac_explode) {
4416 MY(alpha_min) = 128;
4417 MY(alpha_max) = 256;
4418 MY(alpha_fade) = 64;
4419 MY(bounce) = 1.500000;
4420 MY(color_min) = "0x404040";
4421 MY(color_max) = "0x808080";
4422 MY(count) = 8;
4423 MY(gravity) = -0.125000;
4424 MY(liquidfriction) = 0.250000;
4425 MY(originjitter) = '16.0 16.0 16.0';
4426 MY(size_min) = 1;
4427 MY(size_max) = 2;
4428 MY(tex_min) = 62;
4429 MY(tex_max) = 62;
4430 MY(type) = "bubble";
4431 MY(underwater) = true;
4432 MY(velocityjitter) = '96.0 96.0 96.0';
4433}
4434// bouncing sparks
4435SUB(flac_explode) {
4436 MY(airfriction) = 0.200000;
4437 MY(alpha_min) = 256;
4438 MY(alpha_max) = 256;
4439 MY(alpha_fade) = 384;
4440 MY(bounce) = 1.500000;
4441 MY(color_min) = "0x903010";
4442 MY(color_max) = "0xFFD030";
4443 MY(count) = 4;
4444 MY(gravity) = 1;
4445 MY(liquidfriction) = 0.800000;
4446 MY(notunderwater) = true;
4447 MY(size_min) = 2;
4448 MY(size_max) = 2;
4449 MY(tex_min) = 40;
4450 MY(tex_max) = 40;
4451 MY(type) = "spark";
4452 MY(velocityjitter) = '256.0 256.0 256.0';
4453 MY(velocityoffset) = '0.0 0.0 80.0';
4454}
4455
4456// bullet trail (somewhat like a tracer)
4457DEF(tr_bullet);
4458SUB(tr_bullet) {
4459 MY(alpha) = '500 600 10000';
4460 MY(color_min) = "0xf03000";
4461 MY(color_max) = "0xff6010";
4462 MY(countabsolute) = 1;
4463 MY(sizeincrease) = -3;
4464 MY(size_min) = 0.6;
4465 MY(size_max) = 0.8;
4466 my(tex_min) = 200;
4467 my(tex_max) = 200;
4468 MY(type) = "beam";
4469}
4470SUB(tr_bullet) {
4471 MY(airfriction) = -4;
4472 MY(alpha) = '256 256 350';
4473 MY(color_min) = "0x202020";
4474 MY(color_max) = "0x404040";
4475 MY(notunderwater) = true;
4476 MY(sizeincrease) = 0.4;
4477 MY(size_min) = 1;
4478 MY(size_max) = 2;
4479 MY(tex_min) = 0;
4480 MY(tex_max) = 8;
4481 MY(trailspacing) = 16;
4482 MY(type) = "smoke";
4483 MY(velocityjitter) = '4 4 4';
4484}
4485SUB(tr_bullet) {
4486 MY(alpha_min) = 256;
4487 MY(alpha_max) = 256;
4488 MY(alpha_fade) = 128;
4489 MY(bounce) = 1.500000;
4490 MY(color_min) = "0x404040";
4491 MY(color_max) = "0x808080";
4492 MY(gravity) = -0.125000;
4493 MY(liquidfriction) = 4;
4494 MY(size_min) = 0.5;
4495 MY(size_max) = 0.6;
4496 MY(tex_min) = 62;
4497 MY(tex_max) = 62;
4498 MY(trailspacing) = 16;
4499 MY(type) = "bubble";
4500 MY(underwater) = true;
4501 MY(velocityjitter) = '16.0 16.0 16.0';
4502}
4503
4504// smoke emitter for small pipes
4505DEF(smoking_smallemitter);
4506SUB(smoking_smallemitter) {
4507 MY(airfriction) = -1;
4508 MY(alpha_min) = 200;
4509 MY(alpha_max) = 256;
4510 MY(alpha_fade) = 100;
4511 MY(color_min) = "0x292929";
4512 MY(color_max) = "0x000000";
4513 MY(count) = 10;
4514 MY(gravity) = -0.100000;
4515 MY(originjitter) = '10.0 10.0 10.0';
4516 MY(sizeincrease) = 20;
4517 MY(size_min) = 6;
4518 MY(size_max) = 15;
4519 MY(tex_max) = 8;
4520 MY(type) = "alphastatic";
4521 MY(velocityjitter) = '5.0 5.0 20.0';
4522}
4523
4524// crylink trail
4525DEF(TR_CRYLINKPLASMA);
4526// plasma smoke
4527SUB(TR_CRYLINKPLASMA) {
4528 MY(alpha_min) = 256;
4529 MY(alpha_max) = 256;
4530 MY(alpha_fade) = 1024;
4531 MY(color_min) = "0x5522aa";
4532 MY(color_max) = "0x6622ff";
4533 MY(sizeincrease) = 8;
4534 MY(size_min) = 2;
4535 MY(size_max) = 2;
4536 MY(tex_min) = 32;
4537 MY(tex_max) = 32;
4538 MY(trailspacing) = 128;
4539 MY(type) = "static";
4540 MY(velocityjitter) = '8.0 8.0 8.0';
4541 MY(velocitymultiplier) = -0.010000;
4542}
4543// crylink main trail
4544SUB(TR_CRYLINKPLASMA) {
4545 MY(alpha_min) = 256;
4546 MY(alpha_max) = 256;
4547 MY(alpha_fade) = 2600;
4548 MY(color_min) = "0x5522aa";
4549 MY(color_max) = "0x6622ff";
4550 MY(sizeincrease) = 15;
4551 MY(size_min) = 3;
4552 MY(size_max) = 3;
4553 MY(tex_min) = 3;
4554 MY(tex_max) = 3;
4555 MY(trailspacing) = 16;
4556 MY(type) = "static";
4557 MY(velocityjitter) = '2.0 2.0 2.0';
4558 MY(velocitymultiplier) = 0.010000;
4559}
4560
4561DEF(cherryblossom);
4562SUB(cherryblossom) {
4563 MY(airfriction) = 1;
4564 MY(alpha_min) = 128;
4565 MY(alpha_max) = 256;
4566 MY(alpha_fade) = 32;
4567 MY(bounce) = 1.500000;
4568 MY(color_min) = "0xb123ff";
4569 MY(color_max) = "0xb183ff";
4570 MY(count) = 1.500000;
4571 MY(gravity) = 0.050000;
4572 MY(liquidfriction) = 1;
4573 MY(originjitter) = '16.0 16.0 16.0';
4574 MY(size_min) = 1.500000;
4575 MY(size_max) = 2;
4576 MY(tex_min) = 40;
4577 MY(tex_max) = 40;
4578 MY(type) = "static";
4579 MY(velocityjitter) = '32.0 32.0 0.0';
4580}
4581
4582DEF(alien_blood);
4583SUB(alien_blood) {
4584 MY(airfriction) = 0.400000;
4585 MY(alpha_min) = 1560;
4586 MY(alpha_max) = 2560;
4587 MY(alpha_fade) = 7000;
4588 MY(blend) = "invmod";
4589 MY(bounce) = -1;
4590 MY(color_min) = "0xDC9BCD";
4591 MY(color_max) = "0xDC9BCD";
4592 MY(count) = 0.400000;
4593 MY(sizeincrease) = 20;
4594 MY(size_min) = 5;
4595 MY(size_max) = 11;
4596 MY(staincolor_min) = "0xDC9BCD";
4597 MY(staincolor_max) = "0xDC9BCD";
4598 MY(stainsize_min) = 1;
4599 MY(stainsize_max) = 2;
4600 MY(staintex_min) = 16;
4601 MY(staintex_max) = 24;
4602 MY(stretchfactor) = 25;
4603 MY(tex_min) = 24;
4604 MY(tex_max) = 32;
4605 MY(type) = "spark";
4606 MY(velocityjitter) = '99.0 99.0 55.0';
4607}
4608// blood mist
4609SUB(alien_blood) {
4610 MY(alpha_min) = 3000;
4611 MY(alpha_max) = 5560;
4612 MY(alpha_fade) = 12000;
4613 MY(blend) = "invmod";
4614 MY(color_min) = "0xDC9BCD";
4615 MY(color_max) = "0xDC9BCD";
4616 MY(countabsolute) = 1;
4617 MY(originjitter) = '11.0 11.0 11.0';
4618 MY(sizeincrease) = 20;
4619 MY(size_min) = 25;
4620 MY(size_max) = 30;
4621 MY(tex_min) = 24;
4622 MY(tex_max) = 32;
4623 MY(type) = "smoke";
4624}
4625
4626DEF(robot_blood);
4627SUB(robot_blood) {
4628 MY(airfriction) = 1;
4629 MY(alpha_min) = 256;
4630 MY(alpha_max) = 256;
4631 MY(alpha_fade) = 64;
4632 MY(bounce) = -1;
4633 MY(color_min) = "0xff3000";
4634 MY(color_max) = "0xff7373";
4635 MY(count) = 0.167000;
4636 MY(gravity) = 1;
4637 MY(liquidfriction) = 4;
4638 MY(size_min) = 1;
4639 MY(size_max) = 2;
4640 MY(tex_min) = 70;
4641 MY(tex_max) = 70;
4642 MY(type) = "spark";
4643 MY(velocityjitter) = '264.0 264.0 264.0';
4644 MY(velocityoffset) = '0.0 0.0 100.0';
4645}
4646// shockwave
4647SUB(robot_blood) {
4648 MY(alpha_max) = 90;
4649 MY(alpha_fade) = 1000;
4650 MY(color_min) = "0xff8400";
4651 MY(color_max) = "0xffbb72";
4652 MY(countabsolute) = 1;
4653 MY(originjitter) = '11.0 11.0 11.0';
4654 MY(sizeincrease) = 800;
4655 MY(size_min) = 2;
4656 MY(size_max) = 2;
4657 MY(tex_min) = 74;
4658 MY(tex_max) = 74;
4659 MY(type) = "smoke";
4660}
4661// electo sparks
4662SUB(robot_blood) {
4663 MY(alpha_min) = 256;
4664 MY(alpha_max) = 256;
4665 MY(alpha_fade) = 5120;
4666 MY(color_min) = "0xff3000";
4667 MY(color_max) = "0xff8585";
4668 MY(count) = 0.100000;
4669 MY(originjitter) = '41.0 41.0 21.0';
4670 MY(startangle_min) = -180;
4671 MY(startangle_max) = 180;
4672 MY(spin_min) = 4000;
4673 MY(spin_max) = -4000;
4674 MY(size_min) = 20;
4675 MY(size_max) = 40;
4676 MY(tex_min) = 71;
4677 MY(tex_max) = 73;
4678 MY(type) = "smoke";
4679}
4680
4681DEF(alien_TR_BLOOD);
4682SUB(alien_TR_BLOOD) {
4683 MY(airfriction) = -2;
4684 MY(alpha_min) = 384;
4685 MY(alpha_max) = 984;
4686 MY(alpha_fade) = 1492;
4687 MY(blend) = "invmod";
4688 MY(bounce) = -1;
4689 MY(color_min) = "0xC080B0";
4690 MY(color_max) = "0xC080B0";
4691 MY(gravity) = 0.400000;
4692 MY(liquidfriction) = 1;
4693 MY(sizeincrease) = -5;
4694 MY(size_min) = 4;
4695 MY(size_max) = 19;
4696 MY(staincolor_min) = "0xC080B0";
4697 MY(staincolor_max) = "0xC080B0";
4698 MY(stainsize_min) = 1;
4699 MY(stainsize_max) = 2;
4700 MY(staintex_min) = 16;
4701 MY(staintex_max) = 24;
4702 MY(stretchfactor) = 7;
4703 MY(tex_min) = 24;
4704 MY(tex_max) = 32;
4705 MY(trailspacing) = 20;
4706 MY(type) = "spark";
4707 MY(velocityjitter) = '64.0 64.0 64.0';
4708 MY(velocitymultiplier) = -0.100000;
4709}
4710
4711// splash around gib
4712SUB(TR_BLOOD) {
4713 MY(alpha_min) = 684;
4714 MY(alpha_max) = 684;
4715 MY(alpha_fade) = 7492;
4716 MY(color_min) = "0xA8FFFF";
4717 MY(color_max) = "0xA8FFFF";
4718 MY(sizeincrease) = 500;
4719 MY(size_min) = 4;
4720 MY(size_max) = 6;
4721 MY(tex_min) = 24;
4722 MY(tex_max) = 32;
4723 MY(trailspacing) = 42;
4724 MY(type) = "blood";
4725}
4726
4727DEF(robot_TR_BLOOD);
4728SUB(robot_TR_BLOOD) {
4729 MY(airfriction) = -2;
4730 MY(alpha_min) = 384;
4731 MY(alpha_max) = 984;
4732 MY(alpha_fade) = 1892;
4733 MY(blend) = "invmod";
4734 MY(bounce) = -1;
4735 MY(color_min) = "0xC0D890";
4736 MY(color_max) = "0xC0D890";
4737 MY(gravity) = 0.400000;
4738 MY(liquidfriction) = 1;
4739 MY(sizeincrease) = -6;
4740 MY(size_min) = 4;
4741 MY(size_max) = 13;
4742 MY(staincolor_min) = "0x808080";
4743 MY(staincolor_max) = "0x808080";
4744 MY(stainsize_min) = 1;
4745 MY(stainsize_max) = 3;
4746 MY(staintex_min) = 16;
4747 MY(staintex_max) = 24;
4748 MY(stretchfactor) = 6;
4749 MY(tex_min) = 24;
4750 MY(tex_max) = 32;
4751 MY(trailspacing) = 16;
4752 MY(type) = "spark";
4753 MY(velocityjitter) = '64.0 64.0 64.0';
4754 MY(velocitymultiplier) = -0.300000;
4755}
4756// fire
4757SUB(robot_TR_BLOOD) {
4758 MY(airfriction) = 4;
4759 MY(alpha_min) = 128;
4760 MY(alpha_max) = 256;
4761 MY(alpha_fade) = 900;
4762 MY(color_min) = "0x902010";
4763 MY(color_max) = "0xff3600";
4764 MY(gravity) = -1;
4765 MY(liquidfriction) = 4;
4766 MY(notunderwater) = true;
4767 MY(sizeincrease) = 10;
4768 MY(size_min) = 5;
4769 MY(size_max) = 20;
4770 MY(stretchfactor) = 5;
4771 MY(tex_min) = 48;
4772 MY(tex_max) = 55;
4773 MY(trailspacing) = 16;
4774 MY(type) = "spark";
4775 MY(velocityjitter) = '44.0 44.0 44.0';
4776}
4777// arcs
4778SUB(robot_TR_BLOOD) {
4779 MY(alpha_min) = 1128;
4780 MY(alpha_max) = 1256;
4781 MY(alpha_fade) = 44900;
4782 MY(color_min) = "0xff3000";
4783 MY(color_max) = "0xff8585";
4784 MY(startangle_min) = -180;
4785 MY(startangle_max) = 180;
4786 MY(spin_min) = 4000;
4787 MY(spin_max) = -4000;
4788 MY(size_min) = 25;
4789 MY(size_max) = 30;
4790 MY(tex_min) = 71;
4791 MY(tex_max) = 73;
4792 MY(trailspacing) = 128;
4793 MY(type) = "smoke";
4794 MY(velocityjitter) = '44.0 44.0 44.0';
4795}
4796
4797DEF(alien_TR_SLIGHTBLOOD);
4798SUB(alien_TR_SLIGHTBLOOD) {
4799 MY(airfriction) = 1;
4800 MY(alpha_min) = 384;
4801 MY(alpha_max) = 384;
4802 MY(alpha_fade) = 192;
4803 MY(bounce) = -1;
4804 MY(color_min) = "0xC080B0";
4805 MY(color_max) = "0xC080B0";
4806 MY(liquidfriction) = 4;
4807 MY(size_min) = 80;
4808 MY(size_max) = 80;
4809 MY(staincolor_min) = "0x808080";
4810 MY(staincolor_max) = "0x808080";
4811 MY(staintex_min) = 16;
4812 MY(staintex_max) = 24;
4813 MY(tex_min) = 24;
4814 MY(tex_max) = 32;
4815 MY(trailspacing) = 64;
4816 MY(type) = "blood";
4817 MY(velocityjitter) = '64.0 64.0 64.0';
4818 MY(velocitymultiplier) = 0.500000;
4819}
4820
4821DEF(robot_TR_SLIGHTBLOOD);
4822SUB(robot_TR_SLIGHTBLOOD) {
4823 MY(airfriction) = 1;
4824 MY(alpha_min) = 384;
4825 MY(alpha_max) = 384;
4826 MY(alpha_fade) = 192;
4827 MY(bounce) = -1;
4828 MY(color_min) = "0xC0D890";
4829 MY(color_max) = "0xC0D890";
4830 MY(liquidfriction) = 4;
4831 MY(size_min) = 8;
4832 MY(size_max) = 8;
4833 MY(staincolor_min) = "0x808080";
4834 MY(staincolor_max) = "0x808080";
4835 MY(staintex_min) = 16;
4836 MY(staintex_max) = 24;
4837 MY(tex_min) = 24;
4838 MY(tex_max) = 32;
4839 MY(trailspacing) = 64;
4840 MY(type) = "blood";
4841 MY(velocityjitter) = '64.0 64.0 64.0';
4842 MY(velocitymultiplier) = 0.500000;
4843}
4844
4845DEF(item_pickup);
4846// flare particle and light
4847SUB(item_pickup) {
4848 MY(alpha_min) = 128;
4849 MY(alpha_max) = 64;
4850 MY(alpha_fade) = 64;
4851 MY(color_min) = "0x63F2EA";
4852 MY(color_max) = "0xB0C5C4";
4853 MY(countabsolute) = 1;
4854 MY(size_min) = 8;
4855 MY(size_max) = 16;
4856 MY(type) = "static";
4857}
4858// cloud of particles which expand rapidly and then slow to form a ball
4859SUB(item_pickup) {
4860 MY(alpha_min) = 256;
4861 MY(alpha_max) = 256;
4862 MY(alpha_fade) = 1280;
4863 MY(color_min) = "0x63F2EA";
4864 MY(color_max) = "0xB0C5C4";
4865 MY(count) = 32;
4866 MY(size_min) = 1;
4867 MY(size_max) = 1;
4868 MY(tex_min) = 41;
4869 MY(tex_max) = 41;
4870 MY(type) = "spark";
4871 MY(velocityjitter) = '256.0 256.0 256.0';
4872}
4873
4874DEF(bloodshower);
4875SUB(bloodshower) {
4876 MY(alpha_min) = 156;
4877 MY(alpha_max) = 656;
4878 MY(alpha_fade) = 1664;
4879 MY(blend) = "invmod";
4880 MY(bounce) = -1;
4881 MY(color_min) = "0xA8FFFF";
4882 MY(color_max) = "0xA8FFFFF";
4883 MY(count) = 125;
4884 MY(gravity) = 1;
4885 MY(liquidfriction) = 4;
4886 MY(size_min) = 8;
4887 MY(size_max) = 28;
4888 MY(staincolor_min) = "0x808080";
4889 MY(staincolor_max) = "0x808080";
4890 MY(stainsize_min) = 1;
4891 MY(stainsize_max) = 2;
4892 MY(staintex_min) = 16;
4893 MY(staintex_max) = 24;
4894 MY(stretchfactor) = 3;
4895 MY(tex_min) = 24;
4896 MY(tex_max) = 32;
4897 MY(type) = "spark";
4898 MY(velocityjitter) = '764.0 764.0 764.0';
4899}
4900// center blood
4901SUB(bloodshower) {
4902 MY(alpha_min) = 156;
4903 MY(alpha_max) = 656;
4904 MY(alpha_fade) = 1664;
4905 MY(blend) = "invmod";
4906 MY(color_min) = "0xA8FFFF";
4907 MY(color_max) = "0xA8FFFFF";
4908 MY(countabsolute) = 0.100000;
4909 MY(originjitter) = '50.0 50.0 50.0';
4910 MY(sizeincrease) = 300;
4911 MY(size_min) = 1;
4912 MY(size_max) = 28;
4913 MY(tex_min) = 24;
4914 MY(tex_max) = 32;
4915 MY(type) = "smoke";
4916}
4917
4918DEF(alien_bloodshower);
4919SUB(alien_bloodshower) {
4920 MY(alpha_min) = 156;
4921 MY(alpha_max) = 656;
4922 MY(alpha_fade) = 1664;
4923 MY(blend) = "invmod";
4924 MY(bounce) = -1;
4925 MY(color_min) = "0xC080B0";
4926 MY(color_max) = "0xC080B0";
4927 MY(count) = 125;
4928 MY(gravity) = 1;
4929 MY(liquidfriction) = 4;
4930 MY(size_min) = 8;
4931 MY(size_max) = 28;
4932 MY(staincolor_min) = "0xC080B0";
4933 MY(staincolor_max) = "0xC080B0";
4934 MY(stainsize_min) = 1;
4935 MY(stainsize_max) = 2;
4936 MY(staintex_min) = 16;
4937 MY(staintex_max) = 24;
4938 MY(stretchfactor) = 3;
4939 MY(tex_min) = 24;
4940 MY(tex_max) = 32;
4941 MY(type) = "spark";
4942 MY(velocityjitter) = '764.0 764.0 764.0';
4943}
4944// center blood
4945SUB(bloodshower) {
4946 MY(alpha_min) = 156;
4947 MY(alpha_max) = 656;
4948 MY(alpha_fade) = 1664;
4949 MY(blend) = "invmod";
4950 MY(color_min) = "0xA8FFFF";
4951 MY(color_max) = "0xA8FFFFF";
4952 MY(countabsolute) = 0.100000;
4953 MY(originjitter) = '50.0 50.0 50.0';
4954 MY(sizeincrease) = 300;
4955 MY(size_min) = 1;
4956 MY(size_max) = 28;
4957 MY(tex_min) = 24;
4958 MY(tex_max) = 32;
4959 MY(type) = "smoke";
4960}
4961
4962DEF(robot_bloodshower);
4963SUB(robot_bloodshower) {
4964 MY(alpha_min) = 156;
4965 MY(alpha_max) = 656;
4966 MY(alpha_fade) = 1664;
4967 MY(blend) = "invmod";
4968 MY(bounce) = -1;
4969 MY(color_min) = "0xC0D890";
4970 MY(color_max) = "0xC0D890";
4971 MY(count) = 100;
4972 MY(gravity) = 1;
4973 MY(liquidfriction) = 4;
4974 MY(size_min) = 8;
4975 MY(size_max) = 28;
4976 MY(staincolor_min) = "0xC0D890";
4977 MY(staincolor_max) = "0xC0D890";
4978 MY(stainsize_min) = 1;
4979 MY(stainsize_max) = 2;
4980 MY(staintex_min) = 16;
4981 MY(staintex_max) = 24;
4982 MY(stretchfactor) = 3;
4983 MY(tex_min) = 24;
4984 MY(tex_max) = 32;
4985 MY(type) = "spark";
4986 MY(velocityjitter) = '764.0 764.0 764.0';
4987}
4988// arc
4989SUB(robot_bloodshower) {
4990 MY(alpha_min) = 1128;
4991 MY(alpha_max) = 1256;
4992 MY(alpha_fade) = 4200;
4993 MY(color_min) = "0xff3000";
4994 MY(color_max) = "0xff8585";
4995 MY(count) = 2.500000;
4996 MY(originjitter) = '150.0 150.0 150.0';
4997 MY(startangle_min) = -180;
4998 MY(startangle_max) = 180;
4999 MY(spin_min) = 99;
5000 MY(spin_max) = -99;
5001 MY(size_min) = 25;
5002 MY(size_max) = 40;
5003 MY(tex_min) = 71;
5004 MY(tex_max) = 73;
5005 MY(type) = "smoke";
5006 MY(velocityjitter) = '44.0 44.0 44.0';
5007}
5008// shockwave
5009SUB(robot_bloodshower) {
5010 MY(alpha_min) = 11;
5011 MY(alpha_max) = 125;
5012 MY(alpha_fade) = 990;
5013 MY(color_min) = "0xff3000";
5014 MY(color_max) = "0xff8585";
5015 MY(count) = 2.500000;
5016 MY(sizeincrease) = 3000;
5017 MY(size_min) = 5;
5018 MY(size_max) = 50;
5019 MY(tex_min) = 74;
5020 MY(tex_max) = 74;
5021 MY(type) = "smoke";
5022}
5023
5024#define ground_quake(name, colormin, colormax) \
5025 DEF(name##_ground_quake); \
5026 SUB(name##_ground_quake) /* smoke */ { \
5027 MY(airfriction) = 3; \
5028 MY(alpha_min) = 100; \
5029 MY(alpha_max) = 126; \
5030 MY(alpha_fade) = 200; \
5031 MY(bounce) = 1.100000; \
5032 MY(color_min) = "0x111111"; \
5033 MY(color_max) = "0xbbbbbb"; \
5034 MY(count) = 90; \
5035 MY(gravity) = 0.500000; \
5036 MY(notunderwater) = true; \
5037 MY(sizeincrease) = 100; \
5038 MY(size_min) = 20; \
5039 MY(size_max) = 50; \
5040 MY(tex_max) = 8; \
5041 MY(time_min) = 5; \
5042 MY(time_max) = 10; \
5043 MY(type) = "smoke"; \
5044 MY(velocityjitter) = '190.0 190.0 50.0'; \
5045 } \
5046 SUB(name##_ground_quake) { \
5047 MY(airfriction) = 4; \
5048 MY(alpha_min) = 100; \
5049 MY(alpha_max) = 126; \
5050 MY(alpha_fade) = 200; \
5051 MY(bounce) = 1.200000; \
5052 MY(color_min) = "0x111111"; \
5053 MY(color_max) = "0x979797"; \
5054 MY(count) = 40; \
5055 MY(gravity) = 0.200000; \
5056 MY(notunderwater) = true; \
5057 MY(sizeincrease) = 60; \
5058 MY(size_min) = 10; \
5059 MY(size_max) = 30; \
5060 MY(tex_max) = 8; \
5061 MY(time_min) = 10; \
5062 MY(time_max) = 15; \
5063 MY(type) = "smoke"; \
5064 MY(velocityjitter) = '190.0 190.0 50.0'; \
5065 } \
5066 SUB(name##_ground_quake) { \
5067 MY(alpha_min) = 200; \
5068 MY(alpha_max) = 356; \
5069 MY(alpha_fade) = 512; \
5070 MY(bounce) = 6; \
5071 MY(color_min) = colormin; \
5072 MY(color_max) = colormax; \
5073 MY(count) = 16; \
5074 MY(gravity) = -0.500000; \
5075 MY(originjitter) = '33.0 33.0 33.0'; \
5076 MY(sizeincrease) = 5; \
5077 MY(size_min) = 4; \
5078 MY(size_max) = 20; \
5079 MY(tex_min) = 48; \
5080 MY(tex_max) = 55; \
5081 MY(time_min) = 15; \
5082 MY(time_max) = 25; \
5083 MY(type) = "smoke"; \
5084 MY(velocityjitter) = '22.0 22.0 50.0'; \
5085 } \
5086 SUB(name##_ground_quake) /* smoke */ { \
5087 MY(alpha_min) = 200; \
5088 MY(alpha_max) = 256; \
5089 MY(alpha_fade) = 200; \
5090 MY(bounce) = 2; \
5091 MY(color_min) = "0x000000"; \
5092 MY(color_max) = "0xffffff"; \
5093 MY(count) = 11; \
5094 MY(gravity) = -0.300000; \
5095 MY(originjitter) = '44.0 44.0 44.0'; \
5096 MY(sizeincrease) = 11; \
5097 MY(size_min) = 22; \
5098 MY(size_max) = 33; \
5099 MY(tex_max) = 8; \
5100 MY(time_min) = 25; \
5101 MY(time_max) = 35; \
5102 MY(type) = "alphastatic"; \
5103 MY(velocityjitter) = '11.0 11.0 50.0'; \
5104 } \
5105 /**/
5106
5107ground_quake(red, "0x9E6A64", "0x91302D")
5108ground_quake(blue, "0x64679E", "0x2D4C91")
5109#undef ground_quake
5110
5112
5113// Team / hit vaporizer effects
5114#define TE_TEI_G3(name, colormin1, colormax1, colormin2, colormax2) \
5115 DEF(TE_TEI_G3##name); \
5116 SUB(TE_TEI_G3##name) { \
5117 MY(alpha_min) = 128; \
5118 MY(alpha_max) = 128; \
5119 MY(alpha_fade) = 256; \
5120 MY(color_min) = colormin1; \
5121 MY(color_max) = colormax1; \
5122 MY(countabsolute) = 1; \
5123 MY(size_min) = 4; \
5124 MY(size_max) = 4; \
5125 MY(tex_min) = 200; \
5126 MY(tex_max) = 200; \
5127 MY(type) = "beam"; \
5128 } \
5129 SUB(TE_TEI_G3##name) { \
5130 MY(airfriction) = -4; \
5131 MY(alpha_min) = 256; \
5132 MY(alpha_max) = 256; \
5133 MY(alpha_fade) = 512; \
5134 MY(color_min) = colormin2; \
5135 MY(color_max) = colormax2; \
5136 MY(sizeincrease) = 3; \
5137 MY(size_min) = 0.300000; \
5138 MY(size_max) = 0.300000; \
5139 MY(tex_min) = 46; \
5140 MY(tex_max) = 46; \
5141 MY(trailspacing) = 8; \
5142 MY(type) = "smoke"; \
5143 MY(velocityjitter) = '3.0 3.0 3.0'; \
5144 } \
5145 DEF(TE_TEI_G3##name##_HIT); \
5146 SUB(TE_TEI_G3##name##_HIT) { \
5147 MY(alpha_min) = 128; \
5148 MY(alpha_max) = 128; \
5149 MY(alpha_fade) = 256; \
5150 MY(color_min) = colormin1; \
5151 MY(color_max) = colormax1; \
5152 MY(countabsolute) = 1; \
5153 MY(size_min) = 8; \
5154 MY(size_max) = 8; \
5155 MY(tex_min) = 200; \
5156 MY(tex_max) = 200; \
5157 MY(type) = "beam"; \
5158 } \
5159 SUB(TE_TEI_G3##name##_HIT) /* rings */ { \
5160 MY(airfriction) = -4; \
5161 MY(alpha_min) = 256; \
5162 MY(alpha_max) = 256; \
5163 MY(alpha_fade) = 512; \
5164 MY(color_min) = "0xFFFFFF"; \
5165 MY(color_max) = colormax1; \
5166 MY(sizeincrease) = -2; \
5167 MY(size_min) = 2; \
5168 MY(size_max) = 2; \
5169 MY(trailspacing) = 20; \
5170 MY(type) = "smoke"; \
5171 MY(velocityjitter) = '2.0 2.0 2.0'; \
5172 } \
5173 SUB(TE_TEI_G3##name##_HIT) { \
5174 MY(airfriction) = -4; \
5175 MY(alpha_min) = 256; \
5176 MY(alpha_max) = 256; \
5177 MY(alpha_fade) = 512; \
5178 MY(color_min) = colormin1; \
5179 MY(color_max) = colormax1; \
5180 MY(sizeincrease) = -6; \
5181 MY(size_min) = 10; \
5182 MY(size_max) = 10; \
5183 MY(trailspacing) = 40; \
5184 MY(type) = "smoke"; \
5185 } \
5186 /**/
5187TE_TEI_G3(RED, "0xFF0000", "0xFF0011", "0x200000", "0x400000")
5188TE_TEI_G3(BLUE, "0x0000FF", "0x1100FF", "0x000020", "0x000040")
5189TE_TEI_G3(YELLOW, "0xffff00", "0xffff11", "0x202000", "0x404000")
5190TE_TEI_G3(PINK, "0xFF00FF", "0xFF11FF", "0x200020", "0x400040")
5191#undef TE_TEI_G3
5192
5194
5195#include "effectinfo_onslaught.inc"
5196
5197DEF(firemine);
5198SUB(firemine) {
5199 MY(airfriction) = 1.200000;
5200 MY(alpha_min) = 50;
5201 MY(alpha_max) = 256;
5202 MY(alpha_fade) = 250;
5203 MY(bounce) = 1.500000;
5204 MY(color_min) = "0x8f0d00";
5205 MY(color_max) = "0xff5a00";
5206 MY(count) = 0.500000;
5207 MY(gravity) = -0.060000;
5208 MY(sizeincrease) = 5;
5209 MY(size_min) = 1;
5210 MY(size_max) = 1;
5211 MY(tex_min) = 48;
5212 MY(tex_max) = 55;
5213 MY(trailspacing) = 2;
5214 MY(type) = "smoke";
5215 MY(velocityjitter) = '10.0 10.0 2.0';
5216}
5217// slowfire
5218SUB(firemine) {
5219 MY(airfriction) = 1.200000;
5220 MY(alpha_min) = 50;
5221 MY(alpha_max) = 256;
5222 MY(alpha_fade) = 200;
5223 MY(bounce) = 1.500000;
5224 MY(color_min) = "0x8f0d00";
5225 MY(color_max) = "0xff5a00";
5226 MY(count) = 0.500000;
5227 MY(gravity) = -0.060000;
5228 MY(sizeincrease) = 5;
5229 MY(size_min) = 1;
5230 MY(size_max) = 1;
5231 MY(tex_min) = 48;
5232 MY(tex_max) = 55;
5233 MY(trailspacing) = 2;
5234 MY(type) = "smoke";
5235 MY(velocityjitter) = '10.0 10.0 10.0';
5236}
5237// very slow and small fire
5238SUB(firemine) {
5239 MY(airfriction) = 0.300000;
5240 MY(alpha_min) = 50;
5241 MY(alpha_max) = 256;
5242 MY(alpha_fade) = 200;
5243 MY(bounce) = 1.500000;
5244 MY(color_min) = "0x8f0d00";
5245 MY(color_max) = "0xff5a00";
5246 MY(count) = 0.500000;
5247 MY(gravity) = -0.060000;
5248 MY(sizeincrease) = 2;
5249 MY(size_min) = 1;
5250 MY(size_max) = 1;
5251 MY(tex_min) = 48;
5252 MY(tex_max) = 55;
5253 MY(trailspacing) = 4;
5254 MY(type) = "smoke";
5255 MY(velocityjitter) = '8.0 8.0 8.0';
5256}
5257// decreasing fire
5258SUB(firemine) {
5259 MY(airfriction) = 0.300000;
5260 MY(alpha_min) = 50;
5261 MY(alpha_max) = 256;
5262 MY(alpha_fade) = 200;
5263 MY(bounce) = 1.500000;
5264 MY(color_min) = "0x8f0d00";
5265 MY(color_max) = "0xff5a00";
5266 MY(count) = 0.500000;
5267 MY(gravity) = -0.060000;
5268 MY(sizeincrease) = -3;
5269 MY(size_min) = 5;
5270 MY(size_max) = 7;
5271 MY(tex_min) = 48;
5272 MY(tex_max) = 55;
5273 MY(trailspacing) = 4;
5274 MY(type) = "smoke";
5275 MY(velocityjitter) = '3.0 3.0 3.0';
5276}
5277// smoke
5278SUB(firemine) {
5279 MY(airfriction) = 1;
5280 MY(alpha_min) = 256;
5281 MY(alpha_max) = 256;
5282 MY(alpha_fade) = 90;
5283 MY(color_min) = "0x000000";
5284 MY(color_max) = "0x111111";
5285 MY(count) = 0.500000;
5286 MY(originjitter) = '2.0 2.0 2.0';
5287 MY(sizeincrease) = 1;
5288 MY(size_min) = 1;
5289 MY(size_max) = 4;
5290 MY(tex_max) = 8;
5291 MY(trailspacing) = 8;
5292 MY(type) = "alphastatic";
5293 MY(velocityoffset) = '0.0 0.0 3.0';
5294}
5295// fastfire
5296SUB(firemine) {
5297 MY(airfriction) = 1.200000;
5298 MY(alpha_min) = 50;
5299 MY(alpha_max) = 256;
5300 MY(alpha_fade) = 1600;
5301 MY(bounce) = 1.500000;
5302 MY(color_min) = "0x8f0d00";
5303 MY(color_max) = "0xff5a00";
5304 MY(count) = 0.500000;
5305 MY(size_min) = 12;
5306 MY(size_max) = 12;
5307 MY(tex_min) = 48;
5308 MY(tex_max) = 55;
5309 MY(trailspacing) = 1;
5310 MY(type) = "smoke";
5311}
5312// light only
5313SUB(firemine) {
5314 MY(lightcolor) = '2.7 2.7 0.6';
5315 MY(lightradiusfade) = 50000;
5316 MY(lightradius) = 50;
5317 MY(trailspacing) = 16;
5318}
5319
5320DEF(fireball);
5321SUB(fireball) {
5322 MY(airfriction) = 1.200000;
5323 MY(alpha_min) = 50;
5324 MY(alpha_max) = 256;
5325 MY(alpha_fade) = 250;
5326 MY(bounce) = 1.500000;
5327 MY(color_min) = "0x8f0d00";
5328 MY(color_max) = "0xff5a00";
5329 MY(count) = 0.500000;
5330 MY(gravity) = -0.060000;
5331 MY(sizeincrease) = 20;
5332 MY(size_min) = 5;
5333 MY(size_max) = 5;
5334 MY(tex_min) = 48;
5335 MY(tex_max) = 55;
5336 MY(trailspacing) = 2;
5337 MY(type) = "smoke";
5338 MY(velocityjitter) = '40.0 40.0 11.0';
5339}
5340// slow fire
5341SUB(fireball) {
5342 MY(airfriction) = 1.200000;
5343 MY(alpha_min) = 50;
5344 MY(alpha_max) = 256;
5345 MY(alpha_fade) = 200;
5346 MY(bounce) = 1.500000;
5347 MY(color_min) = "0x8f0d00";
5348 MY(color_max) = "0xff5a00";
5349 MY(count) = 0.500000;
5350 MY(gravity) = -0.060000;
5351 MY(sizeincrease) = 20;
5352 MY(size_min) = 5;
5353 MY(size_max) = 5;
5354 MY(tex_min) = 48;
5355 MY(tex_max) = 55;
5356 MY(trailspacing) = 2;
5357 MY(type) = "smoke";
5358 MY(velocityjitter) = '40.0 40.0 40.0';
5359}
5360// very slow and small fire
5361SUB(fireball) {
5362 MY(airfriction) = 0.300000;
5363 MY(alpha_min) = 50;
5364 MY(alpha_max) = 256;
5365 MY(alpha_fade) = 200;
5366 MY(bounce) = 1.500000;
5367 MY(color_min) = "0x8f0d00";
5368 MY(color_max) = "0xff5a00";
5369 MY(count) = 0.500000;
5370 MY(gravity) = -0.060000;
5371 MY(sizeincrease) = 10;
5372 MY(size_min) = 5;
5373 MY(size_max) = 5;
5374 MY(tex_min) = 48;
5375 MY(tex_max) = 55;
5376 MY(trailspacing) = 4;
5377 MY(type) = "smoke";
5378 MY(velocityjitter) = '30.0 30.0 30.0';
5379}
5380// decreasing fire
5381SUB(fireball) {
5382 MY(airfriction) = 0.300000;
5383 MY(alpha_min) = 50;
5384 MY(alpha_max) = 256;
5385 MY(alpha_fade) = 200;
5386 MY(bounce) = 1.500000;
5387 MY(color_min) = "0x8f0d00";
5388 MY(color_max) = "0xff5a00";
5389 MY(count) = 0.500000;
5390 MY(gravity) = -0.060000;
5391 MY(sizeincrease) = -10;
5392 MY(size_min) = 20;
5393 MY(size_max) = 30;
5394 MY(tex_min) = 48;
5395 MY(tex_max) = 55;
5396 MY(trailspacing) = 4;
5397 MY(type) = "smoke";
5398 MY(velocityjitter) = '10.0 10.0 10.0';
5399}
5400// smoke
5401SUB(fireball) {
5402 MY(airfriction) = 1;
5403 MY(alpha_min) = 256;
5404 MY(alpha_max) = 256;
5405 MY(alpha_fade) = 90;
5406 MY(color_min) = "0x000000";
5407 MY(color_max) = "0x111111";
5408 MY(count) = 0.500000;
5409 MY(originjitter) = '10.0 10.0 10.0';
5410 MY(sizeincrease) = 7;
5411 MY(size_min) = 5;
5412 MY(size_max) = 15;
5413 MY(tex_max) = 8;
5414 MY(trailspacing) = 8;
5415 MY(type) = "alphastatic";
5416 MY(velocityoffset) = '0.0 0.0 10.0';
5417}
5418// fast fire
5419SUB(fireball) {
5420 MY(airfriction) = 1.200000;
5421 MY(alpha_min) = 50;
5422 MY(alpha_max) = 256;
5423 MY(alpha_fade) = 1600;
5424 MY(bounce) = 1.500000;
5425 MY(color_min) = "0x8f0d00";
5426 MY(color_max) = "0xff5a00";
5427 MY(count) = 0.500000;
5428 MY(size_min) = 48;
5429 MY(size_max) = 48;
5430 MY(tex_min) = 48;
5431 MY(tex_max) = 55;
5432 MY(trailspacing) = 1;
5433 MY(type) = "smoke";
5434}
5435// light only
5436SUB(fireball) {
5437 MY(lightcolor) = '2.7 2.7 0.6';
5438 MY(lightradiusfade) = 3000;
5439 MY(lightradius) = 300;
5440 MY(trailspacing) = 16;
5441}
5442
5443DEF(fireball_laser);
5444SUB(fireball_laser) {
5445 MY(alpha_min) = 192;
5446 MY(alpha_max) = 256;
5447 MY(alpha_fade) = 2560;
5448 MY(color_min) = "0x800000";
5449 MY(color_max) = "0xFF8020";
5450 MY(count) = 10;
5451 MY(size_min) = 1;
5452 MY(size_max) = 1;
5453 MY(stretchfactor) = 0.700000;
5454 MY(type) = "spark";
5455 MY(velocityjitter) = '1.0 1.0 1.0';
5456 MY(velocitymultiplier) = 10;
5457}
5458
5459// rocket explosion (bigger than mortar and hagar)
5460DEF(fireball_explode);
5461// decal
5462SUB(fireball_explode) {
5463 MY(alpha_min) = 256;
5464 MY(alpha_max) = 256;
5465 MY(countabsolute) = 1;
5466 MY(lightcolor) = '4.0 2.0 0.5';
5467 MY(lightradiusfade) = 500;
5468 MY(lightradius) = 500;
5469 MY(originjitter) = '56.0 56.0 56.0';
5470 MY(size_min) = 72;
5471 MY(size_max) = 72;
5472 MY(tex_min) = 8;
5473 MY(tex_max) = 16;
5474 MY(type) = "decal";
5475}
5476// flare effect
5477SUB(fireball_explode) {
5478 MY(alpha_min) = 192;
5479 MY(alpha_max) = 192;
5480 MY(alpha_fade) = 64;
5481 MY(color_min) = "0x404040";
5482 MY(color_max) = "0x404040";
5483 MY(countabsolute) = 1;
5484 MY(size_min) = 72;
5485 MY(size_max) = 72;
5486 MY(tex_min) = 35;
5487 MY(tex_max) = 37;
5488 MY(type) = "static";
5489}
5490// fire effect
5491SUB(fireball_explode) {
5492 MY(airfriction) = 4;
5493 MY(alpha_min) = 128;
5494 MY(alpha_max) = 128;
5495 MY(alpha_fade) = 256;
5496 MY(bounce) = 1.500000;
5497 MY(color_min) = "0x902010";
5498 MY(color_max) = "0xFFD080";
5499 MY(count) = 128;
5500 MY(liquidfriction) = 4;
5501 MY(notunderwater) = true;
5502 MY(originjitter) = '8.0 8.0 8.0';
5503 MY(size_min) = 16;
5504 MY(size_max) = 16;
5505 MY(tex_min) = 48;
5506 MY(tex_max) = 55;
5507 MY(type) = "static";
5508 MY(velocityjitter) = '512.0 512.0 512.0';
5509}
5510// underwater bubbles
5511SUB(fireball_explode) {
5512 MY(alpha_min) = 128;
5513 MY(alpha_max) = 256;
5514 MY(alpha_fade) = 64;
5515 MY(bounce) = 1.500000;
5516 MY(color_min) = "0x404040";
5517 MY(color_max) = "0x808080";
5518 MY(count) = 32;
5519 MY(gravity) = -0.125000;
5520 MY(liquidfriction) = 0.250000;
5521 MY(originjitter) = '16.0 16.0 16.0';
5522 MY(size_min) = 3;
5523 MY(size_max) = 3;
5524 MY(tex_min) = 62;
5525 MY(tex_max) = 62;
5526 MY(type) = "bubble";
5527 MY(underwater) = true;
5528 MY(velocityjitter) = '144.0 144.0 144.0';
5529}
5530// bouncing sparks
5531SUB(fireball_explode) {
5532 MY(airfriction) = 0.200000;
5533 MY(alpha_min) = 256;
5534 MY(alpha_max) = 256;
5535 MY(alpha_fade) = 384;
5536 MY(bounce) = 1.500000;
5537 MY(color_min) = "0x903010";
5538 MY(color_max) = "0xFFD030";
5539 MY(count) = 64;
5540 MY(gravity) = 1;
5541 MY(liquidfriction) = 0.800000;
5542 MY(notunderwater) = true;
5543 MY(size_min) = 2;
5544 MY(size_max) = 2;
5545 MY(type) = "spark";
5546 MY(velocityjitter) = '384.0 384.0 384.0';
5547 MY(velocityoffset) = '0.0 0.0 80.0';
5548}
5549
5550DEF(fireball_muzzleflash);
5551SUB(fireball_muzzleflash) {
5552 MY(alpha_min) = 256;
5553 MY(alpha_max) = 256;
5554 MY(alpha_fade) = 512;
5555 MY(color_min) = "0x202020";
5556 MY(color_max) = "0x404040";
5557 MY(count) = 2;
5558 MY(lightcolor) = '2.0 1.5 0.2';
5559 MY(lightradiusfade) = 2000;
5560 MY(lightradius) = 200;
5561 MY(originjitter) = '1.5 1.5 1.5';
5562 MY(size_min) = 5;
5563 MY(size_max) = 5;
5564 MY(tex_max) = 8;
5565 MY(type) = "smoke";
5566 MY(velocityjitter) = '6.0 6.0 6.0';
5567 MY(velocitymultiplier) = 0.010000;
5568}
5569SUB(fireball_muzzleflash) {
5570 MY(airfriction) = 12;
5571 MY(alpha_max) = 128;
5572 MY(alpha_fade) = 1024;
5573 MY(color_min) = "0xFFFDD9";
5574 MY(color_max) = "0xFFFDD9";
5575 MY(count) = 15;
5576 MY(originjitter) = '1.0 1.0 1.0';
5577 MY(size_min) = 3;
5578 MY(size_max) = 3;
5579 MY(tex_min) = 40;
5580 MY(tex_max) = 40;
5581 MY(type) = "spark";
5582 MY(velocityjitter) = '300.0 300.0 300.0';
5583 MY(velocitymultiplier) = 0.500000;
5584}
5585
5586DEF(fireball_preattack_muzzleflash);
5587SUB(fireball_preattack_muzzleflash) {
5588 MY(alpha_min) = 256;
5589 MY(alpha_max) = 256;
5590 MY(alpha_fade) = 512;
5591 MY(color_min) = "0x202020";
5592 MY(color_max) = "0x404040";
5593 MY(count) = 2;
5594 MY(lightcolor) = '2.0 1.5 0.2';
5595 MY(lightradiusfade) = 2000;
5596 MY(lightradius) = 200;
5597 MY(originjitter) = '1.5 1.5 1.5';
5598 MY(size_min) = 5;
5599 MY(size_max) = 5;
5600 MY(tex_max) = 8;
5601 MY(type) = "smoke";
5602 MY(velocityjitter) = '6.0 6.0 6.0';
5603 MY(velocitymultiplier) = 0.010000;
5604}
5605SUB(fireball_preattack_muzzleflash) {
5606 MY(airfriction) = 12;
5607 MY(alpha_max) = 128;
5608 MY(alpha_fade) = 1024;
5609 MY(color_min) = "0xFFFDD9";
5610 MY(color_max) = "0xFFFDD9";
5611 MY(count) = 15;
5612 MY(originjitter) = '1.0 1.0 1.0';
5613 MY(size_min) = 3;
5614 MY(size_max) = 3;
5615 MY(tex_min) = 40;
5616 MY(tex_max) = 40;
5617 MY(type) = "spark";
5618 MY(velocityjitter) = '300.0 300.0 300.0';
5619 MY(velocitymultiplier) = 0.500000;
5620}
5621
5622DEF(fireball_bfgdamage);
5623SUB(fireball_bfgdamage) {
5624 MY(alpha_min) = 256;
5625 MY(alpha_max) = 256;
5626 MY(alpha_fade) = 512;
5627 MY(color_min) = "0x202020";
5628 MY(color_max) = "0x404040";
5629 MY(count) = 2;
5630 MY(lightcolor) = '2.0 1.5 0.2';
5631 MY(lightradiusfade) = 2000;
5632 MY(lightradius) = 200;
5633 MY(originjitter) = '1.5 1.5 1.5';
5634 MY(size_min) = 5;
5635 MY(size_max) = 5;
5636 MY(tex_max) = 8;
5637 MY(type) = "smoke";
5638 MY(velocityjitter) = '6.0 6.0 6.0';
5639 MY(velocitymultiplier) = 0.010000;
5640}
5641SUB(fireball_bfgdamage) {
5642 MY(airfriction) = 12;
5643 MY(alpha_max) = 128;
5644 MY(alpha_fade) = 1024;
5645 MY(color_min) = "0xFFFDD9";
5646 MY(color_max) = "0xFFFDD9";
5647 MY(count) = 15;
5648 MY(originjitter) = '1.0 1.0 1.0';
5649 MY(size_min) = 3;
5650 MY(size_max) = 3;
5651 MY(tex_min) = 40;
5652 MY(tex_max) = 40;
5653 MY(type) = "spark";
5654 MY(velocityjitter) = '300.0 300.0 300.0';
5655 MY(velocitymultiplier) = 0.500000;
5656}
5657
5659// fire
5661 MY(alpha_min) = 200;
5662 MY(alpha_max) = 356;
5663 MY(alpha_fade) = 512;
5664 MY(bounce) = 2;
5665 MY(color_min) = "0x8f0d00";
5666 MY(color_max) = "0xff5a00";
5667 MY(count) = 100;
5668 MY(gravity) = -0.500000;
5669 MY(originjitter) = '12.0 12.0 24.0';
5670 MY(originoffset) = '0.0 0.0 10.0';
5671 MY(sizeincrease) = -1;
5672 MY(size_min) = 5;
5673 MY(size_max) = 21;
5674 MY(tex_min) = 48;
5675 MY(tex_max) = 55;
5676 MY(type) = "smoke";
5677 MY(velocityjitter) = '22.0 22.0 50.0';
5678}
5679// smoke
5680SUB(EF_FLAME) {
5681 MY(alpha_min) = 100;
5682 MY(alpha_max) = 156;
5683 MY(alpha_fade) = 200;
5684 MY(bounce) = 2;
5685 MY(color_min) = "0x000000";
5686 MY(color_max) = "0x444444";
5687 MY(count) = 30;
5688 MY(gravity) = -0.500000;
5689 MY(originjitter) = '6.0 6.0 24.0';
5690 MY(originoffset) = '0.0 0.0 40.0';
5691 MY(sizeincrease) = 6;
5692 MY(size_min) = 11;
5693 MY(size_max) = 15;
5694 MY(tex_max) = 8;
5695 MY(type) = "alphastatic";
5696 MY(velocityjitter) = '11.0 11.0 50.0';
5697}
5698
5699// rifle bullet trail (somewhat like a tracer)
5700DEF(tr_rifle);
5701SUB(tr_rifle) {
5702 MY(alpha_min) = 256;
5703 MY(alpha_max) = 256;
5704 MY(alpha_fade) = 2560;
5705 MY(color_min) = "0x800000";
5706 MY(color_max) = "0xFF8020";
5707 MY(size_min) = 1.500000;
5708 MY(size_max) = 1.500000;
5709 MY(stretchfactor) = 1;
5710 MY(trailspacing) = 128;
5711 MY(type) = "spark";
5712 MY(velocitymultiplier) = 0.700000;
5713}
5714SUB(tr_rifle) {
5715 MY(airfriction) = -4;
5716 MY(alpha_min) = 256;
5717 MY(alpha_max) = 256;
5718 MY(alpha_fade) = 256;
5719 MY(color_min) = "0x202020";
5720 MY(color_max) = "0x404040";
5721 MY(notunderwater) = true;
5722 MY(sizeincrease) = 0.400000;
5723 MY(size_min) = 4;
5724 MY(size_max) = 4;
5725 MY(tex_max) = 8;
5726 MY(trailspacing) = 8;
5727 MY(type) = "smoke";
5728 MY(velocityjitter) = '4.0 4.0 4.0';
5729}
5730SUB(tr_rifle) {
5731 MY(alpha_min) = 256;
5732 MY(alpha_max) = 256;
5733 MY(alpha_fade) = 128;
5734 MY(bounce) = 1.500000;
5735 MY(color_min) = "0x404040";
5736 MY(color_max) = "0x808080";
5737 MY(gravity) = -0.125000;
5738 MY(liquidfriction) = 4;
5739 MY(size_min) = 2;
5740 MY(size_max) = 2;
5741 MY(tex_min) = 62;
5742 MY(tex_max) = 62;
5743 MY(trailspacing) = 32;
5744 MY(type) = "bubble";
5745 MY(underwater) = true;
5746 MY(velocityjitter) = '16.0 16.0 16.0';
5747}
5748
5749// rocket guiding start
5750DEF(rocket_guide);
5751// underwater bubbles
5752SUB(rocket_guide) {
5753 MY(alpha_min) = 128;
5754 MY(alpha_max) = 256;
5755 MY(alpha_fade) = 64;
5756 MY(bounce) = 1.500000;
5757 MY(color_min) = "0x404040";
5758 MY(color_max) = "0x808080";
5759 MY(count) = 2;
5760 MY(gravity) = -0.125000;
5761 MY(liquidfriction) = 0.250000;
5762 MY(originjitter) = '8.0 8.0 8.0';
5763 MY(size_min) = 1.500000;
5764 MY(size_max) = 1.500000;
5765 MY(tex_min) = 62;
5766 MY(tex_max) = 62;
5767 MY(type) = "bubble";
5768 MY(underwater) = true;
5769 MY(velocityjitter) = '48.0 48.0 48.0';
5770 MY(velocitymultiplier) = -0.100000;
5771}
5772// bouncing sparks
5773SUB(rocket_guide) {
5774 MY(airfriction) = 0.200000;
5775 MY(alpha_min) = 256;
5776 MY(alpha_max) = 256;
5777 MY(alpha_fade) = 984;
5778 MY(bounce) = 1.500000;
5779 MY(color_min) = "0x903010";
5780 MY(color_max) = "0xFFD030";
5781 MY(count) = 8;
5782 MY(gravity) = 1;
5783 MY(liquidfriction) = 0.800000;
5784 MY(notunderwater) = true;
5785 MY(size_min) = 0.300000;
5786 MY(size_max) = 0.700000;
5787 MY(stretchfactor) = 0.400000;
5788 MY(tex_min) = 40;
5789 MY(tex_max) = 40;
5790 MY(type) = "spark";
5791 MY(velocityjitter) = '156.0 156.0 156.0';
5792 MY(velocitymultiplier) = -0.300000;
5793 MY(velocityoffset) = '0.0 0.0 80.0';
5794}
5795SUB(rocket_guide) {
5796 MY(alpha_min) = 100;
5797 MY(alpha_max) = 100;
5798 MY(alpha_fade) = 500;
5799 MY(color_min) = "0x903010";
5800 MY(color_max) = "0xFFD030";
5801 MY(countabsolute) = 1;
5802 MY(sizeincrease) = 300;
5803 MY(size_min) = 10;
5804 MY(size_max) = 10;
5805 MY(tex_min) = 65;
5806 MY(tex_max) = 65;
5807 MY(type) = "smoke";
5808}
5809
5810// gauntlet laser
5811DEF(laser_gauntlet);
5812SUB(laser_gauntlet) {
5813 MY(airfriction) = 10;
5814 MY(alpha_min) = 128;
5815 MY(alpha_max) = 512;
5816 MY(alpha_fade) = 6280;
5817 MY(color_min) = "0xb44215";
5818 MY(color_max) = "0x880000";
5819 MY(count) = 3;
5820 MY(originjitter) = '2.0 2.0 2.0';
5821 MY(startangle_min) = -180;
5822 MY(startangle_max) = 180;
5823 MY(spin_min) = 4000;
5824 MY(spin_max) = -4000;
5825 MY(sizeincrease) = -100;
5826 MY(size_min) = 7;
5827 MY(size_max) = 10;
5828 MY(stretchfactor) = 2.300000;
5829 MY(tex_min) = 43;
5830 MY(tex_max) = 43;
5831 MY(type) = "spark";
5832 MY(velocityjitter) = '150.0 150.0 150.0';
5833 MY(velocitymultiplier) = 0.200000;
5834}
5835SUB(laser_gauntlet) {
5836 MY(airfriction) = 12;
5837 MY(alpha_min) = 256;
5838 MY(alpha_max) = 512;
5839 MY(alpha_fade) = 6280;
5840 MY(color_min) = "0xff4200";
5841 MY(color_max) = "0xff0000";
5842 MY(count) = 6;
5843 MY(originjitter) = '2.0 2.0 2.0';
5844 MY(sizeincrease) = -100;
5845 MY(size_min) = 7;
5846 MY(size_max) = 9;
5847 MY(stretchfactor) = 2;
5848 MY(tex_min) = 8;
5849 MY(tex_max) = 15;
5850 MY(type) = "spark";
5851 MY(velocityjitter) = '100.0 100.0 100.0';
5852 MY(velocitymultiplier) = 0.200000;
5853}
5854
5855DEF(laser_gauntletmuzzleflash);
5856// glow and light
5857SUB(laser_gauntletmuzzleflash) {
5858 MY(airfriction) = 10;
5859 MY(alpha_min) = 256;
5860 MY(alpha_max) = 512;
5861 MY(alpha_fade) = 6280;
5862 MY(color_min) = "0x220000";
5863 MY(color_max) = "0x880000";
5864 MY(countabsolute) = 1;
5865 MY(lightcolor) = '3.0 0.1 0.1';
5866 MY(lightradiusfade) = 500;
5867 MY(lightradius) = 150;
5868 MY(sizeincrease) = -100;
5869 MY(size_min) = 10;
5870 MY(size_max) = 15;
5871 MY(stretchfactor) = 2;
5872 MY(tex_min) = 65;
5873 MY(tex_max) = 65;
5874 MY(type) = "smoke";
5875}
5876// electricity
5877SUB(laser_gauntletmuzzleflash) {
5878 MY(airfriction) = 10;
5879 MY(alpha_min) = 128;
5880 MY(alpha_max) = 512;
5881 MY(alpha_fade) = 6280;
5882 MY(color_min) = "0xb44215";
5883 MY(color_max) = "0x880000";
5884 MY(count) = 3;
5885 MY(originjitter) = '2.0 2.0 2.0';
5886 MY(startangle_min) = -180;
5887 MY(startangle_max) = 180;
5888 MY(spin_min) = 4000;
5889 MY(spin_max) = -4000;
5890 MY(sizeincrease) = -100;
5891 MY(size_min) = 7;
5892 MY(size_max) = 10;
5893 MY(stretchfactor) = 2.300000;
5894 MY(tex_min) = 43;
5895 MY(tex_max) = 43;
5896 MY(type) = "spark";
5897 MY(velocityjitter) = '150.0 150.0 150.0';
5898 MY(velocitymultiplier) = 0.200000;
5899}
5900// fire
5901SUB(laser_gauntletmuzzleflash) {
5902 MY(airfriction) = 12;
5903 MY(alpha_min) = 256;
5904 MY(alpha_max) = 512;
5905 MY(alpha_fade) = 6280;
5906 MY(color_min) = "0xff4200";
5907 MY(color_max) = "0xff0000";
5908 MY(count) = 6;
5909 MY(originjitter) = '2.0 2.0 2.0';
5910 MY(sizeincrease) = -100;
5911 MY(size_min) = 7;
5912 MY(size_max) = 9;
5913 MY(stretchfactor) = 2;
5914 MY(tex_min) = 8;
5915 MY(tex_max) = 15;
5916 MY(type) = "spark";
5917 MY(velocityjitter) = '100.0 100.0 100.0';
5918 MY(velocitymultiplier) = 0.200000;
5919}
5920
5921// torch flame, spawn it as fast as you can 20 times per second or more, supports direction but not required
5922DEF(torchflame);
5923// fast fire
5924SUB(torchflame) {
5925 MY(airfriction) = 1.200000;
5926 MY(alpha_min) = 50;
5927 MY(alpha_max) = 256;
5928 MY(alpha_fade) = 250;
5929 MY(color_min) = "0x8f0d00";
5930 MY(color_max) = "0xff5a00";
5931 MY(count) = 3;
5932 MY(gravity) = -0.060000;
5933 MY(sizeincrease) = 20;
5934 MY(size_min) = 5;
5935 MY(size_max) = 5;
5936 MY(tex_min) = 48;
5937 MY(tex_max) = 55;
5938 MY(type) = "smoke";
5939 MY(velocityjitter) = '40.0 40.0 11.0';
5940 MY(velocitymultiplier) = 30;
5941}
5942// slow fire
5943SUB(torchflame) {
5944 MY(airfriction) = 1.200000;
5945 MY(alpha_min) = 50;
5946 MY(alpha_max) = 256;
5947 MY(alpha_fade) = 200;
5948 MY(color_min) = "0x8f0d00";
5949 MY(color_max) = "0xff5a00";
5950 MY(count) = 2.500000;
5951 MY(gravity) = -0.060000;
5952 MY(sizeincrease) = 20;
5953 MY(size_min) = 5;
5954 MY(size_max) = 5;
5955 MY(tex_min) = 48;
5956 MY(tex_max) = 55;
5957 MY(type) = "smoke";
5958 MY(velocityjitter) = '40.0 40.0 40.0';
5959 MY(velocitymultiplier) = 20;
5960}
5961// very slow and small fire
5962SUB(torchflame) {
5963 MY(airfriction) = 0.300000;
5964 MY(alpha_min) = 50;
5965 MY(alpha_max) = 256;
5966 MY(alpha_fade) = 200;
5967 MY(color_min) = "0x8f0d00";
5968 MY(color_max) = "0xff5a00";
5969 MY(count) = 1.500000;
5970 MY(gravity) = -0.060000;
5971 MY(sizeincrease) = 10;
5972 MY(size_min) = 5;
5973 MY(size_max) = 5;
5974 MY(tex_min) = 48;
5975 MY(tex_max) = 55;
5976 MY(type) = "smoke";
5977 MY(velocityjitter) = '30.0 30.0 30.0';
5978 MY(velocitymultiplier) = 10;
5979}
5980// decreasing fire
5981SUB(torchflame) {
5982 MY(airfriction) = 0.300000;
5983 MY(alpha_min) = 50;
5984 MY(alpha_max) = 256;
5985 MY(alpha_fade) = 200;
5986 MY(color_min) = "0x8f0d00";
5987 MY(color_max) = "0xff5a00";
5988 MY(count) = 2;
5989 MY(gravity) = -0.060000;
5990 MY(sizeincrease) = -10;
5991 MY(size_min) = 20;
5992 MY(size_max) = 30;
5993 MY(tex_min) = 48;
5994 MY(tex_max) = 55;
5995 MY(type) = "smoke";
5996 MY(velocityjitter) = '10.0 10.0 10.0';
5997 MY(velocitymultiplier) = 15;
5998}
5999// smoke
6000SUB(torchflame) {
6001 MY(airfriction) = 1;
6002 MY(alpha_min) = 256;
6003 MY(alpha_max) = 256;
6004 MY(alpha_fade) = 90;
6005 MY(color_min) = "0x000000";
6006 MY(color_max) = "0x111111";
6007 MY(count) = 0.500000;
6008 MY(originjitter) = '10.0 10.0 10.0';
6009 MY(sizeincrease) = 7;
6010 MY(size_min) = 5;
6011 MY(size_max) = 15;
6012 MY(tex_max) = 8;
6013 MY(type) = "alphastatic";
6014 MY(velocitymultiplier) = 20;
6015 MY(velocityoffset) = '0.0 0.0 10.0';
6016}
6017
6019
6020DEF(electro_lightning);
6021SUB(electro_lightning) {
6022 MY(alpha_min) = 256;
6023 MY(alpha_max) = 256;
6024 MY(countabsolute) = 1;
6025 MY(lightcolor) = '3.1 4.4 10.0';
6026 MY(lightradiusfade) = 500;
6027 MY(lightradius) = 50;
6028 MY(originjitter) = '2.0 2.0 2.0';
6029 MY(size_min) = 16;
6030 MY(size_max) = 16;
6031 MY(tex_min) = 59;
6032 MY(tex_max) = 59;
6033 MY(type) = "decal";
6034}
6035SUB(electro_lightning) {
6036 MY(alpha_min) = 100;
6037 MY(alpha_max) = 206;
6038 MY(alpha_fade) = 1724;
6039 MY(color_min) = "0x2030FF";
6040 MY(color_max) = "0x80C0FF";
6041 MY(count) = 300;
6042 MY(originjitter) = '1.5 1.5 1.5';
6043 MY(sizeincrease) = 10;
6044 MY(size_min) = 6;
6045 MY(size_max) = 6;
6046 MY(tex_min) = 65;
6047 MY(tex_max) = 65;
6048 MY(type) = "spark";
6049 MY(velocityjitter) = '6.0 6.0 6.0';
6050 MY(velocitymultiplier) = 2000;
6051}
6052SUB(electro_lightning) {
6053 MY(airfriction) = 2;
6054 MY(alpha_min) = 110;
6055 MY(alpha_max) = 170;
6056 MY(alpha_fade) = 1500;
6057 MY(color_min) = "0xDDFDFF";
6058 MY(color_max) = "0xFDFDFF";
6059 MY(count) = 30;
6060 MY(originjitter) = '1.0 1.0 1.0';
6061 MY(size_min) = 2;
6062 MY(size_max) = 5;
6063 MY(stretchfactor) = 1.500000;
6064 MY(tex_min) = 8;
6065 MY(tex_max) = 15;
6066 MY(type) = "spark";
6067 MY(velocityjitter) = '150.0 150.0 150.0';
6068 MY(velocitymultiplier) = 0.500000;
6069}
6070SUB(electro_lightning) {
6071 MY(airfriction) = 8;
6072 MY(alpha_min) = 110;
6073 MY(alpha_max) = 170;
6074 MY(alpha_fade) = 1500;
6075 MY(color_min) = "0xFDFDFF";
6076 MY(color_max) = "0xF9FDFF";
6077 MY(count) = 50;
6078 MY(gravity) = 1.300000;
6079 MY(originjitter) = '1.0 1.0 1.0';
6080 MY(size_min) = 2;
6081 MY(size_max) = 3;
6082 MY(stretchfactor) = 0.100000;
6083 MY(tex_min) = 41;
6084 MY(tex_max) = 41;
6085 MY(type) = "spark";
6086 MY(velocityjitter) = '350.0 350.0 350.0';
6087 MY(velocitymultiplier) = 2.500000;
6088}
6089
6090DEF(gauntlet_lightning);
6091SUB(gauntlet_lightning) {
6092 MY(alpha_min) = 256;
6093 MY(alpha_max) = 256;
6094 MY(alpha_fade) = 1024;
6095 MY(color_min) = "0x280000";
6096 MY(color_max) = "0x280000";
6097 MY(count) = 300;
6098 MY(originjitter) = '1.5 1.5 1.5';
6099 MY(sizeincrease) = 15;
6100 MY(size_min) = 3;
6101 MY(size_max) = 3;
6102 MY(tex_min) = 65;
6103 MY(tex_max) = 65;
6104 MY(type) = "spark";
6105 MY(velocityjitter) = '6.0 6.0 6.0';
6106 MY(velocitymultiplier) = 2000;
6107}
6108SUB(gauntlet_lightning) {
6109 MY(airfriction) = 2;
6110 MY(alpha_min) = 110;
6111 MY(alpha_max) = 228;
6112 MY(alpha_fade) = 1024;
6113 MY(color_min) = "0xDD0000";
6114 MY(color_max) = "0xFD0000";
6115 MY(count) = 30;
6116 MY(originjitter) = '1.0 1.0 1.0';
6117 MY(size_min) = 2;
6118 MY(size_max) = 5;
6119 MY(stretchfactor) = 1.500000;
6120 MY(tex_min) = 8;
6121 MY(tex_max) = 15;
6122 MY(type) = "spark";
6123 MY(velocityjitter) = '150.0 150.0 150.0';
6124 MY(velocitymultiplier) = 0.500000;
6125}
6126SUB(gauntlet_lightning) {
6127 MY(airfriction) = 8;
6128 MY(alpha_min) = 110;
6129 MY(alpha_max) = 228;
6130 MY(alpha_fade) = 600;
6131 MY(color_min) = "0xFD0000";
6132 MY(color_max) = "0xF90000";
6133 MY(count) = 50;
6134 MY(gravity) = 1.300000;
6135 MY(originjitter) = '1.0 1.0 1.0';
6136 MY(size_min) = 2;
6137 MY(size_max) = 3;
6138 MY(stretchfactor) = 0.100000;
6139 MY(tex_min) = 41;
6140 MY(tex_max) = 41;
6141 MY(type) = "spark";
6142 MY(velocityjitter) = '350.0 350.0 350.0';
6143 MY(velocitymultiplier) = 2.500000;
6144}
6145
6146DEF(crylink_joinexplode);
6147// decal
6148SUB(crylink_joinexplode) {
6149 MY(alpha_min) = 256;
6150 MY(alpha_max) = 256;
6151 MY(countabsolute) = 1;
6152 MY(originjitter) = '12.0 12.0 12.0';
6153 MY(size_min) = 24;
6154 MY(size_max) = 24;
6155 MY(tex_min) = 47;
6156 MY(tex_max) = 47;
6157 MY(type) = "decal";
6158}
6159// purple flare effect
6160SUB(crylink_joinexplode) {
6161 MY(alpha_min) = 256;
6162 MY(alpha_max) = 256;
6163 MY(alpha_fade) = 512;
6164 MY(color_min) = "0x504060";
6165 MY(color_max) = "0x504060";
6166 MY(countabsolute) = 1;
6167 MY(size_min) = 24;
6168 MY(size_max) = 24;
6169 MY(tex_min) = 39;
6170 MY(tex_max) = 39;
6171 MY(type) = "static";
6172}
6173// purple sparks
6174SUB(crylink_joinexplode) {
6175 MY(alpha_min) = 256;
6176 MY(alpha_max) = 256;
6177 MY(alpha_fade) = 1024;
6178 MY(bounce) = 2;
6179 MY(color_min) = "0xA040C0";
6180 MY(color_max) = "0xA040C0";
6181 MY(count) = 40;
6182 MY(size_min) = 6;
6183 MY(size_max) = 6;
6184 MY(tex_min) = 41;
6185 MY(tex_max) = 41;
6186 MY(type) = "spark";
6187 MY(velocityjitter) = '512.0 512.0 512.0';
6188}
6189// purple splash
6190SUB(crylink_joinexplode) {
6191 MY(alpha_min) = 256;
6192 MY(alpha_max) = 256;
6193 MY(alpha_fade) = 512;
6194 MY(color_min) = "0xE070FF";
6195 MY(color_max) = "0xE070FF";
6196 MY(count) = 1.500000;
6197 MY(size_min) = 16;
6198 MY(size_max) = 16;
6199 MY(type) = "static";
6200 MY(velocityjitter) = '32.0 32.0 32.0';
6201}
6202// purple splash
6203SUB(crylink_joinexplode) {
6204 MY(alpha_min) = 256;
6205 MY(alpha_max) = 256;
6206 MY(alpha_fade) = 1024;
6207 MY(color_min) = "0xE070FF";
6208 MY(color_max) = "0xE070FF";
6209 MY(count) = 3;
6210 MY(size_min) = 16;
6211 MY(size_max) = 16;
6212 MY(type) = "static";
6213 MY(velocityjitter) = '256.0 256.0 256.0';
6214}
6215
6216// sparks for keepaway ball touch
6217DEF(kaball_sparks);
6218SUB(kaball_sparks) {
6219 MY(airfriction) = 3;
6220 MY(alpha_max) = 256;
6221 MY(alpha_fade) = 556;
6222 MY(bounce) = 1.500000;
6223 MY(color_min) = "0xa9cacf";
6224 MY(color_max) = "0x0054ff";
6225 MY(count) = 35;
6226 MY(gravity) = 1;
6227 MY(originjitter) = '1.0 1.0 1.0';
6228 MY(size_min) = 1;
6229 MY(size_max) = 3;
6230 MY(tex_min) = 40;
6231 MY(tex_max) = 40;
6232 MY(type) = "spark";
6233 MY(velocityjitter) = '300.0 300.0 300.0';
6234 MY(velocitymultiplier) = 0.500000;
6235}
6236
6237// weak rifle bullet trail (somewhat like a tracer)
6238DEF(tr_rifle_weak);
6239SUB(tr_rifle_weak) {
6240 MY(alpha_min) = 256;
6241 MY(alpha_max) = 256;
6242 MY(alpha_fade) = 2560;
6243 MY(color_min) = "0x800000";
6244 MY(color_max) = "0xFF8020";
6245 MY(size_min) = 1.500000;
6246 MY(size_max) = 1.500000;
6247 MY(stretchfactor) = 1;
6248 MY(trailspacing) = 128;
6249 MY(type) = "spark";
6250 MY(velocitymultiplier) = 0.700000;
6251}
6252SUB(tr_rifle_weak) {
6253 MY(airfriction) = -4;
6254 MY(alpha_min) = 256;
6255 MY(alpha_max) = 256;
6256 MY(alpha_fade) = 256;
6257 MY(color_min) = "0x202020";
6258 MY(color_max) = "0x404040";
6259 MY(notunderwater) = true;
6260 MY(sizeincrease) = 0.400000;
6261 MY(size_min) = 4;
6262 MY(size_max) = 4;
6263 MY(tex_max) = 8;
6264 MY(trailspacing) = 48;
6265 MY(type) = "smoke";
6266 MY(velocityjitter) = '4.0 4.0 4.0';
6267}
6268SUB(tr_rifle_weak) {
6269 MY(alpha_min) = 256;
6270 MY(alpha_max) = 256;
6271 MY(alpha_fade) = 128;
6272 MY(bounce) = 1.500000;
6273 MY(color_min) = "0x404040";
6274 MY(color_max) = "0x808080";
6275 MY(gravity) = -0.125000;
6276 MY(liquidfriction) = 4;
6277 MY(size_min) = 2;
6278 MY(size_max) = 2;
6279 MY(tex_min) = 62;
6280 MY(tex_max) = 62;
6281 MY(trailspacing) = 192;
6282 MY(type) = "bubble";
6283 MY(underwater) = true;
6284 MY(velocityjitter) = '16.0 16.0 16.0';
6285}
6286
6287// red smoke emiter
6288DEF(red_smoke);
6289SUB(red_smoke) {
6290 MY(airfriction) = -1;
6291 MY(alpha_min) = 32;
6292 MY(alpha_max) = 64;
6293 MY(alpha_fade) = 32;
6294 MY(color_min) = "0xff8866";
6295 MY(color_max) = "0x331100";
6296 MY(count) = 2;
6297 MY(gravity) = -0.007000;
6298 MY(startangle_max) = 360;
6299 MY(spin_min) = -30;
6300 MY(spin_max) = 30;
6301 MY(size_min) = 60;
6302 MY(size_max) = 120;
6303 MY(tex_max) = 8;
6304 MY(type) = "smoke";
6305 MY(velocitymultiplier) = 5;
6306}
6307
6308// pipe smoke emiter
6309DEF(pipe_smoke);
6310SUB(pipe_smoke) {
6311 MY(airfriction) = -1;
6312 MY(alpha_min) = 32;
6313 MY(alpha_max) = 64;
6314 MY(alpha_fade) = 48;
6315 MY(color_min) = "0x999999";
6316 MY(color_max) = "0x555555";
6317 MY(count) = 2;
6318 MY(gravity) = -0.015000;
6319 MY(startangle_max) = 360;
6320 MY(spin_min) = -180;
6321 MY(spin_max) = 180;
6322 MY(sizeincrease) = 35;
6323 MY(size_min) = 5;
6324 MY(size_max) = 10;
6325 MY(tex_max) = 8;
6326 MY(type) = "smoke";
6327 MY(velocityjitter) = '0.0 0.0 5.0';
6328 MY(velocitymultiplier) = 15;
6329}
6330
6331// seeker missile trail
6332DEF(TR_SEEKER);
6333SUB(TR_SEEKER) {
6334 MY(alpha_min) = 200;
6335 MY(alpha_max) = 300;
6336 MY(alpha_fade) = 200;
6337 MY(bounce) = 1;
6338 MY(color_min) = "0x000000";
6339 MY(color_max) = "0x666666";
6340 MY(lightcolor) = '6.0 3.0 1.0';
6341 MY(lightradius) = 100;
6342 MY(notunderwater) = true;
6343 MY(originjitter) = '2.0 2.0 2.0';
6344 MY(startangle_min) = -180;
6345 MY(startangle_max) = 180;
6346 MY(spin_min) = -30;
6347 MY(spin_max) = 30;
6348 MY(sizeincrease) = 11;
6349 MY(size_min) = 2;
6350 MY(size_max) = 2;
6351 MY(tex_max) = 8;
6352 MY(trailspacing) = 10;
6353 MY(type) = "smoke";
6354 MY(velocityjitter) = '3.0 3.0 3.0';
6355 MY(velocitymultiplier) = -0.020000;
6356}
6357// fire
6358SUB(TR_SEEKER) {
6359 MY(airfriction) = 8;
6360 MY(alpha_min) = 100;
6361 MY(alpha_max) = 144;
6362 MY(alpha_fade) = 588;
6363 MY(color_min) = "0xffdf72";
6364 MY(color_max) = "0x811200";
6365 MY(sizeincrease) = -30;
6366 MY(size_min) = 5;
6367 MY(size_max) = 5;
6368 MY(tex_min) = 48;
6369 MY(tex_max) = 55;
6370 MY(trailspacing) = 4;
6371 MY(type) = "static";
6372 MY(velocityjitter) = '32.0 32.0 32.0';
6373 MY(velocitymultiplier) = -1.500000;
6374}
6375// bubbles
6376SUB(TR_SEEKER) {
6377 MY(alpha_min) = 256;
6378 MY(alpha_max) = 256;
6379 MY(alpha_fade) = 256;
6380 MY(bounce) = 1.500000;
6381 MY(gravity) = -0.125000;
6382 MY(liquidfriction) = 4;
6383 MY(size_min) = 1;
6384 MY(size_max) = 2;
6385 MY(tex_min) = 62;
6386 MY(tex_max) = 62;
6387 MY(trailspacing) = 16;
6388 MY(type) = "bubble";
6389 MY(underwater) = true;
6390 MY(velocityjitter) = '16.0 16.0 16.0';
6391 MY(velocitymultiplier) = -0.310000;
6392}
6393// sparks
6394SUB(TR_SEEKER) {
6395 MY(airfriction) = 5;
6396 MY(alpha_min) = 444;
6397 MY(alpha_max) = 512;
6398 MY(alpha_fade) = 1866;
6399 MY(bounce) = 1;
6400 MY(color_min) = "0xFFFDD9";
6401 MY(color_max) = "0xFFFDD9";
6402 MY(notunderwater) = true;
6403 MY(originjitter) = '1.0 1.0 1.0';
6404 MY(size_min) = 0.500000;
6405 MY(size_max) = 0.500000;
6406 MY(stretchfactor) = 0.300000;
6407 MY(tex_min) = 40;
6408 MY(tex_max) = 40;
6409 MY(trailspacing) = 20;
6410 MY(type) = "spark";
6411 MY(velocityjitter) = '100.0 100.0 100.0';
6412 MY(velocitymultiplier) = -0.310000;
6413}
6414
6415#include "effectinfo_vehicles.inc"
6416
6417// generic explosion size:big (biggest explosion ever)
6418DEF(explosion_big);
6419// decal
6420SUB(explosion_big) {
6421 MY(alpha_min) = 256;
6422 MY(alpha_max) = 256;
6423 MY(countabsolute) = 1;
6424 MY(lightcolor) = '8.0 4.0 0.0';
6425 MY(lightradiusfade) = 1750;
6426 MY(lightradius) = 600;
6427 MY(originjitter) = '23.0 23.0 23.0';
6428 MY(size_min) = 172;
6429 MY(size_max) = 172;
6430 MY(tex_min) = 8;
6431 MY(tex_max) = 16;
6432 MY(type) = "decal";
6433}
6434// shockwave
6435SUB(explosion_big) {
6436 MY(alpha_min) = 56;
6437 MY(alpha_max) = 56;
6438 MY(alpha_fade) = 330;
6439 MY(color_min) = "0x8f0d00";
6440 MY(color_max) = "0xff5a00";
6441 MY(countabsolute) = 1;
6442 MY(sizeincrease) = 4400;
6443 MY(size_min) = 72;
6444 MY(size_max) = 72;
6445 MY(tex_min) = 33;
6446 MY(tex_max) = 33;
6447 MY(type) = "static";
6448}
6449// fire effect
6450SUB(explosion_big) {
6451 MY(airfriction) = 8;
6452 MY(alpha_min) = 200;
6453 MY(alpha_max) = 256;
6454 MY(alpha_fade) = 712;
6455 MY(color_min) = "0x8f0d00";
6456 MY(color_max) = "0xff5a00";
6457 MY(count) = 64;
6458 MY(liquidfriction) = 8;
6459 MY(notunderwater) = true;
6460 MY(originjitter) = '80.0 80.0 80.0';
6461 MY(sizeincrease) = 45;
6462 MY(size_min) = 133;
6463 MY(size_max) = 144;
6464 MY(tex_min) = 48;
6465 MY(tex_max) = 55;
6466 MY(type) = "static";
6467 MY(velocityjitter) = '2512.0 2512.0 2512.0';
6468}
6469// fire rays
6470SUB(explosion_big) {
6471 MY(airfriction) = -5;
6472 MY(alpha_min) = 200;
6473 MY(alpha_max) = 256;
6474 MY(alpha_fade) = 800;
6475 MY(color_min) = "0x8f0d00";
6476 MY(color_max) = "0xff5a00";
6477 MY(count) = 64;
6478 MY(liquidfriction) = 8;
6479 MY(notunderwater) = true;
6480 MY(originjitter) = '40.0 40.0 40.0';
6481 MY(sizeincrease) = 45;
6482 MY(size_min) = 133;
6483 MY(size_max) = 144;
6484 MY(stretchfactor) = 10;
6485 MY(tex_min) = 48;
6486 MY(tex_max) = 55;
6487 MY(type) = "spark";
6488 MY(velocityjitter) = '512.0 512.0 512.0';
6489}
6490// smoke
6491SUB(explosion_big) {
6492 MY(airfriction) = 8;
6493 MY(alpha_min) = 300;
6494 MY(alpha_max) = 650;
6495 MY(alpha_fade) = 456;
6496 MY(color_min) = "0x4F4B46";
6497 MY(color_max) = "0x000000";
6498 MY(count) = 32;
6499 MY(notunderwater) = true;
6500 MY(sizeincrease) = 244;
6501 MY(size_min) = 50;
6502 MY(size_max) = 100;
6503 MY(tex_max) = 8;
6504 MY(type) = "alphastatic";
6505 MY(velocityjitter) = '3444.0 3444.0 3444.0';
6506}
6507// bouncing sparks
6508SUB(explosion_big) {
6509 MY(airfriction) = 1;
6510 MY(alpha_min) = 644;
6511 MY(alpha_max) = 956;
6512 MY(alpha_fade) = 1284;
6513 MY(color_min) = "0xffa35b";
6514 MY(color_max) = "0xfff2be";
6515 MY(count) = 34;
6516 MY(gravity) = 1;
6517 MY(liquidfriction) = 0.800000;
6518 MY(notunderwater) = true;
6519 MY(originjitter) = '160.0 160.0 160.0';
6520 MY(size_min) = 3;
6521 MY(size_max) = 4;
6522 MY(stretchfactor) = 0.700000;
6523 MY(tex_min) = 40;
6524 MY(tex_max) = 40;
6525 MY(type) = "spark";
6526 MY(velocityjitter) = '924.0 924.0 924.0';
6527 MY(velocityoffset) = '0.0 0.0 370.0';
6528}
6529// debris
6530SUB(explosion_big) {
6531 MY(airfriction) = 0.500000;
6532 MY(alpha_min) = 444;
6533 MY(alpha_max) = 1356;
6534 MY(alpha_fade) = 1184;
6535 MY(color_min) = "0xFFFFFF";
6536 MY(color_max) = "0xcac5b4";
6537 MY(count) = 16;
6538 MY(gravity) = 2.300000;
6539 MY(notunderwater) = true;
6540 MY(startangle_min) = -180;
6541 MY(startangle_max) = 180;
6542 MY(spin_min) = -1000;
6543 MY(spin_max) = 1000;
6544 MY(sizeincrease) = -5;
6545 MY(size_min) = 10;
6546 MY(size_max) = 16;
6547 MY(tex_min) = 66;
6548 MY(tex_max) = 68;
6549 MY(type) = "alphastatic";
6550 MY(velocityjitter) = '1800.0 1800.0 1800.0';
6551 MY(velocityoffset) = '0.0 0.0 970.0';
6552}
6553// underwater bubbles
6554SUB(explosion_big) {
6555 MY(alpha_min) = 128;
6556 MY(alpha_max) = 256;
6557 MY(alpha_fade) = 64;
6558 MY(bounce) = 1.500000;
6559 MY(color_min) = "0x404040";
6560 MY(color_max) = "0x808080";
6561 MY(count) = 32;
6562 MY(gravity) = -0.125000;
6563 MY(liquidfriction) = 0.250000;
6564 MY(originjitter) = '160.0 160.0 160.0';
6565 MY(size_min) = 3;
6566 MY(size_max) = 3;
6567 MY(tex_min) = 62;
6568 MY(tex_max) = 62;
6569 MY(type) = "bubble";
6570 MY(underwater) = true;
6571 MY(velocityjitter) = '444.0 444.0 444.0';
6572}
6573// underwatershockwave
6574SUB(explosion_big) {
6575 MY(alpha_min) = 40;
6576 MY(alpha_max) = 40;
6577 MY(alpha_fade) = 300;
6578 MY(countabsolute) = 1;
6579 MY(sizeincrease) = 2900;
6580 MY(size_min) = 30;
6581 MY(size_max) = 30;
6582 MY(tex_min) = 33;
6583 MY(tex_max) = 33;
6584 MY(type) = "smoke";
6585 MY(underwater) = true;
6586 MY(velocitymultiplier) = 0.300000;
6587}
6588
6589// generic explosion size:medium (it leaves rising smoke for a longer time)
6590DEF(explosion_medium);
6591// shockwave
6592SUB(explosion_medium) {
6593 MY(alpha_min) = 56;
6594 MY(alpha_max) = 56;
6595 MY(alpha_fade) = 330;
6596 MY(color_min) = "0x8f0d00";
6597 MY(color_max) = "0xff5a00";
6598 MY(countabsolute) = 1;
6599 MY(sizeincrease) = 2400;
6600 MY(size_min) = 72;
6601 MY(size_max) = 72;
6602 MY(tex_min) = 33;
6603 MY(tex_max) = 33;
6604 MY(type) = "static";
6605}
6606// fire effect
6607SUB(explosion_medium) {
6608 MY(airfriction) = 8;
6609 MY(alpha_min) = 200;
6610 MY(alpha_max) = 256;
6611 MY(alpha_fade) = 712;
6612 MY(color_min) = "0x8f0d00";
6613 MY(color_max) = "0xff5a00";
6614 MY(count) = 32;
6615 MY(liquidfriction) = 8;
6616 MY(notunderwater) = true;
6617 MY(originjitter) = '30.0 30.0 30.0';
6618 MY(startangle_min) = -180;
6619 MY(startangle_max) = 180;
6620 MY(spin_min) = -500;
6621 MY(spin_max) = 500;
6622 MY(sizeincrease) = 45;
6623 MY(size_min) = 133;
6624 MY(size_max) = 144;
6625 MY(tex_min) = 48;
6626 MY(tex_max) = 55;
6627 MY(type) = "static";
6628 MY(velocityjitter) = '1512.0 1512.0 1512.0';
6629}
6630// fire effect 2
6631SUB(explosion_medium) {
6632 MY(airfriction) = 8;
6633 MY(alpha_min) = 200;
6634 MY(alpha_max) = 256;
6635 MY(alpha_fade) = 612;
6636 MY(color_min) = "0x8f0d00";
6637 MY(color_max) = "0xff5a00";
6638 MY(count) = 32;
6639 MY(gravity) = -2;
6640 MY(liquidfriction) = 8;
6641 MY(notunderwater) = true;
6642 MY(originjitter) = '30.0 30.0 30.0';
6643 MY(startangle_min) = -180;
6644 MY(startangle_max) = 180;
6645 MY(spin_min) = -150;
6646 MY(spin_max) = 150;
6647 MY(sizeincrease) = 40;
6648 MY(size_min) = 73;
6649 MY(size_max) = 94;
6650 MY(tex_min) = 48;
6651 MY(tex_max) = 55;
6652 MY(type) = "static";
6653 MY(velocityjitter) = '1512.0 1512.0 1512.0';
6654}
6655// fire rays
6656SUB(explosion_medium) {
6657 MY(airfriction) = -3;
6658 MY(alpha_min) = 200;
6659 MY(alpha_max) = 256;
6660 MY(alpha_fade) = 800;
6661 MY(color_min) = "0x8f0d00";
6662 MY(color_max) = "0xff5a00";
6663 MY(count) = 14;
6664 MY(liquidfriction) = 8;
6665 MY(notunderwater) = true;
6666 MY(originjitter) = '40.0 40.0 40.0';
6667 MY(sizeincrease) = 40;
6668 MY(size_min) = 43;
6669 MY(size_max) = 74;
6670 MY(stretchfactor) = 8;
6671 MY(tex_min) = 48;
6672 MY(tex_max) = 55;
6673 MY(type) = "spark";
6674 MY(velocityjitter) = '512.0 512.0 512.0';
6675}
6676// smoke
6677SUB(explosion_medium) {
6678 MY(airfriction) = 3;
6679 MY(alpha_min) = 300;
6680 MY(alpha_max) = 650;
6681 MY(alpha_fade) = 756;
6682 MY(color_min) = "0x4F4B46";
6683 MY(color_max) = "0x000000";
6684 MY(count) = 5;
6685 MY(notunderwater) = true;
6686 MY(originjitter) = '100.0 100.0 100.0';
6687 MY(startangle_min) = -180;
6688 MY(startangle_max) = 180;
6689 MY(spin_min) = -20;
6690 MY(spin_max) = 20;
6691 MY(sizeincrease) = -30;
6692 MY(size_min) = 250;
6693 MY(size_max) = 300;
6694 MY(tex_max) = 8;
6695 MY(type) = "alphastatic";
6696 MY(velocityjitter) = '200.0 200.0 200.0';
6697}
6698// smoke 2
6699SUB(explosion_medium) {
6700 MY(airfriction) = 3;
6701 MY(alpha_min) = 300;
6702 MY(alpha_max) = 650;
6703 MY(alpha_fade) = 256;
6704 MY(color_min) = "0x4F4B46";
6705 MY(color_max) = "0x000000";
6706 MY(count) = 10;
6707 MY(gravity) = -0.300000;
6708 MY(notunderwater) = true;
6709 MY(originjitter) = '100.0 100.0 100.0';
6710 MY(startangle_min) = -180;
6711 MY(startangle_max) = 180;
6712 MY(spin_min) = -20;
6713 MY(spin_max) = 20;
6714 MY(sizeincrease) = 50;
6715 MY(size_min) = 50;
6716 MY(size_max) = 100;
6717 MY(tex_max) = 8;
6718 MY(type) = "alphastatic";
6719 MY(velocityjitter) = '500.0 500.0 500.0';
6720 MY(velocityoffset) = '0.0 0.0 200.0';
6721}
6722// smoke rays
6723SUB(explosion_medium) {
6724 MY(alpha_min) = 140;
6725 MY(alpha_max) = 255;
6726 MY(alpha_fade) = 350;
6727 MY(color_min) = "0x4F4B46";
6728 MY(color_max) = "0x000000";
6729 MY(count) = 13;
6730 MY(notunderwater) = true;
6731 MY(originjitter) = '40.0 40.0 40.0';
6732 MY(sizeincrease) = 100;
6733 MY(size_min) = 150;
6734 MY(size_max) = 200;
6735 MY(stretchfactor) = 50;
6736 MY(tex_max) = 8;
6737 MY(type) = "spark";
6738 MY(velocityjitter) = '250.0 250.0 250.0';
6739}
6740// bouncing sparks
6741SUB(explosion_medium) {
6742 MY(airfriction) = 1;
6743 MY(alpha_min) = 644;
6744 MY(alpha_max) = 956;
6745 MY(alpha_fade) = 984;
6746 MY(color_min) = "0xffa35b";
6747 MY(color_max) = "0xfff2be";
6748 MY(count) = 14;
6749 MY(gravity) = 1;
6750 MY(liquidfriction) = 0.800000;
6751 MY(notunderwater) = true;
6752 MY(originjitter) = '100.0 100.0 100.0';
6753 MY(size_min) = 2;
6754 MY(size_max) = 3;
6755 MY(stretchfactor) = 0.700000;
6756 MY(tex_min) = 40;
6757 MY(tex_max) = 40;
6758 MY(type) = "spark";
6759 MY(velocityjitter) = '624.0 624.0 624.0';
6760 MY(velocityoffset) = '0.0 0.0 370.0';
6761}
6762// underwater bubbles
6763SUB(explosion_medium) {
6764 MY(alpha_min) = 128;
6765 MY(alpha_max) = 256;
6766 MY(alpha_fade) = 64;
6767 MY(bounce) = 1.500000;
6768 MY(color_min) = "0x404040";
6769 MY(color_max) = "0x808080";
6770 MY(count) = 32;
6771 MY(gravity) = -0.125000;
6772 MY(liquidfriction) = 0.250000;
6773 MY(originjitter) = '160.0 160.0 160.0';
6774 MY(size_min) = 3;
6775 MY(size_max) = 3;
6776 MY(tex_min) = 62;
6777 MY(tex_max) = 62;
6778 MY(type) = "bubble";
6779 MY(underwater) = true;
6780 MY(velocityjitter) = '444.0 444.0 444.0';
6781}
6782// underwatershockwave
6783SUB(explosion_medium) {
6784 MY(alpha_min) = 40;
6785 MY(alpha_max) = 40;
6786 MY(alpha_fade) = 300;
6787 MY(countabsolute) = 1;
6788 MY(sizeincrease) = 2900;
6789 MY(size_min) = 30;
6790 MY(size_max) = 30;
6791 MY(tex_min) = 33;
6792 MY(tex_max) = 33;
6793 MY(type) = "smoke";
6794 MY(underwater) = true;
6795 MY(velocitymultiplier) = 0.300000;
6796}
6797
6798// generic explosion size:small (its fire only, made to support other explosions)
6799DEF(explosion_small);
6800// shockwave
6801SUB(explosion_small) {
6802 MY(alpha_min) = 56;
6803 MY(alpha_max) = 56;
6804 MY(alpha_fade) = 330;
6805 MY(color_min) = "0x8f0d00";
6806 MY(color_max) = "0xff5a00";
6807 MY(countabsolute) = 1;
6808 MY(sizeincrease) = 2400;
6809 MY(size_min) = 22;
6810 MY(size_max) = 22;
6811 MY(tex_min) = 33;
6812 MY(tex_max) = 33;
6813 MY(type) = "static";
6814}
6815// fire effect
6816SUB(explosion_small) {
6817 MY(airfriction) = 5;
6818 MY(alpha_min) = 200;
6819 MY(alpha_max) = 256;
6820 MY(alpha_fade) = 1212;
6821 MY(color_min) = "0x8f0d00";
6822 MY(color_max) = "0xff5a00";
6823 MY(count) = 16;
6824 MY(liquidfriction) = 8;
6825 MY(notunderwater) = true;
6826 MY(startangle_min) = -180;
6827 MY(startangle_max) = 180;
6828 MY(spin_min) = -500;
6829 MY(spin_max) = 500;
6830 MY(sizeincrease) = 45;
6831 MY(size_min) = 1;
6832 MY(size_max) = 44;
6833 MY(tex_min) = 48;
6834 MY(tex_max) = 55;
6835 MY(type) = "static";
6836 MY(velocityjitter) = '512.0 512.0 512.0';
6837}
6838// fire effect 2
6839SUB(explosion_small) {
6840 MY(airfriction) = 8;
6841 MY(alpha_min) = 200;
6842 MY(alpha_max) = 256;
6843 MY(alpha_fade) = 812;
6844 MY(color_min) = "0x8f0d00";
6845 MY(color_max) = "0xff5a00";
6846 MY(count) = 16;
6847 MY(liquidfriction) = 8;
6848 MY(notunderwater) = true;
6849 MY(startangle_min) = -180;
6850 MY(startangle_max) = 180;
6851 MY(spin_min) = -150;
6852 MY(spin_max) = 150;
6853 MY(sizeincrease) = 40;
6854 MY(size_min) = 73;
6855 MY(size_max) = 94;
6856 MY(tex_min) = 48;
6857 MY(tex_max) = 55;
6858 MY(type) = "static";
6859 MY(velocityjitter) = '912.0 912.0 912.0';
6860}
6861// fire rays
6862SUB(explosion_small) {
6863 MY(airfriction) = -3;
6864 MY(alpha_min) = 200;
6865 MY(alpha_max) = 256;
6866 MY(alpha_fade) = 1300;
6867 MY(color_min) = "0x8f0d00";
6868 MY(color_max) = "0xff5a00";
6869 MY(count) = 14;
6870 MY(liquidfriction) = 8;
6871 MY(notunderwater) = true;
6872 MY(originjitter) = '40.0 40.0 40.0';
6873 MY(sizeincrease) = 30;
6874 MY(size_min) = 13;
6875 MY(size_max) = 54;
6876 MY(stretchfactor) = 8;
6877 MY(tex_min) = 48;
6878 MY(tex_max) = 55;
6879 MY(type) = "spark";
6880 MY(velocityjitter) = '512.0 512.0 512.0';
6881}
6882// underwater bubbles
6883SUB(explosion_small) {
6884 MY(alpha_min) = 128;
6885 MY(alpha_max) = 256;
6886 MY(alpha_fade) = 64;
6887 MY(bounce) = 1.500000;
6888 MY(color_min) = "0x404040";
6889 MY(color_max) = "0x808080";
6890 MY(count) = 32;
6891 MY(gravity) = -0.125000;
6892 MY(liquidfriction) = 0.250000;
6893 MY(originjitter) = '160.0 160.0 160.0';
6894 MY(size_min) = 1;
6895 MY(size_max) = 3;
6896 MY(tex_min) = 62;
6897 MY(tex_max) = 62;
6898 MY(type) = "bubble";
6899 MY(underwater) = true;
6900 MY(velocityjitter) = '144.0 144.0 144.0';
6901}
6902// underwatershockwave
6903SUB(explosion_small) {
6904 MY(alpha_min) = 40;
6905 MY(alpha_max) = 40;
6906 MY(alpha_fade) = 300;
6907 MY(countabsolute) = 1;
6908 MY(sizeincrease) = 1200;
6909 MY(size_min) = 30;
6910 MY(size_max) = 30;
6911 MY(tex_min) = 33;
6912 MY(tex_max) = 33;
6913 MY(type) = "smoke";
6914 MY(underwater) = true;
6915}
6916
6917// big smoke ( for spamming on damaged stuff )
6918DEF(smoke_big);
6919SUB(smoke_big) {
6920 MY(airfriction) = 4;
6921 MY(alpha_min) = 200;
6922 MY(alpha_max) = 750;
6923 MY(alpha_fade) = 200;
6924 MY(color_min) = "0x4F4B46";
6925 MY(color_max) = "0x000000";
6926 MY(count) = 3;
6927 MY(gravity) = -0.500000;
6928 MY(notunderwater) = true;
6929 MY(originjitter) = '55.0 55.0 55.0';
6930 MY(startangle_min) = -180;
6931 MY(startangle_max) = 180;
6932 MY(spin_min) = -20;
6933 MY(spin_max) = 20;
6934 MY(sizeincrease) = 15;
6935 MY(size_min) = 30;
6936 MY(size_max) = 60;
6937 MY(tex_max) = 8;
6938 MY(type) = "alphastatic";
6939 MY(velocityjitter) = '140.0 140.0 200.0';
6940 MY(velocityoffset) = '0.0 0.0 200.0';
6941}
6942
6943// small smoke ( more precise than big one, for spamming on damaged parts like raptors spinner )
6944DEF(smoke_small);
6945SUB(smoke_small) {
6946 MY(airfriction) = 4;
6947 MY(alpha_min) = 200;
6948 MY(alpha_max) = 750;
6949 MY(alpha_fade) = 200;
6950 MY(color_min) = "0x4F4B46";
6951 MY(color_max) = "0x000000";
6952 MY(count) = 3;
6953 MY(gravity) = -0.500000;
6954 MY(notunderwater) = true;
6955 MY(startangle_min) = -180;
6956 MY(startangle_max) = 180;
6957 MY(spin_min) = -20;
6958 MY(spin_max) = 20;
6959 MY(sizeincrease) = -10;
6960 MY(size_min) = 60;
6961 MY(size_max) = 100;
6962 MY(tex_max) = 8;
6963 MY(type) = "alphastatic";
6964 MY(velocityjitter) = '40.0 40.0 400.0';
6965 MY(velocityoffset) = '0.0 0.0 200.0';
6966}
6967
6968// metal impact effect
6969DEF(impact_metal);
6970SUB(impact_metal) {
6971 MY(alpha_min) = 25;
6972 MY(alpha_max) = 64;
6973 MY(alpha_fade) = 50;
6974 MY(color_min) = "0x000000";
6975 MY(color_max) = "0x886666";
6976 MY(count) = 1;
6977 MY(gravity) = -0.010000;
6978 MY(originjitter) = '20.0 20.0 5.0';
6979 MY(sizeincrease) = 10;
6980 MY(size_min) = 3;
6981 MY(size_max) = 6;
6982 MY(tex_max) = 8;
6983 MY(type) = "alphastatic";
6984}
6985// sparks
6986SUB(impact_metal) {
6987 MY(airfriction) = 2;
6988 MY(alpha_min) = 255;
6989 MY(alpha_max) = 255;
6990 MY(alpha_fade) = 112;
6991 MY(bounce) = 1.800000;
6992 MY(color_min) = "0xFFCC22";
6993 MY(color_max) = "0xFF4422";
6994 MY(count) = 2;
6995 MY(gravity) = 1;
6996 MY(size_min) = 2;
6997 MY(size_max) = 2;
6998 MY(stretchfactor) = 0.500000;
6999 MY(tex_min) = 41;
7000 MY(tex_max) = 41;
7001 MY(type) = "spark";
7002 MY(velocityjitter) = '200.0 200.0 300.0';
7003 MY(velocitymultiplier) = 2;
7004}
7005
7006// stone impact effect
7007DEF(impact_stone);
7008SUB(impact_stone) {
7009 MY(alpha_min) = 50;
7010 MY(alpha_max) = 128;
7011 MY(alpha_fade) = 75;
7012 MY(color_min) = "0x000000";
7013 MY(color_max) = "0xcc9966";
7014 MY(count) = 1;
7015 MY(gravity) = -0.010000;
7016 MY(originjitter) = '20.0 20.0 5.0';
7017 MY(sizeincrease) = 15;
7018 MY(size_min) = 3;
7019 MY(size_max) = 6;
7020 MY(tex_max) = 8;
7021 MY(type) = "alphastatic";
7022}
7023// debris
7024SUB(impact_stone) {
7025 MY(airfriction) = 0.500000;
7026 MY(alpha_min) = 450;
7027 MY(alpha_max) = 750;
7028 MY(alpha_fade) = 300;
7029 MY(bounce) = 1.200000;
7030 MY(color_min) = "0x000000";
7031 MY(color_max) = "0x886644";
7032 MY(count) = 1;
7033 MY(gravity) = 1.300000;
7034 MY(notunderwater) = true;
7035 MY(startangle_min) = -180;
7036 MY(startangle_max) = 180;
7037 MY(spin_min) = -1000;
7038 MY(spin_max) = 1000;
7039 MY(size_min) = 1;
7040 MY(size_max) = 2;
7041 MY(tex_min) = 66;
7042 MY(tex_max) = 68;
7043 MY(type) = "alphastatic";
7044 MY(velocityjitter) = '124.0 124.0 324.0';
7045}
7046
7047// wood impact effect
7048DEF(impact_wood);
7049SUB(impact_wood) {
7050 MY(alpha_min) = 50;
7051 MY(alpha_max) = 128;
7052 MY(alpha_fade) = 75;
7053 MY(color_min) = "0x000000";
7054 MY(color_max) = "0xcc9966";
7055 MY(count) = 1;
7056 MY(gravity) = -0.010000;
7057 MY(originjitter) = '20.0 20.0 5.0';
7058 MY(sizeincrease) = 10;
7059 MY(size_min) = 3;
7060 MY(size_max) = 6;
7061 MY(tex_max) = 8;
7062 MY(type) = "alphastatic";
7063}
7064// sparks
7065SUB(impact_wood) {
7066 MY(airfriction) = 2;
7067 MY(alpha_min) = 255;
7068 MY(alpha_max) = 255;
7069 MY(alpha_fade) = 75;
7070 MY(bounce) = 1.500000;
7071 MY(color_min) = "0x221100";
7072 MY(color_max) = "0x221100";
7073 MY(count) = 2;
7074 MY(gravity) = 1;
7075 MY(size_min) = 1;
7076 MY(size_max) = 8;
7077 MY(tex_min) = 41;
7078 MY(tex_max) = 41;
7079 MY(type) = "spark";
7080 MY(velocityjitter) = '180.0 180.0 260.0';
7081 MY(velocitymultiplier) = 2;
7082}
7083
7084// flesh impact effect
7085DEF(impact_flesh);
7086SUB(impact_flesh) {
7087 MY(alpha_min) = 100;
7088 MY(alpha_max) = 256;
7089 MY(alpha_fade) = 400;
7090 MY(color_min) = "0x000000";
7091 MY(color_max) = "0x420000";
7092 MY(count) = 0.500000;
7093 MY(originjitter) = '11.0 11.0 11.0';
7094 MY(size_min) = 8;
7095 MY(size_max) = 12;
7096 MY(tex_max) = 8;
7097 MY(type) = "alphastatic";
7098}
7099// blood splash
7100SUB(impact_flesh) {
7101 MY(airfriction) = 1;
7102 MY(alpha_min) = 256;
7103 MY(alpha_max) = 256;
7104 MY(alpha_fade) = 64;
7105 MY(bounce) = -1;
7106 MY(color_min) = "0xA8FFFF";
7107 MY(color_max) = "0xA8FFFFF";
7108 MY(count) = 0.300000;
7109 MY(liquidfriction) = 4;
7110 MY(size_min) = 2;
7111 MY(size_max) = 6;
7112 MY(staincolor_min) = "0x808080";
7113 MY(staincolor_max) = "0x808080";
7114 MY(staintex_min) = 16;
7115 MY(staintex_max) = 24;
7116 MY(tex_min) = 24;
7117 MY(tex_max) = 32;
7118 MY(type) = "blood";
7119 MY(velocityjitter) = '96.0 96.0 96.0';
7120 MY(velocitymultiplier) = 5;
7121}
7122
7123// hagar trail
7124DEF(tr_hagar);
7125// smoke
7126SUB(tr_hagar) {
7127 MY(alpha_min) = 300;
7128 MY(alpha_max) = 400;
7129 MY(alpha_fade) = 780;
7130 MY(bounce) = 1;
7131 MY(color_min) = "0x101010";
7132 MY(color_max) = "0x000000";
7133 MY(originjitter) = '1.0 1.0 1.0';
7134 MY(sizeincrease) = 10;
7135 MY(size_min) = 3;
7136 MY(size_max) = 2;
7137 MY(tex_max) = 8;
7138 MY(trailspacing) = 4;
7139 MY(type) = "smoke";
7140 MY(velocityjitter) = '1.0 1.0 1.0';
7141 MY(velocitymultiplier) = -0.020000;
7142}
7143// fire
7144SUB(tr_hagar) {
7145 MY(airfriction) = 8;
7146 MY(alpha_min) = 100;
7147 MY(alpha_max) = 144;
7148 MY(alpha_fade) = 988;
7149 MY(color_min) = "0xffdf72";
7150 MY(color_max) = "0x811200";
7151 MY(notunderwater) = true;
7152 MY(sizeincrease) = -15;
7153 MY(size_min) = 5;
7154 MY(size_max) = 2;
7155 MY(tex_min) = 48;
7156 MY(tex_max) = 55;
7157 MY(trailspacing) = 4;
7158 MY(type) = "static";
7159 MY(velocityjitter) = '32.0 32.0 32.0';
7160 MY(velocitymultiplier) = -1;
7161}
7162// bubbles
7163SUB(tr_hagar) {
7164 MY(alpha_min) = 256;
7165 MY(alpha_max) = 256;
7166 MY(alpha_fade) = 256;
7167 MY(bounce) = 1.500000;
7168 MY(color_min) = "0x404040";
7169 MY(color_max) = "0x808080";
7170 MY(gravity) = -0.125000;
7171 MY(liquidfriction) = 4;
7172 MY(size_min) = 1;
7173 MY(size_max) = 1;
7174 MY(tex_min) = 62;
7175 MY(tex_max) = 62;
7176 MY(trailspacing) = 16;
7177 MY(type) = "bubble";
7178 MY(underwater) = true;
7179 MY(velocityjitter) = '16.0 16.0 16.0';
7180}
7181
7182// laser damage effect
7183DEF(damage_blaster);
7184SUB(damage_blaster) {
7185 MY(airfriction) = -0.350000;
7186 MY(alpha_min) = 128;
7187 MY(alpha_max) = 16;
7188 MY(alpha_fade) = 128;
7189 MY(color_min) = "0x880000";
7190 MY(color_max) = "0xff4400";
7191 MY(count) = 3;
7192 MY(notunderwater) = true;
7193 MY(originjitter) = '2.0 2.0 2.0';
7194 MY(startangle_max) = 180;
7195 MY(spin_min) = -30;
7196 MY(spin_max) = 30;
7197 MY(sizeincrease) = 8;
7198 MY(size_min) = 2;
7199 MY(size_max) = 4;
7200 MY(tex_max) = 8;
7201 MY(type) = "smoke";
7202 MY(velocityjitter) = '0.4 0.4 0.6';
7203}
7204
7205// shotgun damage effect, normal blood
7206DEF(damage_shotgun);
7207SUB(damage_shotgun) {
7208 MY(airfriction) = 1;
7209 MY(alpha_min) = 256;
7210 MY(alpha_max) = 256;
7211 MY(alpha_fade) = 64;
7212 MY(bounce) = -1;
7213 MY(color_min) = "0xA8FFFF";
7214 MY(color_max) = "0xA8FFFFF";
7215 MY(count) = 0.600000;
7216 MY(liquidfriction) = 4;
7217 MY(size_min) = 2;
7218 MY(size_max) = 4;
7219 MY(staincolor_min) = "0x808080";
7220 MY(staincolor_max) = "0x808080";
7221 MY(staintex_min) = 16;
7222 MY(staintex_max) = 24;
7223 MY(tex_min) = 24;
7224 MY(tex_max) = 32;
7225 MY(type) = "blood";
7226 MY(velocityjitter) = '64.0 64.0 64.0';
7227 MY(velocitymultiplier) = 5;
7228}
7229// blood mist
7230SUB(damage_shotgun) {
7231 MY(alpha_min) = 100;
7232 MY(alpha_max) = 256;
7233 MY(alpha_fade) = 400;
7234 MY(color_min) = "0x000000";
7235 MY(color_max) = "0x420000";
7236 MY(count) = 1;
7237 MY(originjitter) = '1.0 1.0 1.0';
7238 MY(size_min) = 8;
7239 MY(size_max) = 16;
7240 MY(tex_max) = 8;
7241 MY(type) = "alphastatic";
7242}
7243
7244// shotgun damage effect, alien blood
7245DEF(alien_damage_shotgun);
7246SUB(alien_damage_shotgun) {
7247 MY(airfriction) = 1;
7248 MY(alpha_min) = 256;
7249 MY(alpha_max) = 256;
7250 MY(alpha_fade) = 64;
7251 MY(bounce) = -1;
7252 MY(color_min) = "0xDC9BCD";
7253 MY(color_max) = "0xDC9BCD";
7254 MY(count) = 0.600000;
7255 MY(liquidfriction) = 4;
7256 MY(size_min) = 2;
7257 MY(size_max) = 4;
7258 MY(staincolor_min) = "0x808080";
7259 MY(staincolor_max) = "0x808080";
7260 MY(staintex_min) = 16;
7261 MY(staintex_max) = 24;
7262 MY(tex_min) = 24;
7263 MY(tex_max) = 32;
7264 MY(type) = "blood";
7265 MY(velocityjitter) = '64.0 64.0 64.0';
7266 MY(velocitymultiplier) = 5;
7267}
7268// blood mist
7269SUB(alien_damage_shotgun) {
7270 MY(alpha_min) = 100;
7271 MY(alpha_max) = 256;
7272 MY(alpha_fade) = 400;
7273 MY(color_min) = "0x000000";
7274 MY(color_max) = "0x204010";
7275 MY(count) = 1;
7276 MY(originjitter) = '1.0 1.0 1.0';
7277 MY(size_min) = 8;
7278 MY(size_max) = 16;
7279 MY(tex_max) = 8;
7280 MY(type) = "alphastatic";
7281}
7282
7283// shotgun damage effect, robot blood
7284DEF(robot_damage_shotgun);
7285SUB(robot_damage_shotgun) {
7286 MY(airfriction) = 1;
7287 MY(alpha_min) = 256;
7288 MY(alpha_max) = 256;
7289 MY(alpha_fade) = 64;
7290 MY(bounce) = -1;
7291 MY(color_min) = "0xC0D890";
7292 MY(color_max) = "0xC0D890";
7293 MY(count) = 0.600000;
7294 MY(liquidfriction) = 4;
7295 MY(size_min) = 2;
7296 MY(size_max) = 4;
7297 MY(staincolor_min) = "0x808080";
7298 MY(staincolor_max) = "0x808080";
7299 MY(staintex_min) = 16;
7300 MY(staintex_max) = 24;
7301 MY(tex_min) = 24;
7302 MY(tex_max) = 32;
7303 MY(type) = "blood";
7304 MY(velocityjitter) = '64.0 64.0 64.0';
7305 MY(velocitymultiplier) = 5;
7306}
7307// blood mist
7308SUB(robot_damage_shotgun) {
7309 MY(alpha_min) = 100;
7310 MY(alpha_max) = 256;
7311 MY(alpha_fade) = 400;
7312 MY(color_min) = "0x000000";
7313 MY(color_max) = "0x301860";
7314 MY(count) = 1;
7315 MY(originjitter) = '1.0 1.0 1.0';
7316 MY(size_min) = 8;
7317 MY(size_max) = 16;
7318 MY(tex_max) = 8;
7319 MY(type) = "alphastatic";
7320}
7321
7322// machinegun damage effect, normal blood
7323DEF(damage_machinegun);
7324SUB(damage_machinegun) {
7325 MY(airfriction) = 1;
7326 MY(alpha_min) = 256;
7327 MY(alpha_max) = 256;
7328 MY(alpha_fade) = 64;
7329 MY(bounce) = -1;
7330 MY(color_min) = "0xA8FFFF";
7331 MY(color_max) = "0xA8FFFFF";
7332 MY(count) = 0.300000;
7333 MY(liquidfriction) = 4;
7334 MY(size_min) = 2;
7335 MY(size_max) = 4;
7336 MY(staincolor_min) = "0x808080";
7337 MY(staincolor_max) = "0x808080";
7338 MY(staintex_min) = 16;
7339 MY(staintex_max) = 24;
7340 MY(tex_min) = 24;
7341 MY(tex_max) = 32;
7342 MY(type) = "blood";
7343 MY(velocityjitter) = '32.0 32.0 32.0';
7344 MY(velocitymultiplier) = 5;
7345}
7346// blood mist
7347SUB(damage_machinegun) {
7348 MY(alpha_min) = 100;
7349 MY(alpha_max) = 256;
7350 MY(alpha_fade) = 400;
7351 MY(color_min) = "0x000000";
7352 MY(color_max) = "0x420000";
7353 MY(count) = 1;
7354 MY(size_min) = 6;
7355 MY(size_max) = 12;
7356 MY(tex_max) = 8;
7357 MY(type) = "alphastatic";
7358}
7359
7360// machinegun damage effect, alien blood
7361DEF(alien_damage_machinegun);
7362SUB(alien_damage_machinegun) {
7363 MY(airfriction) = 1;
7364 MY(alpha_min) = 256;
7365 MY(alpha_max) = 256;
7366 MY(alpha_fade) = 64;
7367 MY(bounce) = -1;
7368 MY(color_min) = "0xDC9BCD";
7369 MY(color_max) = "0xDC9BCD";
7370 MY(count) = 0.300000;
7371 MY(liquidfriction) = 4;
7372 MY(size_min) = 2;
7373 MY(size_max) = 4;
7374 MY(staincolor_min) = "0x808080";
7375 MY(staincolor_max) = "0x808080";
7376 MY(staintex_min) = 16;
7377 MY(staintex_max) = 24;
7378 MY(tex_min) = 24;
7379 MY(tex_max) = 32;
7380 MY(type) = "blood";
7381 MY(velocityjitter) = '32.0 32.0 32.0';
7382 MY(velocitymultiplier) = 5;
7383}
7384// blood mist
7385SUB(alien_damage_machinegun) {
7386 MY(alpha_min) = 100;
7387 MY(alpha_max) = 256;
7388 MY(alpha_fade) = 400;
7389 MY(color_min) = "0x000000";
7390 MY(color_max) = "0x204010";
7391 MY(count) = 1;
7392 MY(size_min) = 6;
7393 MY(size_max) = 12;
7394 MY(tex_max) = 8;
7395 MY(type) = "alphastatic";
7396}
7397
7398// machinegun damage effect, robot blood
7399DEF(robot_damage_machinegun);
7400SUB(robot_damage_machinegun) {
7401 MY(airfriction) = 1;
7402 MY(alpha_min) = 256;
7403 MY(alpha_max) = 256;
7404 MY(alpha_fade) = 64;
7405 MY(bounce) = -1;
7406 MY(color_min) = "0xC0D890";
7407 MY(color_max) = "0xC0D890";
7408 MY(count) = 0.300000;
7409 MY(liquidfriction) = 4;
7410 MY(size_min) = 2;
7411 MY(size_max) = 4;
7412 MY(staincolor_min) = "0x808080";
7413 MY(staincolor_max) = "0x808080";
7414 MY(staintex_min) = 16;
7415 MY(staintex_max) = 24;
7416 MY(tex_min) = 24;
7417 MY(tex_max) = 32;
7418 MY(type) = "blood";
7419 MY(velocityjitter) = '32.0 32.0 32.0';
7420 MY(velocitymultiplier) = 5;
7421}
7422// blood mist
7423SUB(robot_damage_machinegun) {
7424 MY(alpha_min) = 100;
7425 MY(alpha_max) = 256;
7426 MY(alpha_fade) = 400;
7427 MY(color_min) = "0x000000";
7428 MY(color_max) = "0x301860";
7429 MY(count) = 1;
7430 MY(size_min) = 6;
7431 MY(size_max) = 12;
7432 MY(tex_max) = 8;
7433 MY(type) = "alphastatic";
7434}
7435
7436// minelayer damage effect
7437DEF(damage_minelayer);
7438SUB(damage_minelayer) {
7439 MY(alpha_min) = 512;
7440 MY(alpha_max) = 64;
7441 MY(alpha_fade) = 1024;
7442 MY(color_min) = "0x8f0d00";
7443 MY(color_max) = "0xff5a00";
7444 MY(count) = 3;
7445 MY(gravity) = -0.500000;
7446 MY(notunderwater) = true;
7447 MY(originjitter) = '2.0 2.0 2.0';
7448 MY(sizeincrease) = -15;
7449 MY(size_min) = 4;
7450 MY(size_max) = 8;
7451 MY(tex_min) = 48;
7452 MY(tex_max) = 55;
7453 MY(type) = "smoke";
7454 MY(velocityjitter) = '22.0 22.0 50.0';
7455}
7456// smoke
7457SUB(damage_minelayer) {
7458 MY(alpha_min) = 128;
7459 MY(alpha_max) = 32;
7460 MY(alpha_fade) = 128;
7461 MY(color_min) = "0x000000";
7462 MY(color_max) = "0x111111";
7463 MY(count) = 2;
7464 MY(gravity) = -0.300000;
7465 MY(notunderwater) = true;
7466 MY(originjitter) = '4.0 4.0 4.0';
7467 MY(sizeincrease) = 5;
7468 MY(size_min) = 4;
7469 MY(size_max) = 8;
7470 MY(tex_max) = 8;
7471 MY(type) = "alphastatic";
7472 MY(velocityjitter) = '11.0 11.0 50.0';
7473}
7474
7475// mortar damage effect
7476DEF(damage_mortar);
7477SUB(damage_mortar) {
7478 MY(alpha_min) = 512;
7479 MY(alpha_max) = 64;
7480 MY(alpha_fade) = 1024;
7481 MY(color_min) = "0x8f0d00";
7482 MY(color_max) = "0xff5a00";
7483 MY(count) = 3;
7484 MY(gravity) = -0.500000;
7485 MY(notunderwater) = true;
7486 MY(originjitter) = '2.0 2.0 2.0';
7487 MY(sizeincrease) = -15;
7488 MY(size_min) = 4;
7489 MY(size_max) = 8;
7490 MY(tex_min) = 48;
7491 MY(tex_max) = 55;
7492 MY(type) = "smoke";
7493 MY(velocityjitter) = '22.0 22.0 50.0';
7494}
7495// smoke
7496SUB(damage_mortar) {
7497 MY(alpha_min) = 128;
7498 MY(alpha_max) = 32;
7499 MY(alpha_fade) = 128;
7500 MY(color_min) = "0x000000";
7501 MY(color_max) = "0x111111";
7502 MY(count) = 2;
7503 MY(gravity) = -0.300000;
7504 MY(notunderwater) = true;
7505 MY(originjitter) = '4.0 4.0 4.0';
7506 MY(sizeincrease) = 5;
7507 MY(size_min) = 4;
7508 MY(size_max) = 8;
7509 MY(tex_max) = 8;
7510 MY(type) = "alphastatic";
7511 MY(velocityjitter) = '11.0 11.0 50.0';
7512}
7513
7514// arc damage effect
7515DEF(damage_arc);
7516SUB(damage_arc) {
7517 MY(airfriction) = -0.650000;
7518 MY(alpha_min) = 48;
7519 MY(alpha_max) = 8;
7520 MY(alpha_fade) = 48;
7521 MY(color_min) = "0x66ffff";
7522 MY(color_max) = "0x2288ff";
7523 MY(count) = 2;
7524 MY(gravity) = -0.000100;
7525 MY(liquidfriction) = 0.600000;
7526 MY(notunderwater) = true;
7527 MY(originjitter) = '2.0 2.0 2.0';
7528 MY(startangle_min) = 180;
7529 MY(startangle_max) = 360;
7530 MY(spin_min) = -30;
7531 MY(spin_max) = 30;
7532 MY(sizeincrease) = -14;
7533 MY(size_min) = 4;
7534 MY(size_max) = 8;
7535 MY(tex_min) = 47;
7536 MY(tex_max) = 47;
7537 MY(type) = "static";
7538 MY(velocityjitter) = '6.0 6.0 12.0';
7539}
7540// plasma smoke
7541SUB(damage_arc) {
7542 MY(airfriction) = -0.500000;
7543 MY(alpha_min) = 64;
7544 MY(alpha_max) = 16;
7545 MY(alpha_fade) = 64;
7546 MY(color_min) = "0x2244ff";
7547 MY(color_max) = "0x002266";
7548 MY(count) = 4;
7549 MY(notunderwater) = true;
7550 MY(originjitter) = '3.0 3.0 3.0';
7551 MY(startangle_max) = 180;
7552 MY(spin_min) = -30;
7553 MY(spin_max) = 30;
7554 MY(sizeincrease) = 10;
7555 MY(size_min) = 3;
7556 MY(size_max) = 6;
7557 MY(tex_max) = 8;
7558 MY(type) = "smoke";
7559 MY(velocityjitter) = '0.3 0.3 0.5';
7560}
7561// bouncing sparks
7562SUB(damage_arc) {
7563 MY(airfriction) = 1;
7564 MY(alpha_min) = 768;
7565 MY(alpha_max) = 64;
7566 MY(alpha_fade) = 256;
7567 MY(bounce) = 1.500000;
7568 MY(color_min) = "0x003090";
7569 MY(color_max) = "0x00CCFF";
7570 MY(count) = 0.500000;
7571 MY(gravity) = 0.150000;
7572 MY(liquidfriction) = 0.600000;
7573 MY(size_min) = 1;
7574 MY(size_max) = 1;
7575 MY(tex_min) = 66;
7576 MY(tex_max) = 68;
7577 MY(type) = "spark";
7578 MY(velocityjitter) = '24.0 24.0 24.0';
7579}
7580
7581// electro damage effect
7582DEF(damage_electro);
7583SUB(damage_electro) {
7584 MY(airfriction) = -0.500000;
7585 MY(alpha_min) = 48;
7586 MY(alpha_max) = 8;
7587 MY(alpha_fade) = 48;
7588 MY(color_min) = "0x66ffff";
7589 MY(color_max) = "0x2288ff";
7590 MY(count) = 2;
7591 MY(gravity) = -0.000100;
7592 MY(liquidfriction) = 0.800000;
7593 MY(notunderwater) = true;
7594 MY(originjitter) = '3.0 3.0 3.0';
7595 MY(startangle_min) = 180;
7596 MY(startangle_max) = 360;
7597 MY(spin_min) = -30;
7598 MY(spin_max) = 30;
7599 MY(sizeincrease) = -14;
7600 MY(size_min) = 6;
7601 MY(size_max) = 10;
7602 MY(tex_min) = 47;
7603 MY(tex_max) = 47;
7604 MY(type) = "static";
7605 MY(velocityjitter) = '8.0 8.0 16.0';
7606}
7607// plasma smoke
7608SUB(damage_electro) {
7609 MY(airfriction) = -0.350000;
7610 MY(alpha_min) = 64;
7611 MY(alpha_max) = 16;
7612 MY(alpha_fade) = 64;
7613 MY(color_min) = "0x2244ff";
7614 MY(color_max) = "0x002266";
7615 MY(count) = 4;
7616 MY(notunderwater) = true;
7617 MY(originjitter) = '4.0 4.0 4.0';
7618 MY(startangle_max) = 180;
7619 MY(spin_min) = -30;
7620 MY(spin_max) = 30;
7621 MY(sizeincrease) = 10;
7622 MY(size_min) = 4;
7623 MY(size_max) = 8;
7624 MY(tex_max) = 8;
7625 MY(type) = "smoke";
7626 MY(velocityjitter) = '0.4 0.4 0.6';
7627}
7628// bouncing sparks
7629SUB(damage_electro) {
7630 MY(airfriction) = 1;
7631 MY(alpha_min) = 768;
7632 MY(alpha_max) = 64;
7633 MY(alpha_fade) = 256;
7634 MY(bounce) = 1.500000;
7635 MY(color_min) = "0x003090";
7636 MY(color_max) = "0x00CCFF";
7637 MY(count) = 0.500000;
7638 MY(gravity) = 0.200000;
7639 MY(liquidfriction) = 0.800000;
7640 MY(size_min) = 1;
7641 MY(size_max) = 1;
7642 MY(tex_min) = 66;
7643 MY(tex_max) = 68;
7644 MY(type) = "spark";
7645 MY(velocityjitter) = '32.0 32.0 32.0';
7646}
7647
7648// crylink damage effect
7649DEF(damage_crylink);
7650SUB(damage_crylink) {
7651 MY(airfriction) = -0.500000;
7652 MY(alpha_min) = 48;
7653 MY(alpha_max) = 16;
7654 MY(alpha_fade) = 48;
7655 MY(color_min) = "0xff44ff";
7656 MY(color_max) = "0x9966ff";
7657 MY(count) = 2;
7658 MY(gravity) = -0.000100;
7659 MY(liquidfriction) = 0.800000;
7660 MY(notunderwater) = true;
7661 MY(originjitter) = '3.0 3.0 3.0';
7662 MY(startangle_min) = 180;
7663 MY(startangle_max) = 360;
7664 MY(spin_min) = -30;
7665 MY(spin_max) = 30;
7666 MY(sizeincrease) = -8;
7667 MY(size_min) = 0.500000;
7668 MY(size_max) = 1;
7669 MY(tex_min) = 38;
7670 MY(tex_max) = 38;
7671 MY(type) = "static";
7672 MY(velocityjitter) = '10.0 10.0 20.0';
7673}
7674// plasma smoke
7675SUB(damage_crylink) {
7676 MY(airfriction) = -0.350000;
7677 MY(alpha_min) = 64;
7678 MY(alpha_max) = 16;
7679 MY(alpha_fade) = 64;
7680 MY(color_min) = "0x8844ff";
7681 MY(color_max) = "0x662244";
7682 MY(count) = 4;
7683 MY(gravity) = 0.001000;
7684 MY(notunderwater) = true;
7685 MY(originjitter) = '4.0 4.0 4.0';
7686 MY(startangle_max) = 180;
7687 MY(spin_min) = -30;
7688 MY(spin_max) = 30;
7689 MY(sizeincrease) = 6;
7690 MY(size_min) = 5;
7691 MY(size_max) = 10;
7692 MY(tex_max) = 8;
7693 MY(type) = "smoke";
7694 MY(velocityjitter) = '0.4 0.4 0.6';
7695}
7696// floating sparks
7697SUB(damage_crylink) {
7698 MY(airfriction) = 0.200000;
7699 MY(alpha_min) = 192;
7700 MY(alpha_max) = 192;
7701 MY(alpha_fade) = 128;
7702 MY(color_min) = "0x903090";
7703 MY(color_max) = "0xFFD0FF";
7704 MY(count) = 0.300000;
7705 MY(liquidfriction) = 0.800000;
7706 MY(sizeincrease) = -5;
7707 MY(size_min) = 0.500000;
7708 MY(size_max) = 0.500000;
7709 MY(type) = "spark";
7710 MY(velocityjitter) = '12.0 12.0 12.0';
7711}
7712
7713// hlac damage effect
7714DEF(damage_hlac);
7715SUB(damage_hlac) {
7716 MY(airfriction) = -0.350000;
7717 MY(alpha_min) = 128;
7718 MY(alpha_max) = 16;
7719 MY(alpha_fade) = 128;
7720 MY(color_min) = "0x008800";
7721 MY(color_max) = "0x44ff00";
7722 MY(count) = 3;
7723 MY(notunderwater) = true;
7724 MY(originjitter) = '4.0 4.0 4.0';
7725 MY(startangle_max) = 180;
7726 MY(spin_min) = -30;
7727 MY(spin_max) = 30;
7728 MY(sizeincrease) = 10;
7729 MY(size_min) = 2;
7730 MY(size_max) = 4;
7731 MY(tex_max) = 8;
7732 MY(type) = "smoke";
7733 MY(velocityjitter) = '0.4 0.4 0.6';
7734}
7735
7736// vortex damage effect
7737DEF(damage_vortex);
7738SUB(damage_vortex) {
7739 MY(airfriction) = -0.500000;
7740 MY(alpha_min) = 64;
7741 MY(alpha_max) = 8;
7742 MY(alpha_fade) = 64;
7743 MY(color_min) = "0xffffff";
7744 MY(color_max) = "0x88ffff";
7745 MY(count) = 1;
7746 MY(gravity) = -0.000100;
7747 MY(liquidfriction) = 0.600000;
7748 MY(originjitter) = '4.0 4.0 4.0';
7749 MY(startangle_min) = 180;
7750 MY(startangle_max) = 360;
7751 MY(spin_min) = -30;
7752 MY(spin_max) = 30;
7753 MY(sizeincrease) = -14;
7754 MY(size_min) = 5;
7755 MY(size_max) = 10;
7756 MY(tex_min) = 47;
7757 MY(tex_max) = 47;
7758 MY(type) = "static";
7759 MY(velocityjitter) = '8.0 8.0 16.0';
7760}
7761// plasma smoke
7762SUB(damage_vortex) {
7763 MY(airfriction) = -0.350000;
7764 MY(alpha_min) = 64;
7765 MY(alpha_max) = 16;
7766 MY(alpha_fade) = 64;
7767 MY(color_min) = "0x6688ff";
7768 MY(color_max) = "0x226688";
7769 MY(count) = 2;
7770 MY(originjitter) = '2.0 2.0 2.0';
7771 MY(startangle_max) = 180;
7772 MY(spin_min) = -30;
7773 MY(spin_max) = 30;
7774 MY(sizeincrease) = 8;
7775 MY(size_min) = 4;
7776 MY(size_max) = 8;
7777 MY(tex_max) = 8;
7778 MY(type) = "smoke";
7779 MY(velocityjitter) = '0.5 0.5 0.8';
7780}
7781// bouncing sparks
7782SUB(damage_vortex) {
7783 MY(airfriction) = 2;
7784 MY(alpha_min) = 255;
7785 MY(alpha_max) = 255;
7786 MY(alpha_fade) = 112;
7787 MY(bounce) = 1.600000;
7788 MY(color_min) = "0xD9FDFF";
7789 MY(color_max) = "0xD9FDFF";
7790 MY(count) = 0.200000;
7791 MY(gravity) = 1;
7792 MY(size_min) = 1;
7793 MY(size_max) = 1;
7794 MY(stretchfactor) = 0.700000;
7795 MY(tex_min) = 41;
7796 MY(tex_max) = 41;
7797 MY(type) = "spark";
7798 MY(velocityjitter) = '100.0 100.0 300.0';
7799 MY(velocitymultiplier) = 3;
7800}
7801
7802// vaporizer damage effect
7803DEF(damage_vaporizer);
7804SUB(damage_vaporizer) {
7805 MY(airfriction) = -0.500000;
7806 MY(alpha_min) = 64;
7807 MY(alpha_max) = 8;
7808 MY(alpha_fade) = 64;
7809 MY(color_min) = "0xffffff";
7810 MY(color_max) = "0x88ffff";
7811 MY(count) = 2;
7812 MY(gravity) = -0.000100;
7813 MY(liquidfriction) = 0.600000;
7814 MY(originjitter) = '4.0 4.0 4.0';
7815 MY(startangle_min) = 180;
7816 MY(startangle_max) = 360;
7817 MY(spin_min) = -30;
7818 MY(spin_max) = 30;
7819 MY(sizeincrease) = -14;
7820 MY(size_min) = 5;
7821 MY(size_max) = 10;
7822 MY(tex_min) = 47;
7823 MY(tex_max) = 47;
7824 MY(type) = "static";
7825 MY(velocityjitter) = '8.0 8.0 16.0';
7826}
7827// plasma smoke
7828SUB(damage_vaporizer) {
7829 MY(airfriction) = -0.350000;
7830 MY(alpha_min) = 64;
7831 MY(alpha_max) = 16;
7832 MY(alpha_fade) = 64;
7833 MY(color_min) = "0x6688ff";
7834 MY(color_max) = "0x226688";
7835 MY(count) = 4;
7836 MY(originjitter) = '2.0 2.0 2.0';
7837 MY(startangle_max) = 180;
7838 MY(spin_min) = -30;
7839 MY(spin_max) = 30;
7840 MY(sizeincrease) = 8;
7841 MY(size_min) = 4;
7842 MY(size_max) = 8;
7843 MY(tex_max) = 8;
7844 MY(type) = "smoke";
7845 MY(velocityjitter) = '0.5 0.5 0.8';
7846}
7847// bouncing sparks
7848SUB(damage_vaporizer) {
7849 MY(airfriction) = 2;
7850 MY(alpha_min) = 255;
7851 MY(alpha_max) = 255;
7852 MY(alpha_fade) = 112;
7853 MY(bounce) = 1.600000;
7854 MY(color_min) = "0xD9FDFF";
7855 MY(color_max) = "0xD9FDFF";
7856 MY(count) = 0.200000;
7857 MY(gravity) = 1;
7858 MY(size_min) = 1;
7859 MY(size_max) = 1;
7860 MY(stretchfactor) = 0.700000;
7861 MY(tex_min) = 41;
7862 MY(tex_max) = 41;
7863 MY(type) = "spark";
7864 MY(velocityjitter) = '100.0 100.0 300.0';
7865 MY(velocitymultiplier) = 3;
7866}
7867
7868// rifle damage effect, normal blood
7869DEF(damage_rifle);
7870SUB(damage_rifle) {
7871 MY(airfriction) = 1;
7872 MY(alpha_min) = 256;
7873 MY(alpha_max) = 256;
7874 MY(alpha_fade) = 64;
7875 MY(bounce) = -1;
7876 MY(color_min) = "0xA8FFFF";
7877 MY(color_max) = "0xA8FFFFF";
7878 MY(count) = 0.300000;
7879 MY(liquidfriction) = 4;
7880 MY(size_min) = 2;
7881 MY(size_max) = 4;
7882 MY(staincolor_min) = "0x808080";
7883 MY(staincolor_max) = "0x808080";
7884 MY(staintex_min) = 16;
7885 MY(staintex_max) = 24;
7886 MY(tex_min) = 24;
7887 MY(tex_max) = 32;
7888 MY(type) = "blood";
7889 MY(velocityjitter) = '32.0 32.0 32.0';
7890 MY(velocitymultiplier) = 5;
7891}
7892// blood mist
7893SUB(damage_rifle) {
7894 MY(alpha_min) = 100;
7895 MY(alpha_max) = 256;
7896 MY(alpha_fade) = 400;
7897 MY(color_min) = "0x000000";
7898 MY(color_max) = "0x420000";
7899 MY(count) = 1;
7900 MY(size_min) = 6;
7901 MY(size_max) = 12;
7902 MY(tex_max) = 8;
7903 MY(type) = "alphastatic";
7904}
7905
7906// rifle damage effect, alien blood
7907DEF(damage_rifle_alien);
7908SUB(damage_rifle_alien) {
7909 MY(airfriction) = 1;
7910 MY(alpha_min) = 256;
7911 MY(alpha_max) = 256;
7912 MY(alpha_fade) = 64;
7913 MY(bounce) = -1;
7914 MY(color_min) = "0xDC9BCD";
7915 MY(color_max) = "0xDC9BCD";
7916 MY(count) = 0.300000;
7917 MY(liquidfriction) = 4;
7918 MY(size_min) = 2;
7919 MY(size_max) = 4;
7920 MY(staincolor_min) = "0x808080";
7921 MY(staincolor_max) = "0x808080";
7922 MY(staintex_min) = 16;
7923 MY(staintex_max) = 24;
7924 MY(tex_min) = 24;
7925 MY(tex_max) = 32;
7926 MY(type) = "blood";
7927 MY(velocityjitter) = '32.0 32.0 32.0';
7928 MY(velocitymultiplier) = 5;
7929}
7930// blood mist
7931SUB(damage_rifle_alien) {
7932 MY(alpha_min) = 100;
7933 MY(alpha_max) = 256;
7934 MY(alpha_fade) = 400;
7935 MY(color_min) = "0x000000";
7936 MY(color_max) = "0x204010";
7937 MY(count) = 1;
7938 MY(size_min) = 6;
7939 MY(size_max) = 12;
7940 MY(tex_max) = 8;
7941 MY(type) = "alphastatic";
7942}
7943
7944// rifle damage effect, robot blood
7945DEF(damage_rifle_robot);
7946SUB(damage_rifle_robot) {
7947 MY(airfriction) = 1;
7948 MY(alpha_min) = 256;
7949 MY(alpha_max) = 256;
7950 MY(alpha_fade) = 64;
7951 MY(bounce) = -1;
7952 MY(color_min) = "0xC0D890";
7953 MY(color_max) = "0xC0D890";
7954 MY(count) = 0.300000;
7955 MY(liquidfriction) = 4;
7956 MY(size_min) = 2;
7957 MY(size_max) = 4;
7958 MY(staincolor_min) = "0x808080";
7959 MY(staincolor_max) = "0x808080";
7960 MY(staintex_min) = 16;
7961 MY(staintex_max) = 24;
7962 MY(tex_min) = 24;
7963 MY(tex_max) = 32;
7964 MY(type) = "blood";
7965 MY(velocityjitter) = '32.0 32.0 32.0';
7966 MY(velocitymultiplier) = 5;
7967}
7968// blood mist
7969SUB(damage_rifle_robot) {
7970 MY(alpha_min) = 100;
7971 MY(alpha_max) = 256;
7972 MY(alpha_fade) = 400;
7973 MY(color_min) = "0x000000";
7974 MY(color_max) = "0x301860";
7975 MY(count) = 1;
7976 MY(size_min) = 6;
7977 MY(size_max) = 12;
7978 MY(tex_max) = 8;
7979 MY(type) = "alphastatic";
7980}
7981
7982// seeker damage effect
7983DEF(damage_seeker);
7984SUB(damage_seeker) {
7985 MY(alpha_min) = 512;
7986 MY(alpha_max) = 32;
7987 MY(alpha_fade) = 1024;
7988 MY(color_min) = "0x8f0c00";
7989 MY(color_max) = "0xff2200";
7990 MY(count) = 3;
7991 MY(gravity) = -0.300000;
7992 MY(notunderwater) = true;
7993 MY(originjitter) = '2.0 2.0 2.0';
7994 MY(sizeincrease) = -10;
7995 MY(size_min) = 4;
7996 MY(size_max) = 8;
7997 MY(tex_min) = 48;
7998 MY(tex_max) = 55;
7999 MY(type) = "smoke";
8000 MY(velocityjitter) = '22.0 22.0 50.0';
8001}
8002// smoke
8003SUB(damage_seeker) {
8004 MY(alpha_min) = 128;
8005 MY(alpha_max) = 32;
8006 MY(alpha_fade) = 128;
8007 MY(color_min) = "0x000000";
8008 MY(color_max) = "0x111111";
8009 MY(count) = 2;
8010 MY(gravity) = -0.300000;
8011 MY(notunderwater) = true;
8012 MY(originjitter) = '4.0 4.0 4.0';
8013 MY(sizeincrease) = 10;
8014 MY(size_min) = 2;
8015 MY(size_max) = 4;
8016 MY(tex_max) = 8;
8017 MY(type) = "alphastatic";
8018 MY(velocityjitter) = '11.0 11.0 50.0';
8019}
8020
8021// hagar damage effect
8022DEF(damage_hagar);
8023SUB(damage_hagar) {
8024 MY(alpha_min) = 512;
8025 MY(alpha_max) = 32;
8026 MY(alpha_fade) = 1024;
8027 MY(color_min) = "0x8f0c00";
8028 MY(color_max) = "0xff3a00";
8029 MY(count) = 3;
8030 MY(gravity) = -0.300000;
8031 MY(notunderwater) = true;
8032 MY(originjitter) = '2.0 2.0 2.0';
8033 MY(sizeincrease) = -10;
8034 MY(size_min) = 4;
8035 MY(size_max) = 8;
8036 MY(tex_min) = 48;
8037 MY(tex_max) = 55;
8038 MY(type) = "smoke";
8039 MY(velocityjitter) = '22.0 22.0 50.0';
8040}
8041// smoke
8042SUB(damage_hagar) {
8043 MY(alpha_min) = 128;
8044 MY(alpha_max) = 32;
8045 MY(alpha_fade) = 128;
8046 MY(color_min) = "0x000000";
8047 MY(color_max) = "0x111111";
8048 MY(count) = 2;
8049 MY(gravity) = -0.300000;
8050 MY(notunderwater) = true;
8051 MY(originjitter) = '4.0 4.0 4.0';
8052 MY(sizeincrease) = 10;
8053 MY(size_min) = 2;
8054 MY(size_max) = 4;
8055 MY(tex_max) = 8;
8056 MY(type) = "alphastatic";
8057 MY(velocityjitter) = '11.0 11.0 50.0';
8058}
8059
8060// fireball damage effect
8061DEF(damage_fireball);
8062SUB(damage_fireball) {
8063 MY(alpha_min) = 256;
8064 MY(alpha_max) = 16;
8065 MY(alpha_fade) = 512;
8066 MY(color_min) = "0x8f0d00";
8067 MY(color_max) = "0xff5a00";
8068 MY(count) = 4;
8069 MY(gravity) = -0.500000;
8070 MY(notunderwater) = true;
8071 MY(originjitter) = '8.0 8.0 8.0';
8072 MY(sizeincrease) = -10;
8073 MY(size_min) = 5;
8074 MY(size_max) = 10;
8075 MY(tex_min) = 48;
8076 MY(tex_max) = 55;
8077 MY(type) = "smoke";
8078 MY(velocityjitter) = '22.0 22.0 50.0';
8079}
8080// smoke
8081SUB(damage_fireball) {
8082 MY(alpha_min) = 128;
8083 MY(alpha_max) = 32;
8084 MY(alpha_fade) = 128;
8085 MY(color_min) = "0x000000";
8086 MY(color_max) = "0x111111";
8087 MY(count) = 4;
8088 MY(gravity) = -0.300000;
8089 MY(notunderwater) = true;
8090 MY(originjitter) = '6.0 6.0 6.0';
8091 MY(sizeincrease) = 10;
8092 MY(size_min) = 4;
8093 MY(size_max) = 8;
8094 MY(tex_max) = 8;
8095 MY(type) = "alphastatic";
8096 MY(velocityjitter) = '11.0 11.0 50.0';
8097}
8098
8099// rocketlauncher damage effect
8100DEF(damage_devastator);
8101SUB(damage_devastator) {
8102 MY(alpha_min) = 512;
8103 MY(alpha_max) = 64;
8104 MY(alpha_fade) = 1024;
8105 MY(color_min) = "0x8f0c00";
8106 MY(color_max) = "0xff2a00";
8107 MY(count) = 3;
8108 MY(gravity) = -0.700000;
8109 MY(notunderwater) = true;
8110 MY(originjitter) = '4.0 4.0 4.0';
8111 MY(sizeincrease) = -10;
8112 MY(size_min) = 5;
8113 MY(size_max) = 10;
8114 MY(tex_min) = 48;
8115 MY(tex_max) = 55;
8116 MY(type) = "smoke";
8117 MY(velocityjitter) = '22.0 22.0 30.0';
8118}
8119// smoke
8120SUB(damage_devastator) {
8121 MY(alpha_min) = 128;
8122 MY(alpha_max) = 32;
8123 MY(alpha_fade) = 128;
8124 MY(color_min) = "0x000000";
8125 MY(color_max) = "0x111111";
8126 MY(count) = 3;
8127 MY(gravity) = -0.300000;
8128 MY(notunderwater) = true;
8129 MY(originjitter) = '4.0 4.0 4.0';
8130 MY(sizeincrease) = 10;
8131 MY(size_min) = 4;
8132 MY(size_max) = 8;
8133 MY(tex_max) = 8;
8134 MY(type) = "alphastatic";
8135 MY(velocityjitter) = '11.0 11.0 50.0';
8136}
8137
8138// fireflies
8139DEF(fireflies);
8140SUB(fireflies) {
8141 MY(airfriction) = 5;
8142 MY(alpha_min) = 256;
8143 MY(alpha_max) = 256;
8144 MY(alpha_fade) = 70;
8145 MY(bounce) = -1;
8146 MY(color_min) = "0xff9600";
8147 MY(color_max) = "0xffefb8";
8148 MY(count) = 1;
8149 MY(originjitter) = '32.0 32.0 32.0';
8150 MY(originoffset) = '8.0 8.0 8.0';
8151 MY(sizeincrease) = -0.300000;
8152 MY(size_min) = 2;
8153 MY(size_max) = 3;
8154 MY(tex_min) = 38;
8155 MY(tex_max) = 38;
8156 MY(time_min) = 1;
8157 MY(time_max) = 2;
8158 MY(type) = "static";
8159 MY(velocityjitter) = '64.0 64.0 64.0';
8160 MY(velocityoffset) = '2.0 2.0 2.0';
8161}
8162
8163DEF(healray_muzzleflash);
8164SUB(healray_muzzleflash) {
8165 MY(alpha_min) = 256;
8166 MY(alpha_max) = 256;
8167 MY(alpha_fade) = 512;
8168 MY(color_min) = "0x283880";
8169 MY(color_max) = "0x283880";
8170 MY(countabsolute) = 1;
8171 MY(lightcolor) = '1.5 3.0 6.0';
8172 MY(lightradiusfade) = 2000;
8173 MY(lightradius) = 200;
8174 MY(originjitter) = '1.5 1.5 1.5';
8175 MY(sizeincrease) = -10;
8176 MY(size_min) = 20;
8177 MY(size_max) = 20;
8178 MY(tex_min) = 65;
8179 MY(tex_max) = 65;
8180 MY(type) = "smoke";
8181 MY(velocityjitter) = '6.0 6.0 6.0';
8182 MY(velocitymultiplier) = 0.010000;
8183}
8184SUB(healray_muzzleflash) {
8185 MY(airfriction) = 5;
8186 MY(alpha_min) = 50;
8187 MY(alpha_max) = 150;
8188 MY(alpha_fade) = 1924;
8189 MY(color_min) = "0xD9FDFF";
8190 MY(color_max) = "0x00f0ff";
8191 MY(count) = 22;
8192 MY(originjitter) = '1.0 1.0 1.0';
8193 MY(sizeincrease) = 3;
8194 MY(size_min) = 1;
8195 MY(size_max) = 15;
8196 MY(stretchfactor) = 3.900000;
8197 MY(tex_min) = 71;
8198 MY(tex_max) = 73;
8199 MY(type) = "spark";
8200 MY(velocityjitter) = '150.0 150.0 150.0';
8201 MY(velocitymultiplier) = 0.400000;
8202}
8203SUB(healray_muzzleflash) {
8204 MY(alpha_min) = 110;
8205 MY(alpha_max) = 228;
8206 MY(alpha_fade) = 4024;
8207 MY(color_min) = "0xD9FDFF";
8208 MY(color_max) = "0x00f0ff";
8209 MY(count) = 4;
8210 MY(originjitter) = '1.0 1.0 1.0';
8211 MY(size_min) = 1;
8212 MY(size_max) = 1;
8213 MY(stretchfactor) = 0.200000;
8214 MY(tex_min) = 70;
8215 MY(tex_max) = 70;
8216 MY(type) = "spark";
8217 MY(velocityjitter) = '650.0 650.0 650.0';
8218 MY(velocitymultiplier) = 1.100000;
8219}
8220
8221DEF(healray_impact);
8222SUB(healray_impact) {
8223 MY(alpha_min) = 256;
8224 MY(alpha_max) = 256;
8225 MY(color_min) = "0xd800ff";
8226 MY(color_max) = "0xd800ff";
8227 MY(countabsolute) = 1;
8228 MY(lightcolor) = '0.0 4.4 0.0';
8229 MY(lightradiusfade) = 450;
8230 MY(lightradius) = 125;
8231 MY(originjitter) = '17.0 17.0 17.0';
8232 MY(size_min) = 32;
8233 MY(size_max) = 32;
8234 MY(tex_min) = 59;
8235 MY(tex_max) = 59;
8236 MY(type) = "decal";
8237}
8238// shockwave
8239SUB(healray_impact) {
8240 MY(alpha_min) = 40;
8241 MY(alpha_max) = 40;
8242 MY(alpha_fade) = 350;
8243 MY(color_min) = "0x00ff00";
8244 MY(color_max) = "0x84c52f";
8245 MY(countabsolute) = 1;
8246 MY(sizeincrease) = 1400;
8247 MY(size_min) = 32;
8248 MY(size_max) = 32;
8249 MY(tex_min) = 33;
8250 MY(tex_max) = 33;
8251 MY(type) = "smoke";
8252 MY(velocitymultiplier) = 44;
8253}
8254// cloud of bouncing sparks
8255SUB(healray_impact) {
8256 MY(airfriction) = 6;
8257 MY(alpha_min) = 156;
8258 MY(alpha_max) = 300;
8259 MY(alpha_fade) = 1024;
8260 MY(color_min) = "0x00ff00";
8261 MY(color_max) = "0x84c52f";
8262 MY(count) = 30;
8263 MY(gravity) = 2;
8264 MY(originjitter) = '1.0 1.0 1.0';
8265 MY(size_min) = 1;
8266 MY(size_max) = 2;
8267 MY(tex_min) = 70;
8268 MY(tex_max) = 70;
8269 MY(type) = "spark";
8270 MY(velocityjitter) = '1112.0 1112.0 1112.0';
8271}
8272// inner cloud of smoke
8273SUB(healray_impact) {
8274 MY(airfriction) = 3;
8275 MY(alpha_min) = 200;
8276 MY(alpha_max) = 456;
8277 MY(alpha_fade) = 512;
8278 MY(color_min) = "0x00ff00";
8279 MY(color_max) = "0x84c52f";
8280 MY(count) = 15;
8281 MY(gravity) = -2;
8282 MY(startangle_min) = -180;
8283 MY(startangle_max) = 180;
8284 MY(spin_min) = -90;
8285 MY(spin_max) = 90;
8286 MY(size_min) = 2;
8287 MY(size_max) = 3;
8288 MY(tex_min) = 40;
8289 MY(tex_max) = 40;
8290 MY(type) = "smoke";
8291 MY(velocityjitter) = '120.0 120.0 420.0';
8292}
8293
8294DEF(bigplasma_muzzleflash);
8295SUB(bigplasma_muzzleflash) {
8296 MY(alpha_min) = 256;
8297 MY(alpha_max) = 256;
8298 MY(alpha_fade) = 812;
8299 MY(color_min) = "0x283880";
8300 MY(color_max) = "0x283880";
8301 MY(countabsolute) = 1;
8302 MY(lightcolor) = '1.5 3.0 6.0';
8303 MY(lightradiusfade) = 2000;
8304 MY(lightradius) = 200;
8305 MY(originjitter) = '1.5 1.5 1.5';
8306 MY(sizeincrease) = -10;
8307 MY(size_min) = 50;
8308 MY(size_max) = 50;
8309 MY(tex_min) = 65;
8310 MY(tex_max) = 65;
8311 MY(type) = "smoke";
8312 MY(velocityjitter) = '6.0 6.0 6.0';
8313 MY(velocitymultiplier) = 0.010000;
8314}
8315SUB(bigplasma_muzzleflash) {
8316 MY(alpha_min) = 56;
8317 MY(alpha_max) = 56;
8318 MY(alpha_fade) = 1112;
8319 MY(color_min) = "0x00f0ff";
8320 MY(color_max) = "0x00f0ff";
8321 MY(countabsolute) = 1;
8322 MY(sizeincrease) = 300;
8323 MY(size_min) = 20;
8324 MY(size_max) = 20;
8325 MY(tex_min) = 74;
8326 MY(tex_max) = 74;
8327 MY(type) = "smoke";
8328}
8329SUB(bigplasma_muzzleflash) {
8330 MY(airfriction) = 5;
8331 MY(alpha_min) = 50;
8332 MY(alpha_max) = 150;
8333 MY(alpha_fade) = 1924;
8334 MY(color_min) = "0xD9FDFF";
8335 MY(color_max) = "0x00f0ff";
8336 MY(count) = 14;
8337 MY(originjitter) = '1.0 1.0 1.0';
8338 MY(sizeincrease) = 135;
8339 MY(size_min) = 5;
8340 MY(size_max) = 10;
8341 MY(stretchfactor) = 1.900000;
8342 MY(tex_min) = 51;
8343 MY(tex_max) = 55;
8344 MY(type) = "spark";
8345 MY(velocityjitter) = '350.0 350.0 350.0';
8346 MY(velocitymultiplier) = 0.400000;
8347}
8348SUB(bigplasma_muzzleflash) {
8349 MY(alpha_min) = 110;
8350 MY(alpha_max) = 228;
8351 MY(alpha_fade) = 4024;
8352 MY(color_min) = "0xD9FDFF";
8353 MY(color_max) = "0x00f0ff";
8354 MY(count) = 4;
8355 MY(originjitter) = '1.0 1.0 1.0';
8356 MY(size_min) = 20;
8357 MY(size_max) = 20;
8358 MY(stretchfactor) = 0.200000;
8359 MY(tex_min) = 70;
8360 MY(tex_max) = 70;
8361 MY(type) = "spark";
8362 MY(velocityjitter) = '650.0 650.0 650.0';
8363 MY(velocitymultiplier) = 1.100000;
8364}
8365
8366DEF(bigplasma_impact);
8367SUB(bigplasma_impact) {
8368 MY(alpha_min) = 256;
8369 MY(alpha_max) = 256;
8370 MY(countabsolute) = 1;
8371 MY(lightcolor) = '3.1 4.4 10.0';
8372 MY(lightradiusfade) = 450;
8373 MY(lightradius) = 125;
8374 MY(originjitter) = '17.0 17.0 17.0';
8375 MY(size_min) = 32;
8376 MY(size_max) = 32;
8377 MY(tex_min) = 59;
8378 MY(tex_max) = 59;
8379 MY(type) = "decal";
8380}
8381// shockwave
8382SUB(bigplasma_impact) {
8383 MY(alpha_min) = 40;
8384 MY(alpha_max) = 40;
8385 MY(alpha_fade) = 350;
8386 MY(color_min) = "0x80C0FF";
8387 MY(color_max) = "0x80C0FF";
8388 MY(countabsolute) = 1;
8389 MY(sizeincrease) = 1400;
8390 MY(size_min) = 32;
8391 MY(size_max) = 32;
8392 MY(tex_min) = 33;
8393 MY(tex_max) = 33;
8394 MY(type) = "smoke";
8395 MY(velocitymultiplier) = 44;
8396}
8397// cloud of bouncing sparks
8398SUB(bigplasma_impact) {
8399 MY(airfriction) = 6;
8400 MY(alpha_min) = 156;
8401 MY(alpha_max) = 300;
8402 MY(alpha_fade) = 1024;
8403 MY(color_min) = "0x629dff";
8404 MY(color_max) = "0x0018ff";
8405 MY(count) = 30;
8406 MY(gravity) = 2;
8407 MY(originjitter) = '1.0 1.0 1.0';
8408 MY(size_min) = 1;
8409 MY(size_max) = 2;
8410 MY(tex_min) = 70;
8411 MY(tex_max) = 70;
8412 MY(type) = "spark";
8413 MY(velocityjitter) = '1512.0 1512.0 1512.0';
8414}
8415// inner cloud of smoke
8416SUB(bigplasma_impact) {
8417 MY(airfriction) = 30;
8418 MY(alpha_min) = 200;
8419 MY(alpha_max) = 456;
8420 MY(alpha_fade) = 1512;
8421 MY(color_min) = "0x629dff";
8422 MY(color_max) = "0x0018ff";
8423 MY(count) = 15;
8424 MY(originjitter) = '20.0 20.0 20.0';
8425 MY(startangle_min) = -180;
8426 MY(startangle_max) = 180;
8427 MY(spin_min) = -9;
8428 MY(spin_max) = 9;
8429 MY(sizeincrease) = 555;
8430 MY(size_min) = 20;
8431 MY(size_max) = 24;
8432 MY(tex_min) = 48;
8433 MY(tex_max) = 55;
8434 MY(type) = "smoke";
8435 MY(velocityjitter) = '320.0 320.0 320.0';
8436}
8437// smoke
8438SUB(bigplasma_impact) {
8439 MY(airfriction) = 0.040000;
8440 MY(alpha_min) = 128;
8441 MY(alpha_max) = 328;
8442 MY(alpha_fade) = 390;
8443 MY(blend) = "alpha";
8444 MY(color_min) = "0x222222";
8445 MY(color_max) = "0x000000";
8446 MY(count) = 16;
8447 MY(gravity) = 0.400000;
8448 MY(originjitter) = '80.0 80.0 10.0';
8449 MY(startangle_min) = -180;
8450 MY(startangle_max) = 180;
8451 MY(spin_min) = 2;
8452 MY(spin_max) = -2;
8453 MY(sizeincrease) = 30;
8454 MY(size_min) = 60;
8455 MY(size_max) = 30;
8456 MY(tex_max) = 7;
8457 MY(type) = "smoke";
8458 MY(velocityjitter) = '100.0 100.0 200.0';
8459 MY(velocityoffset) = '0.0 0.0 180.0';
8460}
8461// smoke in the middle
8462SUB(bigplasma_impact) {
8463 MY(airfriction) = 0.040000;
8464 MY(alpha_min) = 128;
8465 MY(alpha_max) = 328;
8466 MY(alpha_fade) = 310;
8467 MY(color_min) = "0x222222";
8468 MY(color_max) = "0x000000";
8469 MY(count) = 10;
8470 MY(gravity) = -0.200000;
8471 MY(originjitter) = '80.0 80.0 80.0';
8472 MY(startangle_min) = -180;
8473 MY(startangle_max) = 180;
8474 MY(spin_min) = 20;
8475 MY(spin_max) = -20;
8476 MY(sizeincrease) = -10;
8477 MY(size_min) = 60;
8478 MY(size_max) = 70;
8479 MY(tex_max) = 7;
8480 MY(type) = "alphastatic";
8481 MY(velocityjitter) = '10.0 10.0 10.0';
8482}
8483
8484#include "effectinfo_ctf.inc"
8485
8486// spawn_point -- team idle spawn point effect
8487#define spawn_point(name, color) \
8488 DEF(spawn_point_##name); \
8489 SUB(spawn_point_##name) { \
8490 MY(airfriction) = 0.200000; \
8491 MY(alpha_min) = 64; \
8492 MY(alpha_max) = 128; \
8493 MY(alpha_fade) = 128; \
8494 MY(color_min) = color; \
8495 MY(color_max) = color; \
8496 MY(count) = 37.500000; \
8497 MY(gravity) = -0.100000; \
8498 MY(liquidfriction) = 0.800000; \
8499 MY(originjitter) = '16.0 16.0 64.0'; \
8500 MY(size_min) = 1; \
8501 MY(size_max) = 2; \
8502 MY(type) = "static"; \
8503 MY(velocityjitter) = '32.0 32.0 0.0'; \
8504 }
8505
8506spawn_point(red, "0xFF0F0F")
8507spawn_point(blue, "0x0F0FFF")
8508spawn_point(yellow, "0xFFFF0F")
8509spawn_point(pink, "0xFF0FFF")
8510spawn_point(neutral, "0xFFFFFF")
8511#undef spawn_point
8512
8513// spawn_event -- team spawning effect
8514#define spawn_event(name, color) \
8515 DEF(spawn_event_##name); \
8516 SUB(spawn_event_##name) { \
8517 MY(airfriction) = 2; \
8518 MY(alpha_max) = 256; \
8519 MY(alpha_fade) = 256; \
8520 MY(bounce) = 1; \
8521 MY(color_min) = color; \
8522 MY(color_max) = color; \
8523 MY(count) = 100; \
8524 MY(originjitter) = '1.0 1.0 1.0'; \
8525 MY(size_min) = 1; \
8526 MY(size_max) = 1; \
8527 MY(stretchfactor) = 0.600000; \
8528 MY(tex_min) = 64; \
8529 MY(tex_max) = 64; \
8530 MY(type) = "spark"; \
8531 MY(velocityjitter) = '500.0 500.0 500.0'; \
8532 MY(velocitymultiplier) = 0.100000; \
8533 } \
8534 SUB(spawn_event_##name) { \
8535 MY(alpha_min) = 190; \
8536 MY(alpha_max) = 190; \
8537 MY(alpha_fade) = 180; \
8538 MY(color_min) = color; \
8539 MY(color_max) = color; \
8540 MY(countabsolute) = 1; \
8541 MY(sizeincrease) = -80; \
8542 MY(size_min) = 100; \
8543 MY(size_max) = 100; \
8544 MY(tex_min) = 65; \
8545 MY(tex_max) = 65; \
8546 MY(type) = "smoke"; \
8547 } \
8548 /**/
8549
8550spawn_event(red, "0xFF0F0F")
8551spawn_event(blue, "0x0F0FFF")
8552spawn_event(yellow, "0xFFFF0F")
8553spawn_event(pink, "0xFF0FFF")
8554spawn_event(neutral, "0xFFFFFF")
8555#undef spawn_event
8556
8557#include "effectinfo_nades.inc"
8558
8559DEF(shockwave_attack);
8560// electricity
8561SUB(shockwave_attack) {
8562 MY(airfriction) = 1;
8563 MY(alpha_min) = 4096;
8564 MY(alpha_max) = 4096;
8565 MY(alpha_fade) = 20000;
8566 MY(color_min) = "0xb44215";
8567 MY(color_max) = "0xff0000";
8568 MY(count) = 1;
8569 MY(originjitter) = '2.0 2.0 2.0';
8570 MY(startangle_min) = -180;
8571 MY(startangle_max) = 180;
8572 MY(spin_min) = 4000;
8573 MY(spin_max) = -4000;
8574 MY(sizeincrease) = 1.500000;
8575 MY(size_min) = 5;
8576 MY(size_max) = 7;
8577 MY(stretchfactor) = 2.300000;
8578 MY(tex_min) = 43;
8579 MY(tex_max) = 43;
8580 MY(type) = "spark";
8581 MY(velocityjitter) = '10.0 10.0 10.0';
8582 MY(velocitymultiplier) = 10;
8583}
8584// fire
8585SUB(shockwave_attack) {
8586 MY(airfriction) = 1;
8587 MY(alpha_min) = 4096;
8588 MY(alpha_max) = 4096;
8589 MY(alpha_fade) = 20000;
8590 MY(color_min) = "0xff4200";
8591 MY(color_max) = "0xff0000";
8592 MY(count) = 1;
8593 MY(originjitter) = '2.0 2.0 2.0';
8594 MY(sizeincrease) = 1.500000;
8595 MY(size_min) = 7;
8596 MY(size_max) = 9;
8597 MY(stretchfactor) = 2;
8598 MY(tex_min) = 8;
8599 MY(tex_max) = 15;
8600 MY(type) = "spark";
8601 MY(velocityjitter) = '10.0 10.0 10.0';
8602 MY(velocitymultiplier) = 10;
8603}
8604
8605DEF(arc_lightning);
8606// impact decal
8607SUB(arc_lightning) {
8608 MY(alpha_min) = 32;
8609 MY(alpha_max) = 32;
8610 MY(countabsolute) = 1;
8611 MY(lightcolor) = '3.1 4.4 10.0';
8612 MY(lightradiusfade) = 200;
8613 MY(lightradius) = 50;
8614 MY(originjitter) = '2.0 2.0 2.0';
8615 MY(size_min) = 16;
8616 MY(size_max) = 16;
8617 MY(tex_min) = 16;
8618 MY(tex_max) = 32;
8619 MY(type) = "decal";
8620}
8621// impact sparks
8622SUB(arc_lightning) {
8623 MY(airfriction) = 110;
8624 MY(alpha_min) = 256;
8625 MY(alpha_max) = 256;
8626 MY(alpha_fade) = 512;
8627 MY(color_min) = "0xDDFDFF";
8628 MY(color_max) = "0xFDFDFF";
8629 MY(count) = 100;
8630 MY(originjitter) = '20.0 20.0 20.0';
8631 MY(startangle_max) = 360;
8632 MY(spin_min) = -36000;
8633 MY(spin_max) = 36000;
8634 MY(sizeincrease) = -5;
8635 MY(size_max) = 5;
8636 MY(stretchfactor) = 1;
8637 MY(tex_min) = 71;
8638 MY(tex_max) = 74;
8639 MY(type) = "static";
8640 MY(velocityjitter) = '250.0 250.0 250.0';
8641 MY(velocitymultiplier) = 100;
8642}
8643// impact sparks (underwater)
8644SUB(arc_lightning) {
8645 MY(airfriction) = 5;
8646 MY(alpha_min) = 256;
8647 MY(alpha_max) = 256;
8648 MY(alpha_fade) = 512;
8649 MY(color_min) = "0xDDFDFF";
8650 MY(color_max) = "0xFDFDFF";
8651 MY(count) = 100;
8652 MY(liquidfriction) = 5;
8653 MY(orientation) = "spark";
8654 MY(originjitter) = '20.0 20.0 20.0';
8655 MY(startangle_max) = 360;
8656 MY(spin_min) = -36000;
8657 MY(spin_max) = 36000;
8658 MY(sizeincrease) = -5;
8659 MY(size_max) = 5;
8660 MY(stretchfactor) = 1;
8661 MY(tex_min) = 71;
8662 MY(tex_max) = 74;
8663 MY(type) = "static";
8664 MY(underwater) = true;
8665 MY(velocityjitter) = '250.0 250.0 250.0';
8666 MY(velocitymultiplier) = 20;
8667}
8668// impact smoke
8669SUB(arc_lightning) {
8670 MY(alpha_min) = 40;
8671 MY(alpha_max) = 40;
8672 MY(alpha_fade) = 350;
8673 MY(color_min) = "0x80C0FF";
8674 MY(color_max) = "0x80C0FF";
8675 MY(countabsolute) = 1;
8676 MY(sizeincrease) = 400;
8677 MY(size_min) = 4;
8678 MY(size_max) = 4;
8679 MY(tex_min) = 38;
8680 MY(tex_max) = 38;
8681 MY(type) = "smoke";
8682 MY(velocitymultiplier) = 100;
8683}
8684
8686// sparks on beam
8688 MY(airfriction) = -10;
8689 MY(alpha_min) = 256;
8690 MY(alpha_max) = 256;
8691 MY(alpha_fade) = 16384;
8692 MY(color_min) = "0xfafad2";
8693 MY(color_max) = "0xffffff";
8694 MY(originjitter) = '3.0 3.0 3.0';
8695 MY(relativeoriginoffset) = '10.0 0.0 0.0';
8696 MY(startangle_max) = 360;
8697 MY(spin_min) = 360;
8698 MY(spin_max) = 1000;
8699 MY(stretchfactor) = 1;
8700 MY(tex_min) = 71;
8701 MY(tex_max) = 74;
8702 MY(time_min) = 0.050000;
8703 MY(time_max) = 0.050000;
8704 MY(trailspacing) = 10;
8705 MY(type) = "spark";
8706 MY(velocityjitter) = '100.0 100.0 100.0';
8707 MY(velocitymultiplier) = 200;
8708}
8709// sparks on beam (underwater)
8710SUB(arc_beam) {
8711 MY(alpha_min) = 256;
8712 MY(alpha_max) = 256;
8713 MY(alpha_fade) = 16384;
8714 MY(color_min) = "0xfafad2";
8715 MY(color_max) = "0xffffff";
8716 MY(liquidfriction) = -10;
8717 MY(originjitter) = '30.0 30.0 30.0';
8718 MY(relativeoriginoffset) = '10.0 0.0 0.0';
8719 MY(startangle_max) = 360;
8720 MY(spin_min) = 360;
8721 MY(spin_max) = 1000;
8722 MY(stretchfactor) = 1;
8723 MY(tex_min) = 71;
8724 MY(tex_max) = 74;
8725 MY(time_min) = 0.001000;
8726 MY(time_max) = 0.001000;
8727 MY(trailspacing) = 10;
8728 MY(type) = "spark";
8729 MY(underwater) = true;
8730 MY(velocityjitter) = '100.0 100.0 100.0';
8731 MY(velocitymultiplier) = 200;
8732}
8733
8734DEF(arc_beam_heal);
8735// bubble this...
8736SUB(arc_beam_heal) {
8737 MY(airfriction) = -20;
8738 MY(alpha_min) = 2048;
8739 MY(alpha_max) = 2048;
8740 MY(alpha_fade) = 256;
8741 MY(color_min) = "0x20FF20";
8742 MY(color_max) = "0x40FF40";
8743 MY(relativeoriginoffset) = '5.0 0.0 0.0';
8744 MY(relativevelocityoffset) = '100.0 0.0 0.0';
8745 MY(sizeincrease) = 20;
8746 MY(size_min) = 0.100000;
8747 MY(size_max) = 0.100000;
8748 MY(tex_min) = 74;
8749 MY(tex_max) = 74;
8750 MY(trailspacing) = 1500;
8751 MY(type) = "smoke";
8752 MY(velocityjitter) = '3.0 3.0 3.0';
8753 MY(velocitymultiplier) = 200;
8754}
8755
8756DEF(arc_beam_healimpact);
8757// healing "aura"
8758SUB(arc_beam_healimpact) {
8759 MY(alpha_min) = 40;
8760 MY(alpha_max) = 40;
8761 MY(alpha_fade) = 350;
8762 MY(color_min) = "0x00ff00";
8763 MY(color_max) = "0x84c52f";
8764 MY(countabsolute) = 1;
8765 MY(lightcolor) = '0.0 4.4 0.0';
8766 MY(lightradiusfade) = 150;
8767 MY(lightradius) = 20;
8768 MY(sizeincrease) = -1000;
8769 MY(size_min) = 32;
8770 MY(size_max) = 32;
8771 MY(tex_min) = 33;
8772 MY(tex_max) = 33;
8773 MY(type) = "smoke";
8774 MY(velocitymultiplier) = 44;
8775}
8776// rising "smoke"
8777SUB(arc_beam_healimpact) {
8778 MY(airfriction) = 3;
8779 MY(alpha_min) = 200;
8780 MY(alpha_max) = 456;
8781 MY(alpha_fade) = 512;
8782 MY(color_min) = "0x00ff00";
8783 MY(color_max) = "0x84c52f";
8784 MY(count) = 15;
8785 MY(gravity) = -2;
8786 MY(startangle_min) = -180;
8787 MY(startangle_max) = 180;
8788 MY(spin_min) = -90;
8789 MY(spin_max) = 90;
8790 MY(size_min) = 0.500000;
8791 MY(size_max) = 1;
8792 MY(tex_min) = 40;
8793 MY(tex_max) = 40;
8794 MY(type) = "smoke";
8795 MY(velocityjitter) = '120.0 120.0 420.0';
8796}
8797
8798DEF(arc_smoke);
8799// arc heat smoke (notunderwater)
8800SUB(arc_smoke) {
8801 MY(airfriction) = 1;
8802 MY(alpha_min) = 32;
8803 MY(alpha_max) = 64;
8804 MY(alpha_fade) = 48;
8805 MY(color_min) = "0x4c453f";
8806 MY(color_max) = "0x2a241f";
8807 MY(count) = 2;
8808 MY(gravity) = -0.125000;
8809 MY(notunderwater) = true;
8810 MY(startangle_max) = 360;
8811 MY(spin_min) = -180;
8812 MY(spin_max) = 180;
8813 MY(sizeincrease) = 10;
8814 MY(size_min) = 5;
8815 MY(size_max) = 10;
8816 MY(tex_max) = 8;
8817 MY(type) = "smoke";
8818 MY(velocityjitter) = '0.0 0.0 16.0';
8819}
8820// arc heat bubbles (underwater)
8821SUB(arc_smoke) {
8822 MY(alpha_min) = 170;
8823 MY(alpha_max) = 256;
8824 MY(alpha_fade) = 64;
8825 MY(bounce) = 1.500000;
8826 MY(color_min) = "0x404040";
8827 MY(color_max) = "0x808080";
8828 MY(count) = 2;
8829 MY(gravity) = -0.125000;
8830 MY(liquidfriction) = 0.250000;
8831 MY(originjitter) = '6.0 6.0 6.0';
8832 MY(size_min) = 0.100000;
8833 MY(size_max) = 1;
8834 MY(tex_min) = 62;
8835 MY(tex_max) = 62;
8836 MY(type) = "bubble";
8837 MY(underwater) = true;
8838 MY(velocityjitter) = '16.0 16.0 16.0';
8839}
8840
8842// arc overheat electric bolts
8844 MY(airfriction) = 5;
8845 MY(alpha_min) = 128;
8846 MY(alpha_max) = 128;
8847 MY(alpha_fade) = 292;
8848 MY(color_min) = "0xffffff";
8849 MY(color_max) = "0x9271fb";
8850 MY(count) = 24;
8851 MY(gravity) = -0.400000;
8852 MY(liquidfriction) = 10;
8853 MY(originjitter) = '10.0 10.0 10.0';
8854 MY(sizeincrease) = -24;
8855 MY(size_min) = 6;
8856 MY(size_max) = 12;
8857 MY(tex_min) = 43;
8858 MY(tex_max) = 43;
8859 MY(type) = "spark";
8860 MY(velocityjitter) = '256.0 256.0 256.0';
8861}
8862
8863DEF(arc_overheat_fire);
8864// arc overheat bouncing sparks
8865SUB(arc_overheat_fire) {
8866 MY(alpha_max) = 256;
8867 MY(alpha_fade) = 640;
8868 MY(bounce) = 1.500000;
8869 MY(color_min) = "0x4444ff";
8870 MY(color_max) = "0xeeeeff";
8871 MY(count) = 1;
8872 MY(gravity) = 1;
8873 MY(liquidfriction) = 5;
8874 MY(originjitter) = '6.0 6.0 6.0';
8875 MY(size_min) = 0.400000;
8876 MY(size_max) = 1;
8877 MY(type) = "spark";
8878 MY(velocityjitter) = '92.0 92.0 92.0';
8879 MY(velocitymultiplier) = 80;
8880 MY(velocityoffset) = '0.0 0.0 80.0';
8881}
8882
8883#include "effectinfo_buffs.inc"
8884
8885#include "effectinfo_instagib.inc"
8886
8887DEF(arc_muzzleflash);
8888SUB(arc_muzzleflash) {
8889 MY(alpha_min) = 256;
8890 MY(alpha_max) = 256;
8891 MY(alpha_fade) = 512;
8892 MY(color_min) = "0x00ff00";
8893 MY(color_max) = "0x8f4333";
8894 MY(count) = 2;
8895 MY(lightcolor) = '0.3 2.0 0.2';
8896 MY(lightradiusfade) = 2000;
8897 MY(lightradius) = 200;
8898 MY(originjitter) = '1.5 1.5 1.5';
8899 MY(size_min) = 5;
8900 MY(size_max) = 5;
8901 MY(tex_max) = 8;
8902 MY(type) = "smoke";
8903 MY(velocityjitter) = '6.0 6.0 6.0';
8904 MY(velocitymultiplier) = 0.010000;
8905}
8906SUB(arc_muzzleflash) {
8907 MY(airfriction) = 12;
8908 MY(alpha_max) = 128;
8909 MY(alpha_fade) = 1024;
8910 MY(color_min) = "0x00ff00";
8911 MY(color_max) = "0x8f4333";
8912 MY(count) = 15;
8913 MY(originjitter) = '1.0 1.0 1.0';
8914 MY(startangle_min) = -180;
8915 MY(startangle_max) = 180;
8916 MY(spin_min) = -400;
8917 MY(spin_max) = 400;
8918 MY(size_min) = 5;
8919 MY(size_max) = 10;
8920 MY(stretchfactor) = 2;
8921 MY(tex_min) = 48;
8922 MY(tex_max) = 55;
8923 MY(type) = "spark";
8924 MY(velocityjitter) = '200.0 200.0 200.0';
8925 MY(velocitymultiplier) = 0.500000;
8926}
8927
8928DEF(arc_bolt_explode);
8929// decal
8930SUB(arc_bolt_explode) {
8931 MY(alpha_min) = 256;
8932 MY(alpha_max) = 256;
8933 MY(countabsolute) = 1;
8934 MY(lightcolor) = '8.0 4.0 1.0';
8935 MY(lightradiusfade) = 400;
8936 MY(lightradius) = 120;
8937 MY(originjitter) = '14.0 14.0 14.0';
8938 MY(size_min) = 28;
8939 MY(size_max) = 38;
8940 MY(tex_min) = 8;
8941 MY(tex_max) = 16;
8942 MY(type) = "decal";
8943}
8944// fire effect which make bright dot inside
8945SUB(arc_bolt_explode) {
8946 MY(airfriction) = 8;
8947 MY(alpha_min) = 80;
8948 MY(alpha_max) = 200;
8949 MY(alpha_fade) = 356;
8950 MY(bounce) = 1.500000;
8951 MY(color_min) = "0x00ffff";
8952 MY(color_max) = "0x00ffff";
8953 MY(count) = 3.500000;
8954 MY(liquidfriction) = 8;
8955 MY(notunderwater) = true;
8956 MY(originjitter) = '8.0 8.0 8.0';
8957 MY(sizeincrease) = 5;
8958 MY(size_min) = 16;
8959 MY(size_max) = 26;
8960 MY(tex_min) = 48;
8961 MY(tex_max) = 55;
8962 MY(type) = "smoke";
8963 MY(velocityjitter) = '156.0 156.0 156.0';
8964}
8965// fire effect which expands then slows
8966SUB(arc_bolt_explode) {
8967 MY(airfriction) = 12;
8968 MY(alpha_min) = 128;
8969 MY(alpha_max) = 256;
8970 MY(alpha_fade) = 456;
8971 MY(bounce) = 1.500000;
8972 MY(color_min) = "0x00ff00";
8973 MY(color_max) = "0x8f4333";
8974 MY(count) = 12;
8975 MY(liquidfriction) = 8;
8976 MY(notunderwater) = true;
8977 MY(originjitter) = '8.0 8.0 8.0';
8978 MY(sizeincrease) = 15;
8979 MY(size_min) = 20;
8980 MY(size_max) = 26;
8981 MY(tex_min) = 48;
8982 MY(tex_max) = 55;
8983 MY(type) = "static";
8984 MY(velocityjitter) = '286.0 286.0 286.0';
8985}
8986// underwater bubbles
8987SUB(arc_bolt_explode) {
8988 MY(alpha_min) = 128;
8989 MY(alpha_max) = 256;
8990 MY(alpha_fade) = 64;
8991 MY(bounce) = 1.500000;
8992 MY(color_min) = "0x404040";
8993 MY(color_max) = "0x808080";
8994 MY(count) = 16;
8995 MY(gravity) = -0.125000;
8996 MY(liquidfriction) = 0.250000;
8997 MY(originjitter) = '16.0 16.0 16.0';
8998 MY(size_min) = 3;
8999 MY(size_max) = 3;
9000 MY(tex_min) = 62;
9001 MY(tex_max) = 62;
9002 MY(type) = "bubble";
9003 MY(underwater) = true;
9004 MY(velocityjitter) = '96.0 96.0 96.0';
9005}
9006// bouncing sparks
9007SUB(arc_bolt_explode) {
9008 MY(airfriction) = 1;
9009 MY(alpha_min) = 644;
9010 MY(alpha_max) = 956;
9011 MY(alpha_fade) = 684;
9012 MY(bounce) = 1.600000;
9013 MY(color_min) = "0x00ff00";
9014 MY(color_max) = "0x8f4333";
9015 MY(count) = 16;
9016 MY(gravity) = 1;
9017 MY(liquidfriction) = 0.800000;
9018 MY(notunderwater) = true;
9019 MY(originjitter) = '16.0 16.0 16.0';
9020 MY(size_min) = 1;
9021 MY(size_max) = 0.100000;
9022 MY(tex_min) = 40;
9023 MY(tex_max) = 40;
9024 MY(type) = "spark";
9025 MY(velocityjitter) = '224.0 224.0 224.0';
9026 MY(velocityoffset) = '0.0 0.0 80.0';
9027}
9028
9029// weak bullet trail (somewhat like a tracer)
9030DEF(tr_bullet_weak);
9031SUB(tr_bullet_weak) {
9032 MY(alpha) = '75 100 3000';
9033 MY(color_min) = "0xf03000";
9034 MY(color_max) = "0xff6010";
9035 MY(countabsolute) = 1;
9036 MY(sizeincrease) = -3;
9037 MY(size_min) = 0.6;
9038 MY(size_max) = 0.8;
9039 my(tex_min) = 200;
9040 my(tex_max) = 200;
9041 MY(type) = "beam";
9042}
9043SUB(tr_bullet_weak) {
9044 MY(airfriction) = -4;
9045 MY(alpha) = '256 256 350';
9046 MY(color_min) = "0x202020";
9047 MY(color_max) = "0x404040";
9048 MY(notunderwater) = true;
9049 MY(sizeincrease) = 0.4;
9050 MY(size_min) = 1;
9051 MY(size_max) = 2;
9052 MY(tex_min) = 0;
9053 MY(tex_max) = 8;
9054 MY(trailspacing) = 16;
9055 MY(type) = "smoke";
9056 MY(velocityjitter) = '4 4 4';
9057}
9058SUB(tr_bullet_weak) {
9059 MY(alpha_min) = 256;
9060 MY(alpha_max) = 256;
9061 MY(alpha_fade) = 128;
9062 MY(bounce) = 1.500000;
9063 MY(color_min) = "0x404040";
9064 MY(color_max) = "0x808080";
9065 MY(gravity) = -0.125000;
9066 MY(liquidfriction) = 4;
9067 MY(size_min) = 0.5;
9068 MY(size_max) = 0.6;
9069 MY(tex_min) = 62;
9070 MY(tex_max) = 62;
9071 MY(trailspacing) = 32;
9072 MY(type) = "bubble";
9073 MY(underwater) = true;
9074 MY(velocityjitter) = '16.0 16.0 16.0';
9075}
9076
9077// Vaporizer hit effect
9078DEF(TE_TEI_G3_HIT);
9079SUB(TE_TEI_G3_HIT) {
9080 MY(alpha_min) = 128;
9081 MY(alpha_max) = 128;
9082 MY(alpha_fade) = 256;
9083 MY(color_min) = "0xFFFFFF";
9084 MY(color_max) = "0xFFFFFF";
9085 MY(countabsolute) = 1;
9086 MY(size_min) = 8;
9087 MY(size_max) = 8;
9088 MY(tex_min) = 200;
9089 MY(tex_max) = 200;
9090 MY(type) = "beam";
9091}
9092SUB(TE_TEI_G3_HIT) /* rings */ {
9093 MY(airfriction) = -4;
9096 MY(alpha_fade) = 512;
9097 MY(color_min) = "0xFFFFFF";
9098 MY(color_max) = "0xFFFFFF";
9099 MY(sizeincrease) = -2;
9100 MY(size_min) = 2;
9101 MY(size_max) = 2;
9102 MY(trailspacing) = 20;
9103 MY(type) = "smoke";
9104 MY(velocityjitter) = '2.0 2.0 2.0';
9105}
9106SUB(TE_TEI_G3_HIT) {
9107 MY(airfriction) = -4;
9108 MY(alpha_min) = 256;
9109 MY(alpha_max) = 256;
9110 MY(alpha_fade) = 512;
9111 MY(color_min) = "0xFFFFFF";
9112 MY(color_max) = "0xFFFFFF";
9113 MY(sizeincrease) = -6;
9114 MY(size_min) = 10;
9115 MY(size_max) = 10;
9116 MY(trailspacing) = 40;
9117 MY(type) = "smoke";
9118}
9119
9120// respawn ghosts effect
9121DEF(respawn_ghost);
9122SUB(respawn_ghost) {
9123 MY(count) = 75;
9124 MY(type) = "static";
9125 MY(color_min) = "0xA0A0A0";
9126 MY(color_max) = "0xFFFFFF";
9127 MY(size_min) = 2;
9128 MY(size_max) = 2;
9129 MY(alpha_min) = 32;
9130 MY(alpha_max) = 64;
9131 MY(alpha_fade) = 128;
9132 MY(airfriction) = 1;
9133 MY(liquidfriction) = 4;
9134 MY(originoffset) = '0 0 -8';
9135 MY(originjitter) = '28 28 16';
9136 MY(velocityjitter) = '0 0 256';
9137}
9138
9139// originally based on goldendust
9140DEF(item_despawn);
9141SUB(item_despawn) {
9142 MY(type) = "snow";
9143// MY(type) = "smoke";
9144 MY(blend) = "add";
9145 MY(alpha_min) = 192;
9146 MY(alpha_max) = 256;
9147 MY(alpha_fade) = 256;
9148 MY(color_min) = "0xff9600";
9149 MY(color_max) = "0xffefb8";
9150 MY(count) = 32;
9151 MY(originjitter) = '8 8 8';
9152 MY(sizeincrease) = 1;
9153 MY(size_min) = 0.5;
9154 MY(size_max) = 1;
9155 MY(tex_min) = 48;
9156 MY(tex_max) = 55;
9157 MY(velocityjitter) = '16 16 32';
9158 MY(lightradius) = 48;
9159 MY(lightradiusfade) 64;
9160 MY(lightcolor) '1 0.75 0.36';
9161 MY(lightshadow) 1;
9162}
9163
9164DEF(hlac_muzzleflash);
9165// glow and light
9166SUB(hlac_muzzleflash) {
9167 MY(airfriction) = 10;
9168 MY(alpha_min) = 128;
9169 MY(alpha_max) = 256;
9170 MY(alpha_fade) = 6280;
9171 MY(color_min) = "0x00cc00";
9172 MY(color_max) = "0x00ff00";
9173 MY(countabsolute) = 1;
9174 MY(lightcolor) = '0.4 0.8 0.2';
9175 MY(lightradiusfade) = 2000;
9176 MY(lightradius) = 100;
9177 MY(sizeincrease) = -100;
9178 MY(size_min) = 2;
9179 MY(size_max) = 5;
9180 MY(stretchfactor) = 2;
9181 MY(tex_min) = 70;
9182 MY(tex_max) = 70;
9183 MY(type) = "smoke";
9184}
9185// electricity
9186SUB(hlac_muzzleflash) {
9187 MY(airfriction) = 12;
9188 MY(alpha_min) = 0;
9189 MY(alpha_max) = 128;
9190 MY(alpha_fade) = 1024;
9191 MY(color_min) = "0x92e045";
9192 MY(color_max) = "0x64f42a";
9193 MY(count) = 15;
9194 MY(originjitter) = '1.0 1.0 1.0';
9195 MY(startangle_min) = -180;
9196 MY(startangle_max) = 180;
9197 MY(spin_min) = -400;
9198 MY(spin_max) = 400;
9199 MY(size_min) = 2;
9200 MY(size_max) = 5;
9201 MY(stretchfactor) = 2;
9202 MY(tex_min) = 48;
9203 MY(tex_max) = 55;
9204 MY(type) = "spark";
9205 MY(velocityjitter) = '200.0 200.0 200.0';
9206 MY(velocitymultiplier) = 0.500000;
9207}
9208
9209DEF(hlac_impact);
9210// decal
9211SUB(hlac_impact) {
9212 MY(alpha_min) = 128;
9213 MY(alpha_max) = 128;
9214 MY(countabsolute) = 1;
9215 MY(lightcolor) = '0.4 0.8 0.2';
9216 MY(lightradiusfade) = 500;
9217 MY(lightradius) = 150;
9218 MY(originjitter) = '14.0 14.0 14.0';
9219 MY(size_min) = 12;
9220 MY(size_max) = 12;
9221 MY(tex_min) = 47;
9222 MY(tex_max) = 47;
9223 MY(type) = "decal";
9224}
9225// flare effect
9226SUB(hlac_impact) {
9227 MY(alpha_min) = 256;
9228 MY(alpha_max) = 256;
9229 MY(alpha_fade) = 1024;
9230 MY(color_min) = "0x1be508";
9231 MY(color_max) = "0xd5f0a1";
9232 MY(countabsolute) = 1;
9233 MY(size_min) = 24;
9234 MY(size_max) = 24;
9235 MY(tex_min) = 46;
9236 MY(tex_max) = 46;
9237 MY(type) = "static";
9238}
9239// sparks that rapidly expand and rapidly slow down to form an interesting spherical effect
9240SUB(hlac_impact) {
9241 MY(airfriction) = 8;
9242 MY(alpha_min) = 256;
9243 MY(alpha_max) = 256;
9244 MY(alpha_fade) = 1024;
9245 MY(color_min) = "0x92e045";
9246 MY(color_max) = "0x54e51a";
9247 MY(count) = 128;
9248 MY(liquidfriction) = 2;
9249 MY(size_min) = 4;
9250 MY(size_max) = 4;
9251 MY(tex_min) = 45;
9252 MY(tex_max) = 45;
9253 MY(type) = "spark";
9254 MY(velocityjitter) = '256.0 256.0 256.0';
9255}
9256SUB(hlac_impact) {
9257 MY(alpha_min) = 64;
9258 MY(alpha_max) = 256;
9259 MY(alpha_fade) = 256;
9260 MY(color_min) = "0x92e045";
9261 MY(color_max) = "0xc7eda1";
9262 MY(count) = 4;
9263 MY(originjitter) = '1.0 1.0 1.0';
9264 MY(sizeincrease) = 6;
9265 MY(size_min) = 12;
9266 MY(size_max) = 12;
9267 MY(tex_min) = 4;
9268 MY(tex_max) = 6;
9269 MY(type) = "smoke";
9270 MY(velocityjitter) = '16.0 16.0 16.0';
9271 MY(velocitymultiplier) = 0.010000;
9272}
9273
9274DEF(shotgun_woosh);
9275// puff
9276SUB(shotgun_woosh) {
9277 MY(airfriction) = 2;
9278 MY(alpha_min) = 32;
9279 MY(alpha_max) = 192;
9280 MY(alpha_fade) = 512;
9281 MY(bounce) = 0.100000;
9282 MY(color_min) = "0x111111";
9283 MY(color_max) = "0x979797";
9284 MY(count) = 24;
9285 MY(notunderwater) = true;
9286 MY(originjitter) = '10.0 10.0 10.0';
9287 MY(sizeincrease) = 14;
9288 MY(size_min) = 1;
9289 MY(size_max) = 12;
9290 MY(tex_min) = 0;
9291 MY(tex_max) = 8;
9292 MY(velocityjitter) = '128 128 64';
9293 MY(velocitymultiplier) = 1;
9294 MY(type) = "smoke";
9295}
9296
9298// impact sparks
9300 MY(airfriction) = 110;
9301 MY(alpha_min) = 256;
9302 MY(alpha_max) = 300;
9303 MY(alpha_fade) = 512;
9304 MY(color_min) = "0xDDFDFF";
9305 MY(color_max) = "0xFDFDFF";
9306 MY(count) = 50;
9307 MY(originjitter) = '6.0 6.0 10.0';
9308 MY(startangle_max) = 360;
9309 MY(spin_min) = 0;
9310 MY(spin_max) = 0;
9311 MY(sizeincrease) = -1;
9312 MY(size_min) = 4;
9313 MY(size_max) = 7;
9314 MY(stretchfactor) = 1;
9315 MY(tex_min) = 71;
9316 MY(tex_max) = 74;
9317 MY(type) = "static";
9318 MY(velocityjitter) = '250.0 250.0 250.0';
9319 MY(velocitymultiplier) = 100;
9320}
9321// impact sparks (underwater)
9322SUB(EF_SHOCK) {
9323 MY(airfriction) = 5;
9324 MY(alpha_min) = 256;
9325 MY(alpha_max) = 300;
9326 MY(alpha_fade) = 512;
9327 MY(color_min) = "0xDDFDFF";
9328 MY(color_max) = "0xFDFDFF";
9329 MY(count) = 30;
9330 MY(liquidfriction) = 5;
9331 MY(orientation) = "spark";
9332 MY(originjitter) = '12.0 12.0 12.0';
9333 MY(startangle_max) = 360;
9334 MY(spin_min) = -36000;
9335 MY(spin_max) = 36000;
9336 MY(sizeincrease) = -5;
9337 MY(size_min) = 4;
9338 MY(size_max) = 7;
9339 MY(stretchfactor) = 1;
9340 MY(tex_min) = 71;
9341 MY(tex_max) = 74;
9342 MY(type) = "static";
9343 MY(underwater) = true;
9344 MY(velocityjitter) = '250.0 250.0 250.0';
9345 MY(velocitymultiplier) = 20;
9346}
9347// impact smoke
9348SUB(EF_SHOCK) {
9349 MY(alpha_min) = 40;
9350 MY(alpha_max) = 60;
9351 MY(alpha_fade) = 350;
9352 MY(color_min) = "0x80C0FF";
9353 MY(color_max) = "0x80C0FF";
9354 MY(count) = 10;
9355 MY(sizeincrease) = 400;
9356 MY(size_min) = 4;
9357 MY(size_max) = 4;
9358 MY(tex_min) = 38;
9359 MY(tex_max) = 38;
9360 MY(type) = "smoke";
9361 MY(velocitymultiplier) = 100;
9362}
9363
9364// always add new effects to the bottom of the list. And keep this comment in the bottom line of this file!
entity arc_beam
Definition arc.qh:128
float arc_overheat
Definition arc.qh:135
float count
Definition powerups.qc:22
float alpha
Definition items.qc:13
float gravity
Definition items.qh:17
const int EF_SHOCK
Definition constants.qh:103
const float TE_TAREXPLOSION
const float TE_KNIGHTSPIKE
const float EF_STARDUST
const float TE_SPIKE
const float TE_SPIKEQUAD
const float TE_SUPERSPIKEQUAD
const float TE_EXPLOSION
const float TE_SUPERSPIKE
const float TE_TELEPORT
const float TE_GUNSHOTQUAD
const float EF_FLAME
const float TE_GUNSHOT
const float TE_EXPLOSIONQUAD
const float TE_LAVASPLASH
const float TE_WIZSPIKE
float TE_BLOOD
#define ground_quake(name, colormin, colormax)
DEF(TE_WIZSPIKE)
#define flare(name, colormin, colormax)
MY(alpha_min)
#define spawn_point(name, color)
#define spawn_event(name, color)
SUB(TE_WIZSPIKE)
#define TE_TEI_G3(name, colormin1, colormax1, colormin2, colormax2)
float alpha_min
Definition models.qh:20
float alpha_max
Definition models.qh:20
vector originjitter
Definition main.qc:386