disablevanillavehicles_1520dlc/res/models/model/vehicle/train/nohab.mdl

150 lines
3.4 KiB
Plaintext
Executable File

local vec3 = require "vec3"
local transf = require "transf"
function data()
return {
boundingInfo = {
bbMax = {
9.785943031311, 1.6869109869003, 4.4580950737,
},
bbMin = {
-9.785943031311, -1.6869109869003, -0.63750797510147,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/train/nohab_lod_0_bogie.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.3174, 0, 0, 1,
},
type = "GROUP",
},{
id = "vehicle/train/nohab_lod_0_bogie.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -5.3174, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/train/nohab/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/train/nohab/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/train/nohab/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/train/nohab/lod_0_logos.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},
{
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(1.0,1.35,1.35),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 9.05, 1.153, 2.13)),
type = "MESH",
},{
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(1.0,1.35,1.35),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 9.05, -1.153, 2.13)),
type = "MESH",
}, {
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(1.0,1.35,1.35),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 9.05, 0, 3.13)),
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0,
0, 0, 0,
0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 1740,
},
},
metadata = {
description = {
name = _("NoHAB AA16"),
description = _("This diesel-electric locomotive was a European variant of the American F-series from GM.")
},
railVehicle = {
topSpeed = 120,
weight = 108,
engines = {
{ type = "DIESEL", power = 1450, tractiveEffort = 200 }
},
configs = {
{
axles = {
"vehicle/train/nohab/lod_0_w1.msh",
"vehicle/train/nohab/lod_0_w1.msh",
"vehicle/train/nohab/lod_0_w1.msh",
"vehicle/train/nohab/lod_0_w1.msh",
"vehicle/train/nohab/lod_0_w1.msh",
}
}
},
soundSet = { name = "train_diesel", horn = "vehicle/train_diesel/horn_13_freight.wav" }
},
transportVehicle = {
carrier = "RAIL",
seats = {
{ group =11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(6.8, .9, 2.22)), crew = true, standing = false},
},
},
availability = {
yearFrom = 3000,
yearTo = 3000
},
cost = {
price = -1
},
maintenance = {
runningCosts = -1,
lifespan = 40
},
},
}
end