mirror of
https://github.com/t-affeldt/regional_weather.git
synced 2025-07-20 17:30:31 +02:00
Change weather to be outside only, add underground skybox, add hud overlays
This commit is contained in:
@ -4,21 +4,37 @@ local conditions = {
|
||||
min_height = regional_weather.settings.min_height,
|
||||
max_height = regional_weather.settings.max_height,
|
||||
max_heat = 30,
|
||||
min_humidity = 65
|
||||
min_humidity = 65,
|
||||
min_light = 15
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
||||
effects["regional_weather:spawn_snow"] = true
|
||||
effects["climate_api:hud_overlay"] = {
|
||||
file = "weather_hud_ice.png",
|
||||
z_index = -100
|
||||
}
|
||||
|
||||
effects["climate_api:particles"] = {
|
||||
min_pos = {x=-12, y= 5, z=-12},
|
||||
max_pos = {x= 12, y=9, z= 12},
|
||||
exptime=8,
|
||||
min_pos = {x=-8, y=3, z=-8},
|
||||
max_pos = {x= 8, y=6, z= 8},
|
||||
exptime=6,
|
||||
size=12,
|
||||
texture="weather_snow.png"
|
||||
}
|
||||
|
||||
effects["climate_api:skybox"] = {
|
||||
sky_data = {
|
||||
type = "plain",
|
||||
base_color = {r=106, g=130, b=142},
|
||||
clouds = true
|
||||
},
|
||||
cloud_data = {
|
||||
size = 0.98,
|
||||
speed = {x = 4, y = 0, z = -1.3}
|
||||
}
|
||||
}
|
||||
|
||||
local function generate_effects(params)
|
||||
local avg_humidity = 55
|
||||
local intensity = params.humidity / avg_humidity
|
||||
@ -29,7 +45,7 @@ local function generate_effects(params)
|
||||
}
|
||||
|
||||
override["climate_api:particles"] = {
|
||||
amount = 50 * math.min(intensity, 1.5),
|
||||
amount = 8 * math.min(intensity, 1.5),
|
||||
falling_speed = 1 / math.min(intensity, 1.3)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user