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

204 lines
4.5 KiB
Plaintext
Executable File

local vec3 = require "vec3"
local transf = require "transf"
function data()
return {
boundingInfo = {
bbMax = {
4.1387271881104, 1.4581869840622, 4.1176562309265,
},
bbMin = {
-4.4749689102173, -1.4581869840622, -0.62410598993301,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/train/br89/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/br89/lod_0_g1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.5517, 0, 0.5479, 1,
},
type = "MESH",
}, {
id = "vehicle/train/br89/lod_0_g2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.0158, 0, 0.2894, 1,
},
type = "MESH",
}, {
id = "vehicle/train/br89/lod_0_g3.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.0158, 0, 0.2872, 1,
},
type = "MESH",
}, {
id = "vehicle/train/br89/lod_0_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.6487, 0, 0.5522, 1,
},
type = "MESH",
}, {
id = "vehicle/train/br89/lod_0_w2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.0158, 0, 0.5522, 1,
},
type = "MESH",
}, {
id = "vehicle/train/br89/lod_0_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.3121, 0, 0.5522, 1,
},
type = "MESH",
},{
id = "vehicle/train/br89/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.2,1.2),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 3.23, 0.0, 2.68)),
type = "MESH",
},
{
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(1.0,2.0,2.0),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 3.58, -0.915, 1.55)),
type = "MESH",
},
{
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(1.0,2.0,2.0),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 3.58, 0.915, 1.55)),
type = "MESH",
},
},
events = {
drive = {
[2] = {
forward = true,
name = "drive",
},
[3] = {
forward = true,
name = "drive",
},
[4] = {
forward = true,
name = "drive",
}
},
},
matConfigs = {
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 1170,
},
},
metadata = {
description = {
name = _("Class 89 Prussian T 3"),
description = _("As a 0-6-0 tank locomotive, it was the first that was built to German state railway norms.")
},
railVehicle = {
topSpeed = 40,
weight = 30,
engines = {
{ type = "STEAM", power = 290, tractiveEffort = 65 }
},
configs = {
{
axles = {
"vehicle/train/br89/lod_0_w1.msh",
"vehicle/train/br89/lod_0_w2.msh",
}
}
},
soundSet = { name = "train_steam_old", horn = "vehicle/train_steam_old/steam_horn_3.wav" }
},
transportVehicle = {
carrier = "RAIL",
seats = {
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.2, -.8, 1.24)), crew = true, standing = true},
},
},
availability = {
yearFrom = 1885,
yearTo = 1932
},
cost = {
price = -1
},
maintenance = {
runningCosts = -1,
lifespan = 35
},
particleSystem = {
emitters = {
{
position = { 2.6552, .0, 4.1177},
velocity = { .0, .0, 10.0 },
color = { .3, .3, .3 },
frequency = 80,
lifeTime = 20.0,
size01 = { .8, 10.0 },
child = 1
},
{
position = { 2.2019, 1.1399, .0 },
velocity = { .0, 4.0, 0.0 },
color = { .3, .3, .3 },
frequency = 12,
lifeTime = 20.0,
size01 = { .8, 10.0 },
child = 1
},
{
position = { 2.2019, -1.1399, .0 },
velocity = { .0, -4.0, 0.0 },
color = { .3, .3, .3 },
frequency = 12,
lifeTime = 20.0,
size01 = { .8, 10.0 },
child = 1
}
}
}
},
}
end