TNT: lower smoke particle count and speed.

The effect is similar, and the reduction in particles is a small
boost in responsiveness.

To compensate, I've lowered the spawner time and expiration length
as well.
This commit is contained in:
Auke Kok 2016-04-22 22:24:19 -07:00 committed by paramat
parent 7a892c70e6
commit f62afa02b7

View File

@ -170,16 +170,16 @@ end
local function add_effects(pos, radius, drops) local function add_effects(pos, radius, drops)
minetest.add_particlespawner({ minetest.add_particlespawner({
amount = 128, amount = 64,
time = 1, time = 0.5,
minpos = vector.subtract(pos, radius / 2), minpos = vector.subtract(pos, radius / 2),
maxpos = vector.add(pos, radius / 2), maxpos = vector.add(pos, radius / 2),
minvel = {x = -20, y = -20, z = -20}, minvel = {x = -10, y = -10, z = -10},
maxvel = {x = 20, y = 20, z = 20}, maxvel = {x = 10, y = 10, z = 10},
minacc = vector.new(), minacc = vector.new(),
maxacc = vector.new(), maxacc = vector.new(),
minexptime = 1, minexptime = 1,
maxexptime = 3, maxexptime = 2.5,
minsize = 8, minsize = 8,
maxsize = 16, maxsize = 16,
texture = "tnt_smoke.png", texture = "tnt_smoke.png",