TNT: lower smoke particle count and speed.
authorAuke Kok <sofar@foo-projects.org>
Sat, 23 Apr 2016 05:24:19 +0000 (22:24 -0700)
committerparamat <mat.gregory@virginmedia.com>
Tue, 26 Apr 2016 21:34:00 +0000 (22:34 +0100)
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.

mods/tnt/init.lua

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