updates
This commit is contained in:
parent
1e6b7785d6
commit
c70e3c69f8
@ -1 +0,0 @@
|
||||
name = 1042_achievements
|
@ -1,4 +0,0 @@
|
||||
|
||||
local path = core.get_modpath("1042_ambiance")
|
||||
|
||||
dofile(path.."/player.lua")
|
@ -1,2 +0,0 @@
|
||||
name = 1042_ambiance
|
||||
depends = 1042_core
|
@ -1,80 +0,0 @@
|
||||
|
||||
|
||||
core.register_on_joinplayer(function(player, last_join)
|
||||
local saturation = 1.8
|
||||
if core_1042.get("playersetting_"..player:get_player_name().."_greyscale") == "true" then
|
||||
saturation = 0
|
||||
end
|
||||
|
||||
player:set_lighting(
|
||||
{
|
||||
volumetric_light = {
|
||||
strength = 0.1
|
||||
},
|
||||
shadows = {
|
||||
intensity = 0.4,
|
||||
tint = {r=0x99, g=0x99, b=0x99}
|
||||
},
|
||||
bloom = {
|
||||
intensity = 0.07,
|
||||
strength_factor = 1.0,
|
||||
radius = 1.0
|
||||
},
|
||||
saturation = saturation,
|
||||
exposure = {
|
||||
exposure_correction = 1
|
||||
}
|
||||
}
|
||||
)
|
||||
player:set_sky(
|
||||
{
|
||||
type = "regular",
|
||||
clouds = true,
|
||||
sky_color = {
|
||||
night_sky = "#0066ff",
|
||||
night_horizon = "#0088ff"
|
||||
},
|
||||
fog = {
|
||||
fog_start = 0
|
||||
}
|
||||
}
|
||||
)
|
||||
player:set_sun(
|
||||
{
|
||||
texture = "1042_plain_node.png^[colorize:#ddaa66:144",
|
||||
scale = 0.5
|
||||
}
|
||||
)
|
||||
player:set_moon(
|
||||
{
|
||||
texture = "1042_plain_node.png^[colorize:#aaaaaa:144",
|
||||
visible = true,
|
||||
scale = 0.3
|
||||
}
|
||||
)
|
||||
player:set_stars(
|
||||
{
|
||||
visible = true,
|
||||
day_opacity = 0.1,
|
||||
count = 6000,
|
||||
star_color = "#99aaffff",
|
||||
scale = 0.3
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
local zoom_time = 0
|
||||
if last_join == nil then
|
||||
zoom_time = 1
|
||||
|
||||
core.chat_send_player(player:get_player_name(), core.colorize("#00ff00", "It is the year 1042 and you are lost."))
|
||||
|
||||
else
|
||||
core.chat_send_player(player:get_player_name(), "It is day " .. core.get_day_count() .. " of being lost.")
|
||||
end
|
||||
|
||||
player:set_fov(100, false, zoom_time)
|
||||
end)
|
||||
|
||||
|
||||
-- Add sounds
|
@ -85,9 +85,10 @@ end
|
||||
|
||||
local path = core.get_modpath("1042_core")
|
||||
|
||||
dofile(path.."/game_storage.lua")
|
||||
dofile(path.."/funcs.lua")
|
||||
dofile(path.."/player_inv.lua")
|
||||
dofile(path.."/player.lua")
|
||||
dofile(path.."/privs.lua")
|
||||
dofile(path.."/src/game_storage.lua")
|
||||
dofile(path.."/src/funcs.lua")
|
||||
dofile(path.."/src/player_inv.lua")
|
||||
dofile(path.."/src/player.lua")
|
||||
dofile(path.."/src/privs.lua")
|
||||
dofile(path.."/src/achievements.lua")
|
||||
|
||||
|
@ -63,16 +63,18 @@ end)
|
||||
|
||||
|
||||
|
||||
-- Open player
|
||||
core.register_on_rightclickplayer(function(player, clicker)
|
||||
|
||||
end)
|
||||
|
||||
|
||||
|
||||
-- Join player
|
||||
|
||||
core.register_on_joinplayer(function(player, last_join)
|
||||
local name = player:get_player_name()
|
||||
|
||||
|
||||
if last_join == nil then
|
||||
spawn_player(player)
|
||||
end
|
||||
|
||||
player:set_properties({
|
||||
visual = "mesh",
|
||||
mesh = "player.gltf",
|
||||
@ -96,7 +98,6 @@ core.register_on_joinplayer(function(player, last_join)
|
||||
|
||||
nametag_color = "#00000000",
|
||||
})
|
||||
|
||||
player:set_physics_override(
|
||||
{
|
||||
gravity = 1.5,
|
||||
@ -105,7 +106,6 @@ core.register_on_joinplayer(function(player, last_join)
|
||||
liquid_sink = 2
|
||||
}
|
||||
)
|
||||
|
||||
player:hud_set_flags(
|
||||
{
|
||||
minimap = false,
|
||||
@ -115,6 +115,83 @@ core.register_on_joinplayer(function(player, last_join)
|
||||
}
|
||||
)
|
||||
|
||||
-- Ligthing and enviorment
|
||||
local saturation = 1.8
|
||||
if core_1042.get("playersetting_"..name.."_greyscale") == "true" then
|
||||
saturation = 0
|
||||
end
|
||||
|
||||
player:set_lighting(
|
||||
{
|
||||
volumetric_light = {
|
||||
strength = 0.1
|
||||
},
|
||||
shadows = {
|
||||
intensity = 0.4,
|
||||
tint = {r=0x99, g=0x99, b=0x99}
|
||||
},
|
||||
bloom = {
|
||||
intensity = 0.07,
|
||||
strength_factor = 1.0,
|
||||
radius = 1.0
|
||||
},
|
||||
saturation = saturation,
|
||||
exposure = {
|
||||
exposure_correction = 1
|
||||
}
|
||||
}
|
||||
)
|
||||
player:set_sky(
|
||||
{
|
||||
type = "regular",
|
||||
clouds = true,
|
||||
sky_color = {
|
||||
night_sky = "#0066ff",
|
||||
night_horizon = "#0088ff"
|
||||
},
|
||||
fog = {
|
||||
fog_start = 0
|
||||
}
|
||||
}
|
||||
)
|
||||
player:set_sun(
|
||||
{
|
||||
texture = "1042_plain_node.png^[colorize:#ddaa66:144",
|
||||
scale = 0.5
|
||||
}
|
||||
)
|
||||
player:set_moon(
|
||||
{
|
||||
texture = "1042_plain_node.png^[colorize:#aaaaaa:144",
|
||||
visible = true,
|
||||
scale = 0.3
|
||||
}
|
||||
)
|
||||
player:set_stars(
|
||||
{
|
||||
visible = true,
|
||||
day_opacity = 0.1,
|
||||
count = 6000,
|
||||
star_color = "#99aaffff",
|
||||
scale = 0.3
|
||||
}
|
||||
)
|
||||
|
||||
local zoom_time = 0
|
||||
if last_join == nil then
|
||||
spawn_player(player)
|
||||
zoom_time = 1
|
||||
|
||||
core.chat_send_player(name, core.colorize("#00ff00", "It is the year 1042 and you are lost."))
|
||||
|
||||
else
|
||||
core.chat_send_player(name, "It is day " .. core.get_day_count() .. " of being lost.")
|
||||
end
|
||||
|
||||
player:set_fov(100, false, zoom_time)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
local path = core.get_modpath("1042_nodes")
|
||||
|
||||
dofile(path.."/items.lua")
|
||||
dofile(path.."/nodes.lua")
|
||||
dofile(path.."/plants.lua")
|
||||
dofile(path.."/liquids.lua")
|
||||
dofile(path.."/abms.lua")
|
||||
dofile(path.."/src/items.lua")
|
||||
dofile(path.."/src/nodes.lua")
|
||||
dofile(path.."/src/plants.lua")
|
||||
dofile(path.."/src/liquids.lua")
|
||||
dofile(path.."/src/abms.lua")
|
@ -1,2 +1,2 @@
|
||||
name = 1042_weather
|
||||
depends = 1042_ambiance
|
||||
depends = 1042_core, 1042_nodes
|
Loading…
x
Reference in New Issue
Block a user