148
149
150
151
152
153
154
|
animation = {
type = 'vertical_frames', length = far/vel;
aspect_w = 16, aspect_h = 16;
};
}
end
end
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
animation = {
type = 'vertical_frames', length = far/vel;
aspect_w = 16, aspect_h = 16;
};
}
end
end
function sorcery.vfx.drip(liquid, noz, amt, time, exp)
if type(liquid) == 'string' then liquid = sorcery.register.liquid.db[liquid] end
local minnoz = vector.offset(noz, -0.03, 0.0, -0.03);
local maxnoz = vector.offset(noz, 0.03, 0.0, 0.03);
local drop = sorcery.lib.image('sorcery_drop.png'):multiply(liquid.color)
return minetest.add_particlespawner {
amount = amt, time = time;
texture = drop:render();
minpos = minnoz, maxpos = maxnoz;
minvel = vector.new(0,0,0);
maxvel = vector.new(0,-0.2,0);
minacc = vector.new(0,-0.2,0);
maxacc = vector.new(0,-0.23,0);
minsize = 0.4, maxsize = 1;
glow = liquid.glow or 2;
minexptime = exp, maxexptime = exp;
animation = {
type = 'sheet_2d';
frames_w = 10;
frames_h = 1;
frame_length = (exp/10) + 0.01;
};
vertical = true;
}
end
|