230 lines
4.6 KiB
Plaintext
Executable File
230 lines
4.6 KiB
Plaintext
Executable File
local vec3 = require "vec3"
|
|
local transf = require "transf"
|
|
|
|
function data()
|
|
return {
|
|
boundingInfo = {
|
|
bbMax = {
|
|
9.5686473846436, 1.3927730321884, 5.8968467712402,
|
|
},
|
|
bbMin = {
|
|
-9.1911715698242, -1.3927730321884, -0.55368798971176,
|
|
},
|
|
|
|
},
|
|
collider = {
|
|
params = {
|
|
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
lods = {
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/train/re_450_lod_2_front_bogie.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -5.1392, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
}, {
|
|
id = "vehicle/train/re_450_lod_2_front_bogie.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.3955, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
},{
|
|
id = "vehicle/train/re_450_lod_2_front.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
},
|
|
},
|
|
events = {
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 300,
|
|
visibleTo = 1990,
|
|
|
|
},
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/train/re_450_lod_1_front_bogie.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -5.1392, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
}, {
|
|
id = "vehicle/train/re_450_lod_1_front_bogie.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.3955, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
},{
|
|
id = "vehicle/train/re_450_lod_1_front.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
},
|
|
},
|
|
events = {
|
|
open_all_doors = {
|
|
[3] = { name = "open_doors", forward = true },
|
|
},
|
|
close_all_doors = {
|
|
[3] = { name = "open_doors", forward = false },
|
|
},
|
|
open_doors_left = {
|
|
[3] = { name = "open_doors", forward = true },
|
|
},
|
|
close_doors_left = {
|
|
[3] = { name = "open_doors", forward = false },
|
|
},
|
|
open_doors_right = {
|
|
[3] = { name = "open_doors", forward = true },
|
|
},
|
|
close_doors_right = {
|
|
[3] = { name = "open_doors", forward = false },
|
|
},
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 100,
|
|
visibleTo = 300,
|
|
|
|
},
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/train/re_450_lod_0_front_bogie.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -5.1392, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
}, {
|
|
id = "vehicle/train/re_450_lod_0_front_bogie.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.3955, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
}, {
|
|
id = "vehicle/train/re_450_lod_0_front.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
},
|
|
},
|
|
events = {
|
|
open_all_doors = {
|
|
[3] = { name = "open_doors", forward = true },
|
|
},
|
|
close_all_doors = {
|
|
[3] = { name = "open_doors", forward = false },
|
|
},
|
|
open_doors_left = {
|
|
[3] = { name = "open_doors", forward = true },
|
|
},
|
|
close_doors_left = {
|
|
[3] = { name = "open_doors", forward = false },
|
|
},
|
|
open_doors_right = {
|
|
[3] = { name = "open_doors", forward = true },
|
|
},
|
|
close_doors_right = {
|
|
[3] = { name = "open_doors", forward = false },
|
|
},
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 0,
|
|
visibleTo = 100,
|
|
|
|
},
|
|
},
|
|
metadata = {
|
|
railVehicle = {
|
|
topSpeed = 130,
|
|
weight = 74,
|
|
engines = {
|
|
{ type = "ELECTRIC", power = 3200, tractiveEffort = 240 }
|
|
},
|
|
configs = {
|
|
{
|
|
axles = {
|
|
"vehicle/train/re_450/lod_2_w1.msh",
|
|
}
|
|
},
|
|
{
|
|
axles = {
|
|
"vehicle/train/re_450/lod_1_w1.msh",
|
|
}
|
|
},
|
|
{
|
|
axles = {
|
|
"vehicle/train/re_450/lod_0_w1.msh",
|
|
}
|
|
}
|
|
},
|
|
soundSet = { name = "train_electric_modern", horn = "vehicle/train_electric_modern/horn_21_intercity125.wav" }
|
|
},
|
|
transportVehicle = {
|
|
carrier = "RAIL",
|
|
multipleUnitOnly = true,
|
|
seats = {
|
|
-- driver
|
|
{ group =9, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(7.8, .6, 1.4)), crew = true, standing = false},
|
|
},
|
|
},
|
|
availability = {
|
|
yearFrom = 3000,
|
|
yearTo = 3000
|
|
},
|
|
cost = {
|
|
price = -1
|
|
},
|
|
maintenance = {
|
|
runningCosts = -1,
|
|
lifespan = 50
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
end
|