1 #define nade(name, colormin1, colormax1, colormin2, colormax2) \
6 MY(alpha_fade) = 250; \
7 MY(color_min) = colormin1; \
8 MY(color_max) = colormax1; \
9 MY(sizeincrease) = -1; \
14 MY(trailspacing) = 1; \
17 SUB(nade_##name) /* fire */ { \
20 MY(alpha_fade) = 150; \
21 MY(color_min) = colormin2; \
22 MY(color_max) = colormax2; \
23 MY(notunderwater) = true; \
24 MY(sizeincrease) = -10; \
29 MY(trailspacing) = 8; \
32 SUB(nade_##name) /* bubbles */ { \
33 MY(alpha_min) = 256; \
34 MY(alpha_max) = 256; \
35 MY(alpha_fade) = 256; \
36 MY(bounce) = 1.500000; \
37 MY(color_min) = colormin1; \
38 MY(color_max) = colormax1; \
39 MY(gravity) = -0.125000; \
40 MY(liquidfriction) = 4; \
45 MY(trailspacing) = 16; \
46 MY(type) = "bubble"; \
47 MY(underwater) = true; \
48 MY(velocityjitter) = '16.0 16.0 16.0'; \
52 nade(blue, "0x006cff", "0x0600ff", "0x0600ff", "0x9794ff")
53 nade(red, "0xff0000", "0xff3c00", "0xff0000", "0xffa2a2")
54 nade(yellow, "0xFFFF0F", "0xFFFF0F", "0xFFFF0F", "0xFFFF0F")
55 nade(pink, "0xFF0FFF", "0xFF0FFF", "0xFF0FFF", "0xFF0FFF")
56 nade(neutral, "0xFFFFFF", "0xFFFFFF", "0xFFFFFF", "0xFFFFFF")
59 #define nade_burn(name, colormin1, colormax1, colormin2, colormax2) \
60 DEF(nade_##name##_burn); \
61 SUB(nade_##name##_burn) { \
62 MY(alpha_min) = 100; \
63 MY(alpha_max) = 100; \
64 MY(alpha_fade) = 250; \
65 MY(color_min) = colormin1; \
66 MY(color_max) = colormax1; \
67 MY(sizeincrease) = -1; \
72 MY(trailspacing) = 1; \
75 SUB(nade_##name##_burn) /* fire */ { \
76 MY(alpha_min) = 200; \
77 MY(alpha_max) = 200; \
78 MY(alpha_fade) = 1000; \
79 MY(color_min) = colormin2; \
80 MY(color_max) = colormax2; \
81 MY(notunderwater) = true; \
82 MY(sizeincrease) = -30; \
87 MY(trailspacing) = 64; \
90 SUB(nade_##name##_burn) /* bubbles */ { \
91 MY(alpha_min) = 256; \
92 MY(alpha_max) = 256; \
93 MY(alpha_fade) = 256; \
94 MY(bounce) = 1.500000; \
95 MY(color_min) = colormin1; \
96 MY(color_max) = colormax1; \
97 MY(gravity) = -0.125000; \
98 MY(liquidfriction) = 4; \
103 MY(trailspacing) = 16; \
104 MY(type) = "bubble"; \
105 MY(underwater) = true; \
106 MY(velocityjitter) = '16.0 16.0 16.0'; \
108 SUB(nade_##name##_burn) { \
109 MY(alpha_min) = 300; \
110 MY(alpha_max) = 900; \
111 MY(alpha_fade) = 1500; \
112 MY(color_min) = colormin1; \
113 MY(color_max) = colormax1; \
114 MY(originjitter) = '2.0 2.0 2.0'; \
115 MY(startangle_min) = -180; \
116 MY(startangle_max) = 180; \
118 MY(spin_max) = -20; \
119 MY(sizeincrease) = -40; \
124 MY(trailspacing) = 16; \
125 MY(type) = "smoke"; \
126 MY(velocityjitter) = '10.0 10.0 10.0'; \
130 nade_burn(red, "0xff0000", "0xff3c00", "0xff0000", "0xffa2a2")
131 nade_burn(blue, "0x006cff", "0x0600ff", "0x0600ff", "0x9794ff")
132 nade_burn(yellow, "0xFFFF0F", "0xFFFF0F", "0xFFFF0F", "0xFFFF0F")
133 nade_burn(pink, "0xFF0FFF", "0xFF0FFF", "0xFF0FFF", "0xFF0FFF")
134 nade_burn(neutral, "0xFFFFFF", "0xFFFFFF", "0xFFFFFF", "0xFFFFFF")
137 #define nade_explode(name, colorlight, colormin1, colormax1, colormin2, colormax2, colormin3, colormax3) \
138 DEF(nade_##name##_explode); \
139 SUB(nade_##name##_explode) { \
140 MY(alpha_min) = 256; \
141 MY(alpha_max) = 256; \
142 MY(countabsolute) = 1; \
143 MY(lightcolor) = colorlight; \
144 MY(lightradiusfade) = 1500; \
145 MY(lightradius) = 300; \
146 MY(originjitter) = '26.0 26.0 26.0'; \
151 MY(type) = "decal"; \
153 SUB(nade_##name##_explode) /* shockwave */ { \
154 MY(alpha_min) = 80; \
155 MY(alpha_max) = 80; \
156 MY(alpha_fade) = 650; \
157 MY(color_min) = colormin1; \
158 MY(color_max) = colormax1; \
159 MY(countabsolute) = 1; \
160 MY(sizeincrease) = 1800; \
165 MY(type) = "smoke"; \
166 MY(velocitymultiplier) = 44; \
168 SUB(nade_##name##_explode) /* fire */ { \
169 MY(airfriction) = 30; \
170 MY(alpha_min) = 400; \
171 MY(alpha_max) = 656; \
172 MY(alpha_fade) = 2000; \
173 MY(color_min) = colormin2; \
174 MY(color_max) = colormax2; \
176 MY(notunderwater) = true; \
177 MY(originjitter) = '50.0 50.0 50.0'; \
178 MY(startangle_min) = -180; \
179 MY(startangle_max) = 180; \
182 MY(sizeincrease) = 555; \
187 MY(type) = "smoke"; \
188 MY(velocityjitter) = '320.0 320.0 320.0'; \
190 SUB(nade_##name##_explode) /* fire stretched */ { \
191 MY(airfriction) = -9; \
192 MY(alpha_min) = 1500; \
193 MY(alpha_max) = 3000; \
194 MY(alpha_fade) = 13000; \
195 MY(color_min) = colormin2; \
196 MY(color_max) = colormax2; \
198 MY(sizeincrease) = 40; \
201 MY(stretchfactor) = 80; \
204 MY(type) = "spark"; \
205 MY(velocityjitter) = '30.0 30.0 30.0'; \
207 SUB(nade_##name##_explode) /* smoke */ { \
208 MY(airfriction) = 0.040000; \
209 MY(alpha_min) = 128; \
210 MY(alpha_max) = 328; \
211 MY(alpha_fade) = 390; \
212 MY(blend) = "alpha"; \
213 MY(color_min) = "0x222222"; \
214 MY(color_max) = "0x000000"; \
216 MY(gravity) = 0.400000; \
217 MY(originjitter) = '50.0 50.0 10.0'; \
218 MY(startangle_min) = -180; \
219 MY(startangle_max) = 180; \
222 MY(sizeincrease) = 50; \
226 MY(type) = "smoke"; \
227 MY(velocityjitter) = '200.0 200.0 200.0'; \
228 MY(velocityoffset) = '0.0 0.0 180.0'; \
230 SUB(nade_##name##_explode) /* underwater bubbles */ { \
231 MY(alpha_min) = 128; \
232 MY(alpha_max) = 256; \
233 MY(alpha_fade) = 64; \
234 MY(bounce) = 1.500000; \
235 MY(color_min) = "0x404040"; \
236 MY(color_max) = "0x808080"; \
238 MY(gravity) = -0.125000; \
239 MY(liquidfriction) = 0.250000; \
240 MY(originjitter) = '16.0 16.0 16.0'; \
245 MY(type) = "bubble"; \
246 MY(underwater) = true; \
247 MY(velocityjitter) = '196.0 196.0 196.0'; \
249 SUB(nade_##name##_explode) /* bouncing sparks */ { \
250 MY(airfriction) = 1; \
251 MY(alpha_min) = 644; \
252 MY(alpha_max) = 956; \
253 MY(alpha_fade) = 484; \
254 MY(bounce) = 1.600000; \
255 MY(color_min) = colormin3; \
256 MY(color_max) = colormax3; \
259 MY(liquidfriction) = 0.800000; \
260 MY(notunderwater) = true; \
261 MY(originjitter) = '16.0 16.0 16.0'; \
266 MY(type) = "spark"; \
267 MY(velocityjitter) = '424.0 424.0 624.0'; \
268 MY(velocityoffset) = '0.0 0.0 80.0'; \
270 SUB(nade_##name##_explode) /* notbouncing sparks */ { \
271 MY(airfriction) = 0.700000; \
272 MY(alpha_min) = 644; \
273 MY(alpha_max) = 956; \
274 MY(alpha_fade) = 684; \
275 MY(color_min) = colormin3; \
276 MY(color_max) = colormax3; \
278 MY(gravity) = 0.500000; \
279 MY(liquidfriction) = 0.800000; \
280 MY(originjitter) = '16.0 16.0 16.0'; \
285 MY(type) = "spark"; \
286 MY(velocityjitter) = '424.0 424.0 624.0'; \
287 MY(velocityoffset) = '0.0 0.0 80.0'; \
289 SUB(nade_##name##_explode) /* debris */ { \
290 MY(alpha_min) = 644; \
291 MY(alpha_max) = 956; \
292 MY(alpha_fade) = 2500; \
293 MY(color_min) = colormin3; \
294 MY(color_max) = colormax3; \
296 MY(notunderwater) = true; \
297 MY(originjitter) = '64.0 64.0 64.0'; \
298 MY(startangle_min) = -180; \
299 MY(startangle_max) = 180; \
300 MY(spin_min) = -100; \
301 MY(spin_max) = 100; \
306 MY(type) = "smoke"; \
307 MY(velocityjitter) = '324.0 324.0 324.0'; \
311 nade_explode(blue, '20.0 20.0 100.0', "0x80C0FF", "0x80C0FF", "0x629dff", "0x0018ff", "0x006cff", "0x0600ff")
312 nade_explode(red, '100.0 20.0 20.0', "0xff0000", "0xffa2a2", "0xff0000", "0xff4200", "0xff0000", "0xffa2a2")
313 nade_explode(yellow, '100.0 20.0 20.0', "0xff0000", "0xffa2a2", "0xFFFF0F", "0xFFFF0F", "0xff0000", "0xffa2a2")
314 nade_explode(pink, '100.0 20.0 20.0', "0xff0000", "0xffa2a2", "0xFF0FFF", "0xFF0FFF", "0xff0000", "0xffa2a2")
315 nade_explode(neutral, '100.0 20.0 20.0', "0xff0000", "0xffa2a2", "0xFFFFFF", "0xFFFFFF", "0xff0000", "0xffa2a2")