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

159 lines
3.5 KiB
Plaintext
Executable File

local vec3 = require "vec3"
local transf = require "transf"
function data()
return {
boundingInfo = {
bbMax = {
8.4321479797363, 1.5827790498734, 4.6462259292603,
},
bbMin = {
-8.4321479797363, -1.5827790498734, -0.57415497303009,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/train/br_218/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/br_218_lod_0_bogie.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 4.4806, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/train/br_218_lod_0_bogie.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -4.4806, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/train/br_218/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/br_218/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.3,1.3),transf.degToRad( 19.0, 7.5, 0.0), vec3.new( 7.865, 0.98, 1.92)),
type = "MESH",
},
{
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(1.0,1.3,1.3),transf.degToRad( -19.0, 7.5, 0.0), vec3.new( 7.865, -0.98, 1.92)),
type = "MESH",
},
{
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(1.0,0.9,0.9),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 7.56, 0.0, 3.875)),
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 1640,
},
},
metadata = {
description = {
name = _("Class 218"),
description = _("A diesel-hydraulic locomotive from Germany built for medium to heavy trains.")
},
railVehicle = {
topSpeed = 140,
weight = 80,
engines = {
{ type = "DIESEL", power = 2500, tractiveEffort = 235 }
},
configs = {
{
axles = {
"vehicle/train/br_218/lod_0_w1.msh",
}
}
},
soundSet = { name = "train_diesel", horn = "vehicle/train_electric_modern/horn_2.wav" }
},
transportVehicle = {
carrier = "RAIL",
seats = {
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(6.4, -.81, 1.91)), crew = true, standing = false},
},
},
availability = {
yearFrom = 3000,
yearTo = 3000
},
cost = {
price = -1
},
maintenance = {
runningCosts = -1,
lifespan = 40
},
particleSystem = {
emitters = {
{
position = {2.6121, -0.4018, 4.605 },
velocity = { .0, .0, 4.0 },
color = { .1, .1, .1 },
frequency = 30,
lifeTime = 1.0,
size01 = { .2, 4.0 },
child = 1
},
{
position = {2.6121, 0.4018, 4.605 },
velocity = { .0, .0, 4.0 },
color = { .1, .1, .1 },
frequency = 30,
lifeTime = 1.0,
size01 = { .2, 4.0 },
child = 1
},
}
}
},
}
end