206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
|
else
local dir = vector.subtract(tgt.above,tgt.under)
minvel = vector.multiply(dir, 0.3)
maxvel = vector.multiply(dir, 1.2)
end
print(minetest.get_player_by_name('singleplayer'))
return minetest.add_particlespawner {
amount = 450;--50;
time = 2;--0.5;
-- old syntax
minpos = vector.subtract(tgt.under, 0.5);
maxpos = vector.add(tgt.under, 0.5);
minvel = minvel, maxvel = maxvel;
minexptime = 1, maxexptime = 2;
minsize = 0.5, maxsize = 2;
texture = L.image('sorcery_spark.png'):multiply(color):render();
--new syntax
-- can't use this shit until it gets merged :(
-- pos = {
-- min = vector.subtract(tgt.under, 0.5);
-- max = vector.add(tgt.under, 0.5);
-- };
-- pos = {
-- min = vector.subtract(tgt.under, 0.8);
-- max = vector.add (tgt.under, 0.8);
-- };
-- vel_tween = {
-- {min = minvel, max = maxvel};
-- {min = minvel * 3, max = maxvel * 3};
-- };
-- acc = {
-- min = vector.new(0,-2,0);
-- max = vector.new(0,-5,0);
-- };
-- bounce = { min = 0.3, max = 2 };
-- exptime = { min = 0.5, max = 10 };
-- size = { min = 0.5, max = 1 };
-- collisiondetection = true;
--
-- texpool = {
-- {
-- img = L.image('sorcery_spark.png'):multiply(color):render();
-- -- img = 'sorcery_inferno_crystal.png';
-- alpha_tween = { 0.8, 1; style = 'pulse', reps = 4};
-- -- scale = {x=4,y=0.5};
-- scale_tween = { {x=2,y=3}; {x=0,y=0}; style = 'pulse', reps = 6 };
-- };
-- -- {
-- -- img = L.image('sorcery_divine_radiance_1.png'):multiply(L.color(255,0,0)):render();
-- -- fade = 'pulse';
-- -- fade_reps = 3;
-- -- };
-- };
-- radius = {
-- min = vector.new(0,0,0);
-- max = 0;
-- };
-- animation = {
-- type = 'vertical_frames';
-- aspect_w = 16, aspect_h = 16;
-- length = -1;
-- };
-- glow = 14;
}
end
sorcery.vfx.bloodburst = function(pos,size)
for i=0, size or 48 do
minetest.add_particle{
texture = 'sorcery_blood_' .. math.random(5) .. '.png',
|
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
|
|
|
|
|
|
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
|
else
local dir = vector.subtract(tgt.above,tgt.under)
minvel = vector.multiply(dir, 0.3)
maxvel = vector.multiply(dir, 1.2)
end
print(minetest.get_player_by_name('singleplayer'))
return minetest.add_particlespawner {
amount = 50;
time = 0.5;
-- old syntax
minpos = vector.subtract(tgt.under, 0.5);
maxpos = vector.add(tgt.under, 0.5);
minvel = minvel, maxvel = maxvel;
minexptime = 1, maxexptime = 2;
minsize = 0.5, maxsize = 2;
texture = L.image('sorcery_spark.png'):multiply(color):render();
animation = {
type = 'vertical_frames';
aspect_w = 16, aspect_h = 16;
length = 2.1;
};
glow = 14;
}
end
sorcery.vfx.bloodburst = function(pos,size)
for i=0, size or 48 do
minetest.add_particle{
texture = 'sorcery_blood_' .. math.random(5) .. '.png',
|