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

380 lines
12 KiB
Plaintext
Executable File

local vec3 = require "vec3"
local transf = require "transf"
function data()
return {
boundingInfo = {
-- minus 1.9886
bbMax = {
10.151077047729, 1.4965599775314, 3.9383640289307,
},
bbMin = {
-8.915776983643, -1.4965599775314, -0.071776986122131,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
--[[
{
animations = {
},
children = {
{
id = "vehicle/train/tgv/tgv_lod_2_waggon_mid.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/train/tgv/tgv_lod_2_d1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 7.8803000450134, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/train/tgv/tgv_lod_2_d2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 7.8803000450134, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/train/tgv_lod_2_bogie2.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10.151000022888, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/train/tgv_lod_2_bogie2.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -8.9156999588013, 0, 0, 1,
},
type = "GROUP",
},
},
events = {
open_all_doors = {
[2] = { name = "opend1", forward = true },
[3] = { name = "opend2", forward = true },
},
close_all_doors = {
[2] = { name = "opend1", forward = false },
[3] = { name = "opend2", forward = false },
},
open_doors_left = {
[3] = { name = "opend2", forward = true },
},
close_doors_left = {
[3] = { name = "opend2", forward = false },
},
open_doors_right = {
[2] = { name = "opend1", forward = true },
},
close_doors_right = {
[2] = { name = "opend1", forward = false },
},
},
matConfigs = {
{
0, 0, 0, 0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 350,
visibleTo = 4000,
},
{
animations = {
},
children = {
{
id = "vehicle/train/tgv/tgv_lod_1_waggon_mid.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/train/tgv/tgv_lod_1_d1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 7.8803000450134, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/train/tgv/tgv_lod_1_d2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 7.8803000450134, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/train/tgv_lod_1_bogie2.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10.151000022888, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/train/tgv_lod_1_bogie2.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -8.9156999588013, 0, 0, 1,
},
type = "GROUP",
},
},
events = {
open_all_doors = {
[2] = { name = "opend1", forward = true },
[3] = { name = "opend2", forward = true },
},
close_all_doors = {
[2] = { name = "opend1", forward = false },
[3] = { name = "opend2", forward = false },
},
open_doors_left = {
[3] = { name = "opend2", forward = true },
},
close_doors_left = {
[3] = { name = "opend2", forward = false },
},
open_doors_right = {
[2] = { name = "opend1", forward = true },
},
close_doors_right = {
[2] = { name = "opend1", forward = false },
},
},
matConfigs = {
{
0, 0, 0, 0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 150,
visibleTo = 350,
},
]]--
{
animations = {
},
children = {
{
id = "vehicle/train/tgv/lod_0_waggon_mid.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/train/tgv/lod_0_d1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 7.8803000450134, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/train/tgv/lod_0_d2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 7.8803000450134, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/train/tgv_lod_0_bogie2.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10.151000022888, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/train/tgv_lod_0_bogie2.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -8.9156999588013, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/train/tgv/lod_0_interior_waggon_mid.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},
},
events = {
open_all_doors = {
[2] = { name = "opend1", forward = true },
[3] = { name = "opend2", forward = true },
},
close_all_doors = {
[2] = { name = "opend1", forward = false },
[3] = { name = "opend2", forward = false },
},
open_doors_left = {
[3] = { name = "opend2", forward = true },
},
close_doors_left = {
[3] = { name = "opend2", forward = false },
},
open_doors_right = {
[2] = { name = "opend1", forward = true },
},
close_doors_right = {
[2] = { name = "opend1", forward = false },
},
},
matConfigs = {
{
0, 0, 0, 0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 1820,
},
},
metadata = {
availability = {
yearFrom = 3000,
yearTo = 3000,
},
cost = {
price = -1,
},
maintenance = {
lifespan = 50,
runningCosts = -1,
},
railVehicle = {
configs = {
--[[
{
axles = {
"vehicle/train/tgv/tgv_lod_2_w1.msh",
}
},
{
axles = {
"vehicle/train/tgv/tgv_lod_1_w1.msh",
}
},
]]--
{
axles = {
"vehicle/train/tgv/lod_0_w1.msh",
}
}
},
engines = {
},
soundSet = {
horn = "",
name = "waggon_modern",
},
topSpeed = 300,
weight = 30,
},
transportVehicle = {
capacities = {
{
capacity = 92,
type = "PASSENGERS",
},
},
carrier = "RAIL",
loadSpeed = 1,
seats = {
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(3.9, -0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-200, 0.0, 0.0), vec3.new(3.9, -1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(3.9, 0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(200, 0.0, 0.0), vec3.new(3.9, 1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(2.8, -0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-200, 0.0, 0.0), vec3.new(2.8, -1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(2.8, 0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(200, 0.0, 0.0), vec3.new(2.8, 1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(0.6, 0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-20, 0.0, 0.0), vec3.new(0.6, 1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(0.6, -0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(20, 0.0, 0.0), vec3.new(0.6, -1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(1.6, -0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-200, 0.0, 0.0), vec3.new(1.6, -1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(1.6, 0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(200, 0.0, 0.0), vec3.new(1.6, 1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(-1.5, 0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-20, 0.0, 0.0), vec3.new(-1.5, 1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(-1.5, -0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(20, 0.0, 0.0), vec3.new(-1.5, -1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(-.4, 0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-20, 0.0, 0.0), vec3.new(-.4, 1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(-.4, -0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(20, 0.0, 0.0), vec3.new(-.4, -1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(-3.5, 0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-20, 0.0, 0.0), vec3.new(-3.5, 1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(-3.5, -0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(20, 0.0, 0.0), vec3.new(-3.5, -1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(-2.6, -0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-200, 0.0, 0.0), vec3.new(-2.6, -1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(-2.6, 0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(200, 0.0, 0.0), vec3.new(-2.6, 1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(-5.5, 0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-20, 0.0, 0.0), vec3.new(-5.5, 1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(-5.5, -0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(20, 0.0, 0.0), vec3.new(-5.5, -1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(-4.6, -0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-200, 0.0, 0.0), vec3.new(-4.6, -1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(-4.6, 0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(200, 0.0, 0.0), vec3.new(-4.6, 1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(4.9, 0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-20, 0.0, 0.0), vec3.new(4.9, 1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0, 0.0, 0.0), vec3.new(4.9, -0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(20, 0.0, 0.0), vec3.new(4.9, -1.2, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(5.85, -0.5, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(-200, 0.0, 0.0), vec3.new(5.85, -1, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180, 0.0, 0.0), vec3.new(5.85, 0.7, 1)), },
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(200, 0.0, 0.0), vec3.new(5.85, 1.2, 1)), },
},
multipleUnitOnly = true
},
},
}
end