2022-06-14 01:11:20 +02:00
|
|
|
local box_slope = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
|
|
|
{-0.5, -0.25, -0.25, 0.5, 0, 0.5},
|
|
|
|
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
|
|
|
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope", {
|
|
|
|
name_format = "slope_%s",
|
|
|
|
description = "@1 Slope",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 4,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope,
|
|
|
|
selection_box = box_slope,
|
|
|
|
})
|
|
|
|
|
|
|
|
local box_slope_half = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
|
|
|
{-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
|
|
|
|
{-0.5, -0.25, 0, 0.5, -0.125, 0.5},
|
|
|
|
{-0.5, -0.125, 0.25, 0.5, 0, 0.5},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_half", {
|
|
|
|
name_format = "slope_%s_half",
|
|
|
|
description = "@1 1/2 Slope",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 2,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_half.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_half,
|
|
|
|
selection_box = box_slope_half,
|
|
|
|
})
|
|
|
|
|
|
|
|
local box_slope_half_raised = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
|
|
|
{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5},
|
|
|
|
{-0.5, 0.25, 0, 0.5, 0.375, 0.5},
|
|
|
|
{-0.5, 0.375, 0.25, 0.5, 0.5, 0.5},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_half_raised", {
|
|
|
|
name_format = "slope_%s_half_raised",
|
|
|
|
description = "@1 1/2 Slope Raised",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 6,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_half_raised.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_half_raised,
|
|
|
|
selection_box = box_slope_half_raised,
|
|
|
|
})
|
|
|
|
|
|
|
|
local box_slope_inner = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
|
|
|
{-0.5, -0.5, -0.25, 0.5, 0, 0.5},
|
|
|
|
{-0.5, -0.5, -0.5, 0.25, 0, 0.5},
|
|
|
|
{-0.5, 0, -0.5, 0, 0.25, 0.5},
|
|
|
|
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
|
|
|
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5},
|
|
|
|
{-0.5, 0.25, -0.5, -0.25, 0.5, 0.5},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_inner", {
|
|
|
|
name_format = "slope_%s_inner",
|
|
|
|
description = "@1 Slope Inner",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 6,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_inner.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_inner,
|
|
|
|
selection_box = box_slope_inner,
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_inner_cut", {
|
|
|
|
name_format = "slope_%s_inner_cut",
|
|
|
|
description = "@1 Slope Inner Cut",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 6,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_inner_cut.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_inner,
|
|
|
|
selection_box = box_slope_inner,
|
|
|
|
})
|
|
|
|
|
|
|
|
local box_slope_inner_half = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
|
|
|
{-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
|
|
|
|
{-0.5, -0.375, -0.5, 0.25, -0.25, 0.5},
|
|
|
|
{-0.5, -0.25, -0.5, 0, -0.125, 0.5},
|
|
|
|
{-0.5, -0.25, 0, 0.5, -0.125, 0.5},
|
|
|
|
{-0.5, -0.125, 0.25, 0.5, 0, 0.5},
|
|
|
|
{-0.5, -0.125, -0.5, -0.25, 0, 0.5},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_inner_half", {
|
|
|
|
name_format = "slope_%s_inner_half",
|
|
|
|
description = "@1 Slope Inner Half",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 3,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_inner_half.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_inner_half,
|
|
|
|
selection_box = box_slope_inner_half,
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_inner_cut_half", {
|
|
|
|
name_format = "slope_%s_inner_cut_half",
|
|
|
|
description = "@1 Slope Inner Cut Half",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 4,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_inner_cut_half.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_inner_half,
|
|
|
|
selection_box = box_slope_inner_half,
|
|
|
|
})
|
|
|
|
|
|
|
|
local box_slope_inner_half_raised = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
|
|
|
{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5},
|
|
|
|
{-0.5, 0.125, -0.5, 0.25, 0.25, 0.5},
|
|
|
|
{-0.5, 0.25, -0.5, 0, 0.375, 0.5},
|
|
|
|
{-0.5, 0.25, 0, 0.5, 0.375, 0.5},
|
|
|
|
{-0.5, 0.375, 0.25, 0.5, 0.5, 0.5},
|
|
|
|
{-0.5, 0.375, -0.5, -0.25, 0.5, 0.5},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_inner_half_raised", {
|
|
|
|
name_format = "slope_%s_inner_half_raised",
|
|
|
|
description = "@1 Slope Inner Half Raised",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 6,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_inner_half_raised.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_inner_half_raised,
|
|
|
|
selection_box = box_slope_inner_half_raised,
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_inner_cut_half_raised", {
|
|
|
|
name_format = "slope_%s_inner_cut_half_raised",
|
|
|
|
description = "@1 Slope Inner Cut Half Raised",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 7,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_inner_cut_half_raised.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_inner_half_raised,
|
|
|
|
selection_box = box_slope_inner_half_raised,
|
|
|
|
})
|
|
|
|
|
|
|
|
--==============================================================
|
|
|
|
|
|
|
|
local box_slope_outer = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
|
|
|
{-0.5, -0.25, -0.25, 0.25, 0, 0.5},
|
|
|
|
{-0.5, 0, 0, 0, 0.25, 0.5},
|
|
|
|
{-0.5, 0.25, 0.25, -0.25, 0.5, 0.5}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_outer", {
|
|
|
|
name_format = "slope_%s_outer",
|
|
|
|
description = "@1 Slope Outer",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 3,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_outer.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_outer,
|
|
|
|
selection_box = box_slope_outer,
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_outer_cut", {
|
|
|
|
name_format = "slope_%s_outer_cut",
|
|
|
|
description = "@1 Slope Outer Cut",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 2,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_outer_cut.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_outer,
|
|
|
|
selection_box = box_slope_outer,
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_cut", {
|
|
|
|
name_format = "slope_%s_cut",
|
|
|
|
description = "@1 Slope Cut",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 4,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_cut.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_outer,
|
|
|
|
selection_box = box_slope_outer,
|
|
|
|
})
|
|
|
|
|
|
|
|
local box_slope_outer_half = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
|
|
|
{-0.5, -0.375, -0.25, 0.25, -0.25, 0.5},
|
|
|
|
{-0.5, -0.25, 0, 0, -0.125, 0.5},
|
|
|
|
{-0.5, -0.125, 0.25, -0.25, 0, 0.5}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_outer_half", {
|
|
|
|
name_format = "slope_%s_outer_half",
|
|
|
|
description = "@1 Slope Outer Half",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 2,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_outer_half.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_outer_half,
|
|
|
|
selection_box = box_slope_outer_half,
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_outer_cut_half", {
|
|
|
|
name_format = "slope_%s_outer_cut_half",
|
|
|
|
description = "@1 Slope Outer Cut Half",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 1,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_outer_cut_half.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_outer_half,
|
|
|
|
selection_box = box_slope_outer_half,
|
|
|
|
})
|
|
|
|
|
|
|
|
local box_slope_outer_half_raised = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
|
|
|
{-0.5, 0.125, -0.25, 0.25, 0.25, 0.5},
|
|
|
|
{-0.5, 0.25, 0, 0, 0.375, 0.5},
|
|
|
|
{-0.5, 0.375, 0.25, -0.25, 0.5, 0.5}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_outer_half_raised", {
|
|
|
|
name_format = "slope_%s_outer_half_raised",
|
|
|
|
description = "@1 Slope Outer Half Raised",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 6,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_outer_half_raised.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_outer_half_raised,
|
|
|
|
selection_box = box_slope_outer_half_raised,
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slope_outer_cut_half_raised", {
|
|
|
|
name_format = "slope_%s_outer_cut_half_raised",
|
|
|
|
description = "@1 Slope Outer Cut Half Raised",
|
2022-06-14 20:17:06 +02:00
|
|
|
shape_groups = {slope = 1, common = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 3,
|
|
|
|
drawtype = "mesh",
|
2022-06-14 20:17:06 +02:00
|
|
|
mesh = "stairsplus_slope_outer_cut_half_raised.obj",
|
2022-06-14 01:11:20 +02:00
|
|
|
collision_box = box_slope_outer_half_raised,
|
|
|
|
selection_box = box_slope_outer_half_raised,
|
|
|
|
})
|