352 lines
10 KiB
Plaintext
Executable File
352 lines
10 KiB
Plaintext
Executable File
local vec3 = require "vec3"
|
|
local transf = require "transf"
|
|
function data()
|
|
return {
|
|
boundingInfo = {
|
|
bbMax = {
|
|
4.2660808563232, 1.4711810350418, 3.5781519412994,
|
|
},
|
|
bbMin = {
|
|
-4.2660808563232, -1.4711810350418, -0.55456000566483,
|
|
},
|
|
|
|
},
|
|
collider = {
|
|
params = {
|
|
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
lods = {
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_2_body.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_2_d1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.9509, 0.4053, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_2_d1.msh",
|
|
transf = {
|
|
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -2.9509, -0.4053, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_2_w1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.8019, 0, 0.5068, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_2_w1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.8019, 0, 0.5068, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
},
|
|
events = {
|
|
open_all_doors = {
|
|
[2] = { name = "opend1", forward = true },
|
|
[3] = { name = "opend1", forward = true },
|
|
},
|
|
close_all_doors = {
|
|
[2] = { name = "opend1", forward = false },
|
|
[3] = { name = "opend1", forward = false },
|
|
},
|
|
open_doors_left = {
|
|
[2] = { name = "opend1", forward = true },
|
|
[3] = { name = "opend1", forward = true },
|
|
},
|
|
close_doors_left = {
|
|
[2] = { name = "opend1", forward = false },
|
|
[3] = { name = "opend1", forward = false },
|
|
},
|
|
open_doors_right = {
|
|
[2] = { name = "opend1", forward = true },
|
|
[3] = { name = "opend1", forward = true },
|
|
},
|
|
close_doors_right = {
|
|
[2] = { name = "opend1", forward = false },
|
|
[3] = { name = "opend1", forward = false },
|
|
},
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 220,
|
|
visibleTo = 1070,
|
|
|
|
},
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_1_body.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_1_d1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.9509, 0.4053, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_1_d1.msh",
|
|
transf = {
|
|
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -2.9509, -0.4053, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_1_w1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.8019, 0, 0.5068, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_1_w1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.8019, 0, 0.5068, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
},
|
|
events = {
|
|
open_all_doors = {
|
|
[2] = { name = "opend1", forward = true },
|
|
[3] = { name = "opend1", forward = true },
|
|
},
|
|
close_all_doors = {
|
|
[2] = { name = "opend1", forward = false },
|
|
[3] = { name = "opend1", forward = false },
|
|
},
|
|
open_doors_left = {
|
|
[2] = { name = "opend1", forward = true },
|
|
[3] = { name = "opend1", forward = true },
|
|
},
|
|
close_doors_left = {
|
|
[2] = { name = "opend1", forward = false },
|
|
[3] = { name = "opend1", forward = false },
|
|
},
|
|
open_doors_right = {
|
|
[2] = { name = "opend1", forward = true },
|
|
[3] = { name = "opend1", forward = true },
|
|
},
|
|
close_doors_right = {
|
|
[2] = { name = "opend1", forward = false },
|
|
[3] = { name = "opend1", forward = false },
|
|
},
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 120,
|
|
visibleTo = 220,
|
|
|
|
},
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_0_body.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_0_d1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.9509, 0.4053, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_0_d1.msh",
|
|
transf = {
|
|
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -2.9509, -0.4053, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_0_w1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.8019, 0, 0.5068, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_0_w1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.8019, 0, 0.5068, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_0_interior.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/waggon/wagen_bayrisch_1865/lod_0_logos.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
},
|
|
events = {
|
|
open_all_doors = {
|
|
[2] = { name = "opend1", forward = true },
|
|
[3] = { name = "opend1", forward = true },
|
|
},
|
|
close_all_doors = {
|
|
[2] = { name = "opend1", forward = false },
|
|
[3] = { name = "opend1", forward = false },
|
|
},
|
|
open_doors_left = {
|
|
[2] = { name = "opend1", forward = true },
|
|
[3] = { name = "opend1", forward = true },
|
|
},
|
|
close_doors_left = {
|
|
[2] = { name = "opend1", forward = false },
|
|
[3] = { name = "opend1", forward = false },
|
|
},
|
|
open_doors_right = {
|
|
[2] = { name = "opend1", forward = true },
|
|
[3] = { name = "opend1", forward = true },
|
|
},
|
|
close_doors_right = {
|
|
[2] = { name = "opend1", forward = false },
|
|
[3] = { name = "opend1", forward = false },
|
|
},
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 0,
|
|
visibleTo = 120,
|
|
|
|
},
|
|
},
|
|
metadata = {
|
|
description = {
|
|
name = _("Bavarian car"),
|
|
description = _("Two-axle coach with open platforms on both sides.")
|
|
},
|
|
railVehicle = {
|
|
topSpeed = 50,
|
|
weight = 7,
|
|
configs = {
|
|
{
|
|
axles = { "vehicle/waggon/wagen_bayrisch_1865/lod_2_w1.msh" }
|
|
},
|
|
{
|
|
axles = { "vehicle/waggon/wagen_bayrisch_1865/lod_1_w1.msh" }
|
|
},
|
|
{
|
|
axles = { "vehicle/waggon/wagen_bayrisch_1865/lod_0_w1.msh" }
|
|
}
|
|
},
|
|
soundSet = "waggon_old"
|
|
},
|
|
transportVehicle = {
|
|
capacities = {
|
|
{ type = "PASSENGERS", capacity = 30 }
|
|
},
|
|
carrier = "RAIL",
|
|
loadSpeed = 2,
|
|
seats = {
|
|
--passangers
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(20.0, 0.0, 0.0), vec3.new(-2.65, -1.1, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.65, -0.65, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-20.0, 0.0, 0.0), vec3.new(-2.65, 0.9, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.65, 0.5, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(200.0, 0.0, 0.0), vec3.new(-1.55, 1.1, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-1.55, 0.65, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-190.0, 0.0, 0.0), vec3.new(-1.55, -0.9, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-1.55, -0.5, 1.1))},
|
|
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(20.0, 0.0, 0.0), vec3.new(-1.05, -1.1, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.05, -0.65, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-20.0, 0.0, 0.0), vec3.new(-1.05, 0.9, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.05, 0.5, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(200.0, 0.0, 0.0), vec3.new(-0.1, 1.1, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-0.1, 0.65, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-190.0, 0.0, 0.0), vec3.new(-0.1, -0.9, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-0.1, -0.5, 1.1))},
|
|
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(20.0, 0.0, 0.0), vec3.new(.4, -1.1, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(.4, -0.65, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-20.0, 0.0, 0.0), vec3.new(.4, 0.9, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(.4, 0.5, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(200.0, 0.0, 0.0), vec3.new(1.45, 1.1, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(1.45, 0.65, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-190.0, 0.0, 0.0), vec3.new(1.45, -0.9, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(1.45, -0.5, 1.1))},
|
|
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(20.0, 0.0, 0.0), vec3.new(1.9, -1.1, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.9, -0.65, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-20.0, 0.0, 0.0), vec3.new(1.9, 0.9, 1.1))},
|
|
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.9, 0.5, 1.1))},
|
|
|
|
|
|
|
|
}
|
|
},
|
|
availability = {
|
|
yearFrom = 3000,
|
|
yearTo = 3000
|
|
},
|
|
cost = {
|
|
price = -1
|
|
},
|
|
maintenance = {
|
|
runningCosts = -1,
|
|
lifespan = 30
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
end
|