Add low 45 degree platforms
I would like to take this opportunity to credit Och_Noe as the original author for the plans to the 45 degree platform model. I failed to credit him properly when the first lot of 45 degree platforms were added.
This commit is contained in:
parent
643d69db9c
commit
d65ba80df7
|
@ -68,6 +68,28 @@ function advtrains.register_platform(modprefix, preset)
|
|||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
local diagonalbox_low = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.5, -0.25, 0, -0.8 },
|
||||
{-0.25, -0.5, 0.5 , 0, 0, -0.55},
|
||||
{0, -0.5, 0.5 , 0.25, 0, -0.3 },
|
||||
{0.25 , -0.5, 0.5, 0.5, 0, -0.05}
|
||||
}
|
||||
}
|
||||
minetest.register_node(modprefix..":platform_45_low_"..nodename, {
|
||||
description = attrans("@1 Platform (low, 45 degree)", desc),
|
||||
groups = {cracky = 1, not_blocking_trains = 1, platform=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
drawtype = "mesh",
|
||||
mesh = "advtrains_platform_diag_low.b3d",
|
||||
selection_box = diagonalbox_low,
|
||||
collision_box = diagonalbox_low,
|
||||
tiles = {btex, btex.."^advtrains_platform_diag.png"},
|
||||
paramtype2 = "facedir",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
minetest.register_craft({
|
||||
type="shapeless",
|
||||
output = modprefix .. ":platform_high_"..nodename.." 4",
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -35,6 +35,7 @@ advtrains_japan_horn : Codesound
|
|||
advtrains_steam_whistle : googol
|
||||
advtrains_subway_horn : https://freesound.org/people/Mullumbimby/sounds/385283/
|
||||
advtrains_subway_* : Gabriel (gbl08ma)
|
||||
45 degree platforms design : Och_Noe
|
||||
|
||||
Testers:
|
||||
gpcf (Linuxworks server)
|
||||
|
|
Loading…
Reference in New Issue