quick fix + better outlines
This commit is contained in:
parent
27e79631ac
commit
46275a2cc8
|
@ -160,7 +160,7 @@ local ignore_c = minetest.get_content_id("ignore")
|
||||||
|
|
||||||
local function spawn_particle(x,y,z,player)
|
local function spawn_particle(x,y,z,player)
|
||||||
minetest.add_particlespawner{
|
minetest.add_particlespawner{
|
||||||
amount = 30,
|
amount = 15,
|
||||||
-- Number of particles spawned over the time period `time`.
|
-- Number of particles spawned over the time period `time`.
|
||||||
|
|
||||||
time = 60,
|
time = 60,
|
||||||
|
@ -171,12 +171,12 @@ local function spawn_particle(x,y,z,player)
|
||||||
maxvel = {x=0.5, y=0.5, z=0.5},
|
maxvel = {x=0.5, y=0.5, z=0.5},
|
||||||
minacc = {x=0, y=0, z=0},
|
minacc = {x=0, y=0, z=0},
|
||||||
maxacc = {x=0, y=0, z=0},
|
maxacc = {x=0, y=0, z=0},
|
||||||
minexptime = 2,
|
minexptime = 0.2,
|
||||||
maxexptime = 3,
|
maxexptime = 1,
|
||||||
minsize = 5,
|
minsize = 10,
|
||||||
maxsize = 10,
|
maxsize = 60,
|
||||||
vertical = false,
|
vertical = false,
|
||||||
texture = "nc_lux_gravel.png",
|
texture = "nc_stonework_stone.png",
|
||||||
playername = player,
|
playername = player,
|
||||||
|
|
||||||
glow = 14
|
glow = 14
|
||||||
|
@ -207,9 +207,9 @@ local function spawn_particles(x,y,z,player)
|
||||||
pos[ord3] = ma[ord3]
|
pos[ord3] = ma[ord3]
|
||||||
end
|
end
|
||||||
--print(dump(pos))
|
--print(dump(pos))
|
||||||
if math.random(10)==1 then
|
--if math.random(10)==1 then
|
||||||
spawn_particle(pos.x,pos.y,pos.z,player)
|
spawn_particle(pos.x,pos.y,pos.z,player)
|
||||||
end
|
--end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -504,8 +504,8 @@ minetest.register_chatcommand("reset",{
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
cooldowns[name] = utime + cooldown
|
cooldowns[name] = utime + cooldown
|
||||||
local pl = players[name]
|
local is = players[name]
|
||||||
if pl then
|
if is then
|
||||||
players[name] = nil
|
players[name] = nil
|
||||||
table.insert(cells,{pos=is.pos,valid=is.valid})
|
table.insert(cells,{pos=is.pos,valid=is.valid})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue