Update mining laser particle API usage

This commit is contained in:
ShadowNinja 2016-03-21 19:44:05 -04:00 committed by ShadowNinja
parent 2b0a283556
commit cfd4cb7871

View File

@ -38,8 +38,8 @@ local function laser_node(pos, node, player)
minetest.remove_node(pos) minetest.remove_node(pos)
minetest.add_particle({ minetest.add_particle({
pos = pos, pos = pos,
vel = {x=0, y=2, z=0}, velocity = {x=0, y=2, z=0},
acc = {x=0, y=-1, z=0}, acceleration = {x=0, y=-1, z=0},
expirationtime = 1.5, expirationtime = 1.5,
size = 6 + math.random() * 2, size = 6 + math.random() * 2,
texture = "smoke_puff.png^[transform" .. math.random(0, 7), texture = "smoke_puff.png^[transform" .. math.random(0, 7),
@ -64,8 +64,8 @@ local function laser_shoot(player, range, particle_texture, sound)
start_pos.y = start_pos.y + 1.6 start_pos.y = start_pos.y + 1.6
minetest.add_particle({ minetest.add_particle({
pos = startpos, pos = startpos,
vel = dir, velocity = dir,
acc = vector.multiply(dir, 50), acceleration = vector.multiply(dir, 50),
expirationtime = range / 11, expirationtime = range / 11,
size = 1, size = 1,
texture = particle_texture .. "^[transform" .. math.random(0, 7), texture = particle_texture .. "^[transform" .. math.random(0, 7),