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

236 lines
5.0 KiB
Plaintext
Executable File

local vec3 = require "vec3"
local transf = require "transf"
function data()
return {
boundingInfo = {
bbMax = {
7.4868950843811, 1.5592080354691, 5.9032998085022,
},
bbMin = {
-7.4868950843811, -1.5592080354691, -0.54285299777985,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/train/re_44i/lod_2_re_44i.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/train/re_44i/lod_2_w.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.4563, 0, 0.4873, 1,
},
type = "MESH",
}, {
id = "vehicle/train/re_44i/lod_2_w.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.4907, 0, 0.4873, 1,
},
type = "MESH",
}, {
id = "vehicle/train/re_44i/lod_2_w.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -2.4563, 0, 0.4873, 1,
},
type = "MESH",
}, {
id = "vehicle/train/re_44i/lod_2_w.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -5.4907, 0, 0.4873, 1,
},
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0, 0
},
},
static = false,
visibleFrom = 340,
visibleTo = 1770,
}, {
animations = {
},
children = {
{
id = "vehicle/train/re_44i/lod_1_re_44i.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},{
id = "vehicle/train/re_44i_lod_1_bogie.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.9748, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/train/re_44i_lod_1_bogie.grp",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -3.9748, 0, 0, 1,
},
type = "GROUP",
},
},
events = {
},
matConfigs = {
{
0, 0, 0,
},
},
static = false,
visibleFrom = 200,
visibleTo = 340,
}, {
animations = {
},
children = {
{
id = "vehicle/train/re_44i/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/re_44i_lod_0_bogie.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.9748, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/train/re_44i_lod_0_bogie.grp",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -3.9748, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/train/re_44i/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/re_44i/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.1,1.1),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 6.77, -0.885, 1.455)),
type = "MESH",
},{
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(1.0,1.1,1.1),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 6.77, 0.885, 1.455)),
type = "MESH",
},{
id = "vehicle/asset/lod_0_light_round_white.msh",
--manual lights
transf = transf.scaleRotZYXTransl(vec3.new(1.0,1.0,1.0),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 6.815, 0.0, 3.235)),
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 200,
},
},
metadata = {
description = {
name = _("Re 4/4"),
description = _("A light-weight locomotive for fast passenger trains, the first in Switzerland equipped with bogies.")
},
railVehicle = {
topSpeed = 125,
weight = 57,
engines = {
{ type = "ELECTRIC", power = 1900, tractiveEffort = 135 }
},
configs = {
{
},{
axles = {
"vehicle/train/re_44i/lod_1_w.msh",
}
},{
axles = {
"vehicle/train/re_44i/lod_0_w1.msh",
}
}
},
soundSet = { name = "train_electric_old", horn = "vehicle/train_electric_modern/horn_16.wav" }
},
transportVehicle = {
carrier = "RAIL",
seats = {
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(5.5, .9, 1.25)), crew = true, standing = false},
},
},
availability = {
yearFrom = 3000,
yearTo = 3000
},
cost = {
price = -1
},
maintenance = {
runningCosts = -1,
lifespan = 55
}
},
}
end