mining lasers: fix particle expirationtime

This commit is contained in:
HybridDog 2016-02-28 16:59:19 +01:00
parent e03751b79a
commit ebe2ac4585

View File

@ -122,7 +122,7 @@ local function laser_shoot(player, range, particle_texture, sound)
pos = start_pos,
velocity = dir,
acceleration = vector.multiply(dir, 50),
expirationtime = range / 11,
expirationtime = (math.sqrt(1+100*(range+0.4))-1)/50,
size = 1,
texture = particle_texture .. "^[transform" .. math.random(0, 7),
})