forked from VoxeLibre/VoxeLibre
Spawn rain and snow particles higher
This commit is contained in:
parent
c9cc3651df
commit
17f611567c
|
@ -55,7 +55,7 @@ mcl_weather.rain.add_rain_particles = function(player)
|
|||
pos = {x=random_pos_x, y=random_pos_y, z=random_pos_z},
|
||||
velocity = {x=0, y=-10, z=0},
|
||||
acceleration = {x=0, y=-30, z=0},
|
||||
expirationtime = 0.2,
|
||||
expirationtime = 1.0,
|
||||
size = math.random(0.5, 3),
|
||||
collisiondetection = true,
|
||||
collision_removal = true,
|
||||
|
|
|
@ -15,7 +15,7 @@ mcl_weather.snow.add_snow_particles = function(player)
|
|||
pos = {x=random_pos_x, y=random_pos_y, z=random_pos_z},
|
||||
velocity = {x = math.random(-1,-0.5), y = math.random(-2,-1), z = math.random(-1,-0.5)},
|
||||
acceleration = {x = math.random(-1,-0.5), y=-0.5, z = math.random(-1,-0.5)},
|
||||
expirationtime = 2.0,
|
||||
expirationtime = 3.0,
|
||||
size = math.random(0.5, 2),
|
||||
collisiondetection = true,
|
||||
collision_removal = true,
|
||||
|
|
|
@ -117,7 +117,7 @@ mcl_weather.get_random_pos_by_player_look_dir = function(player)
|
|||
end
|
||||
end
|
||||
|
||||
random_pos_y = math.random() + math.random(player_pos.y + 1, player_pos.y + 3)
|
||||
random_pos_y = math.random() + math.random(player_pos.y + 10, player_pos.y + 15)
|
||||
return random_pos_x, random_pos_y, random_pos_z
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue