disablevanillavehicles_1520dlc/res/models/model/vehicle/bus/et13.mdl

340 lines
8.0 KiB
Plaintext
Executable File

local vec3 = require "vec3"
local transf = require "transf"
function data()
return {
boundingInfo = {
bbMax = {
2.3890039920807, 0.93712097406387, 2.6325719356537,
},
bbMin = {
-3.0820770263672, -0.93712097406387, -0.43434798717499,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/bus/et13/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/bus/et13/lod_2_body_window.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_2_door.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.4272, -0.747, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_2_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.61, 0, 0.4418, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_2_w2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.8108, -0.6154, 0.4418, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_2_w2.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1.8108, 0.6154, 0.4418, 1,
},
type = "MESH",
},
},
events = {
open_all_doors = {
},
close_all_doors = {
},
},
matConfigs = {
{
0, 0, 0,
0, 0, 0,
},
},
static = false,
visibleFrom = 200,
visibleTo = 750,
}, {
animations = {
},
children = {
{
id = "vehicle/bus/et13/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/bus/et13/lod_1_body_window.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_1_door.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.4272, -0.747, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_1_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.61, 0, 0.4418, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_1_w2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.8108, -0.6154, 0.4418, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_1_w2.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1.8108, 0.6154, 0.4418, 1,
},
type = "MESH",
}, {
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(.99,.99,.99),transf.degToRad( 0, 0, 0), vec3.new( 2.2286, -0.428, 0.8525)),
type = "MESH",
}, {
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(.99,.99,.99),transf.degToRad( 0, 0, 0), vec3.new( 2.2286, 0.428, 0.8525)),
type = "MESH",
},
},
events = {
open_all_doors = {
[3] = {
forward = true,
name = "opend",
},
},
close_all_doors = {
[3] = {
forward = false,
name = "opend",
},
},
},
matConfigs = {
{
0, 0, 0,
0, 0, 0,
0, 0, 0,
},
},
static = false,
visibleFrom = 50,
visibleTo = 200,
}, {
animations = {
},
children = {
{
id = "vehicle/bus/et13/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/bus/et13/lod_0_body_window.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_0_door.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.4272, -0.747, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_0_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.61, 0, 0.4418, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_0_w2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.8108, -0.6154, 0.4418, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/et13/lod_0_w2.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1.8108, 0.6154, 0.4418, 1,
},
type = "MESH",
}, {
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(.99,.99,.99),transf.degToRad( 0, 0, 0), vec3.new( 2.2286, -0.428, 0.8525)),
type = "MESH",
}, {
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(.99,.99,.99),transf.degToRad( 0, 0, 0), vec3.new( 2.2286, 0.428, 0.8525)),
type = "MESH",
},{
id = "vehicle/bus/et13/lod_0_logo_body_window.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},
},
events = {
open_all_doors = {
[3] = {
forward = true,
name = "opend",
},
},
close_all_doors = {
[3] = {
forward = false,
name = "opend",
},
},
},
matConfigs = {
{
0, 0, 0,
0, 0, 0,
0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 50,
},
},
metadata = {
description = {
name = _("Postbus ET 13"),
description = _("The ET 13 was a commonly used motor-driven bus, built in Austria.")
},
roadVehicle = {
topSpeed = 25,
weight = 4,
power = 20,
tractiveEffort = 6,
configs = {
{
wheels = {
"vehicle/bus/et13/lod_2_w2.msh",
},
axles = {
"vehicle/bus/et13/lod_2_w1.msh"
},
fakeBogies = { { group = 0, position = 0.0, offset = 0.0 } }
},{
wheels = {
"vehicle/bus/et13/lod_1_w2.msh",
},
axles = {
"vehicle/bus/et13/lod_1_w1.msh"
},
fakeBogies = { { group = 0, position = 0.0, offset = 0.0 } }
},{
wheels = {
"vehicle/bus/et13/lod_0_w2.msh",
},
axles = {
"vehicle/bus/et13/lod_0_w1.msh"
},
fakeBogies = { { group = 0, position = 0.0, offset = 0.0 } }
}
},
soundSet = "bus_old"
},
transportVehicle = {
carrier = "ROAD",
capacities = {
{ type = "PASSENGERS", capacity = 32 }
},
loadSpeed = 1.5,
seats = {
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.24, 0.28, 0.7)), crew = true},
--passangers
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.6, 0.34, 0.7))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.6, -0.2, 0.7))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.25, 0.34, 0.7))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.25, -0.2, 0.7))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.94, 0.34, 0.7))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.94, -0.2, 0.7))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.68, 0.34, 0.7))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.68, -0.2, 0.7))},
}
},
availability = {
yearFrom = 1905,
yearTo = 1956
},
cost = {
price = -1
},
maintenance = {
runningCosts = -1,
lifespan = 30
}
},
}
end