Tweak particle spawner settings

This commit is contained in:
cora 2022-06-19 22:19:46 +02:00
parent 855b18ee30
commit ca27237ffc
2 changed files with 12 additions and 14 deletions

View file

@ -1,5 +1,5 @@
local PARTICLES_COUNT_RAIN = 800 local PARTICLES_COUNT_RAIN = 500
local PARTICLES_COUNT_THUNDER = 1200 local PARTICLES_COUNT_THUNDER = 900
local get_connected_players = minetest.get_connected_players local get_connected_players = minetest.get_connected_players
@ -20,22 +20,20 @@ mcl_weather.rain = {
init_done = false, init_done = false,
} }
local update_sound={} local update_sound={}
local vel=math.random(0,3)
local falling_speed=math.random(10,15)
local size = math.random(1,3)
local psdef= { local psdef= {
amount = mcl_weather.rain.particles_count, amount = mcl_weather.rain.particles_count,
time=0, time=0,
minpos = vector.new(-15,20,-15), minpos = vector.new(-15,20,-15),
maxpos = vector.new(15,25,15), maxpos = vector.new(15,25,15),
minvel = vector.new(-2,-falling_speed-2,-2), minvel = vector.new(-2,-17,-2),
maxvel = vector.new(2,-falling_speed+2,2), maxvel = vector.new(2,-8,2),
minacc = vector.new(0,0,0), minacc = vector.new(0,0,0),
maxacc = vector.new(0,-0.5,0), maxacc = vector.new(0,-0.5,0),
minexptime = 15, minexptime = 1,
maxexptime = 30, maxexptime = 4,
minsize = size, minsize = 4,
maxsize= size*2, maxsize= 8,
collisiondetection = true, collisiondetection = true,
collision_removal = true, collision_removal = true,
vertical = true, vertical = true,

View file

@ -14,9 +14,9 @@ local psdef= {
maxvel = vector.new(0.2,-4,0.2), maxvel = vector.new(0.2,-4,0.2),
minacc = vector.new(0,-1,0), minacc = vector.new(0,-1,0),
maxacc = vector.new(0,-4,0), maxacc = vector.new(0,-4,0),
minexptime = 15, minexptime = 3,
maxexptime = 30, maxexptime = 5,
minsize = 0.5, minsize = 2,
maxsize = 5, maxsize = 5,
collisiondetection = true, collisiondetection = true,
collision_removal = true, collision_removal = true,