50 types of skies HD Resolution Dinamic Sky-Mod by ETHAN2
Hi guys,
Ethan2 have worked to increase and improve the types of sky available in HD resolution, are 50 distributed in 20 stages, this is because when there is the choice of the night fine we have more chances that both night than afternoon.
The kind of skies you see them in the picture.
Down photos of the form and the skies and the link to download the folder Sky-MoD to be inserted in content folder.
sider sky position
Code
-- Sky switcher, version 1.0
-- idea: Ethan2
-- module written by: juce
local skyroot = ".\\content\\sky-mod\\"
local sky = 0
local sky_map = {
[1] = "st099",
[2] = "st100",
[3] = "st101",
[4] = "st102",
[5] = "st103",
[6] = "st104",
[7] = "st105",
[8] = "st106",
[9] = "st107",
[10] = "st108",
[11] = "st109",
[12] = "st110",
[13] = "st111",
[14] = "st112",
[15] = "st113",
[16] = "st114",
[17] = "st115",
[18] = "st116",
[19] = "st117",
[20] = "st118",
}
function make_key(ctx, filename)
if sky > 0 then
return string.gsub(filename, "st%d%d%d", sky_map[sky])
end
end
function get_filepath(ctx, filename, key)
if key then
return skyroot .. key
end
end
function set_conditions(ctx, options)
sky = math.random(1,20)
log("sky selected: " .. sky)
end
function init(ctx)
if skyroot:sub(1,1) == "." then
skyroot = ctx.sider_dir .. skyroot
end
math.randomseed(os.time()) -- seed random generator
ctx.register("set_conditions", set_conditions)
ctx.register("set_conditions_for_replay", set_conditions)
ctx.register("livecpk_make_key", make_key)
ctx.register("livecpk_get_filepath", get_filepath)
end
return { init = init }
0 komentar:
Post a Comment