520 lines
14 KiB
Plaintext
Executable File
520 lines
14 KiB
Plaintext
Executable File
local vec3 = require "vec3"
|
|
local transf = require "transf"
|
|
|
|
function data()
|
|
return {
|
|
boundingInfo = {
|
|
bbMax = {
|
|
5.2589540481567, 1.2951840162277, 2.7318749427795,
|
|
},
|
|
bbMin = {
|
|
-5.056736946106, -1.2951840162277, -0.4757179915905,
|
|
},
|
|
|
|
},
|
|
collider = {
|
|
params = {
|
|
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
lods = {
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/bus/man_sl_192/lod_2_body.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_2_d1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 4.7532, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_2_d2.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.5112, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_2_d3.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.4827, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_2_d4.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.7247, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_2_w1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.7542, -0.9308, 0.4703, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_2_w1.msh",
|
|
transf = {
|
|
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 2.7542, 0.9308, 0.4703, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_2_w2.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -2.3694, 0, 0.4703, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
},
|
|
events = {
|
|
close_all_doors = {
|
|
[2] = {
|
|
forward = false,
|
|
name = "opend1",
|
|
},
|
|
[3] = {
|
|
forward = false,
|
|
name = "opend2",
|
|
},
|
|
[4] = {
|
|
forward = false,
|
|
name = "opend3",
|
|
},
|
|
[5] = {
|
|
forward = false,
|
|
name = "opend4",
|
|
},
|
|
},
|
|
open_all_doors = {
|
|
[2] = {
|
|
forward = true,
|
|
name = "opend1",
|
|
},
|
|
[3] = {
|
|
forward = true,
|
|
name = "opend2",
|
|
},
|
|
[4] = {
|
|
forward = true,
|
|
name = "opend3",
|
|
},
|
|
[5] = {
|
|
forward = true,
|
|
name = "opend4",
|
|
},
|
|
},
|
|
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 220,
|
|
visibleTo = 990,
|
|
|
|
},
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/bus/man_sl_192/lod_1_body.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_1_d1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 4.7532, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_1_d2.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.5112, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_1_d3.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.4827, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_1_d4.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.7247, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_1_w1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.7542, -0.9308, 0.4703, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_1_w1.msh",
|
|
transf = {
|
|
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 2.7542, 0.9308, 0.4703, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_1_w2.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -2.3694, 0, 0.4703, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
},
|
|
events = {
|
|
close_all_doors = {
|
|
[2] = {
|
|
forward = false,
|
|
name = "opend1",
|
|
},
|
|
[3] = {
|
|
forward = false,
|
|
name = "opend2",
|
|
},
|
|
[4] = {
|
|
forward = false,
|
|
name = "opend3",
|
|
},
|
|
[5] = {
|
|
forward = false,
|
|
name = "opend4",
|
|
},
|
|
},
|
|
open_all_doors = {
|
|
[2] = {
|
|
forward = true,
|
|
name = "opend1",
|
|
},
|
|
[3] = {
|
|
forward = true,
|
|
name = "opend2",
|
|
},
|
|
[4] = {
|
|
forward = true,
|
|
name = "opend3",
|
|
},
|
|
[5] = {
|
|
forward = true,
|
|
name = "opend4",
|
|
},
|
|
},
|
|
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 120,
|
|
visibleTo = 220,
|
|
|
|
},
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/bus/man_sl_192/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/bus/man_sl_192/lod_0_d1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 4.7532, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_0_d2.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.5112, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_0_d3.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.4827, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_0_d4.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.7247, -1.1135, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_0_w1.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.7542, -0.9308, 0.4703, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_0_w1.msh",
|
|
transf = {
|
|
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 2.7542, 0.9308, 0.4703, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/bus/man_sl_192/lod_0_w2.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -2.3694, 0, 0.4703, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
-- Interior ------------------------
|
|
{
|
|
id = "vehicle/bus/man_sl_192/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/asset/lod_0_light_round_white.msh",
|
|
--manual lights
|
|
transf = transf.scaleRotZYXTransl(vec3.new(1.0,0.8,0.8),transf.degToRad( -7.0, 0.0, 0.0), vec3.new( 4.968, -0.897, 0.77)),
|
|
type = "MESH",
|
|
},
|
|
|
|
{
|
|
id = "vehicle/asset/lod_0_light_round_white.msh",
|
|
--manual lights
|
|
transf = transf.scaleRotZYXTransl(vec3.new(1.0,0.8,0.8),transf.degToRad( 7.0, 0.0, 0.0), vec3.new( 4.965, 0.92, 0.77)),
|
|
type = "MESH",
|
|
},
|
|
|
|
{
|
|
id = "vehicle/asset/lod_0_light_round_red.msh",
|
|
--manual lights
|
|
transf = transf.scaleRotZYXTransl(vec3.new(1.0,0.4,0.4),transf.degToRad( 180.0, 0.0, 0.0), vec3.new( -5.057, 0.871, 1.066)),
|
|
type = "MESH",
|
|
},
|
|
|
|
{
|
|
id = "vehicle/asset/lod_0_light_round_red.msh",
|
|
--manual lights
|
|
transf = transf.scaleRotZYXTransl(vec3.new(1.0,0.4,0.4),transf.degToRad( 180.0, 0.0, 0.0), vec3.new( -5.057, -0.903, 1.066)),
|
|
type = "MESH",
|
|
},{
|
|
id = "vehicle/bus/man_sl_192/lod_0_logo_body.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
|
|
|
|
},
|
|
events = {
|
|
close_all_doors = {
|
|
[2] = {
|
|
forward = false,
|
|
name = "opend1",
|
|
},
|
|
[3] = {
|
|
forward = false,
|
|
name = "opend2",
|
|
},
|
|
[4] = {
|
|
forward = false,
|
|
name = "opend3",
|
|
},
|
|
[5] = {
|
|
forward = false,
|
|
name = "opend4",
|
|
},
|
|
},
|
|
open_all_doors = {
|
|
[2] = {
|
|
forward = true,
|
|
name = "opend1",
|
|
},
|
|
[3] = {
|
|
forward = true,
|
|
name = "opend2",
|
|
},
|
|
[4] = {
|
|
forward = true,
|
|
name = "opend3",
|
|
},
|
|
[5] = {
|
|
forward = true,
|
|
name = "opend4",
|
|
},
|
|
},
|
|
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 0,
|
|
visibleTo = 120,
|
|
|
|
},
|
|
},
|
|
metadata = {
|
|
description = {
|
|
name = _("MAN SL 192"),
|
|
description = _("Standard public transport bus, built in big numbers.")
|
|
},
|
|
roadVehicle = {
|
|
topSpeed = 80,
|
|
weight = 16,
|
|
power = 141,
|
|
tractiveEffort = 20,
|
|
configs = {
|
|
{
|
|
axles = { "vehicle/bus/man_sl_192/lod_2_w2.msh" },
|
|
wheels = { "vehicle/bus/man_sl_192/lod_2_w1.msh" },
|
|
fakeBogies = { { group = 0, position = 0, offset = 0 } }
|
|
},
|
|
{
|
|
axles = { "vehicle/bus/man_sl_192/lod_1_w2.msh" },
|
|
wheels = { "vehicle/bus/man_sl_192/lod_1_w1.msh" },
|
|
fakeBogies = { { group = 0, position = 0, offset = 0 } }
|
|
},
|
|
{
|
|
axles = { "vehicle/bus/man_sl_192/lod_0_w2.msh" },
|
|
wheels = { "vehicle/bus/man_sl_192/lod_0_w1.msh" },
|
|
fakeBogies = { { group = 0, position = 0, offset = 0 } }
|
|
}
|
|
},
|
|
soundSet = { name = "bus_modern", horn = "vehicle/truck_modern/horn.wav" }
|
|
},
|
|
transportVehicle = {
|
|
carrier = "ROAD",
|
|
capacities = {
|
|
{
|
|
type = "PASSENGERS",
|
|
capacity = 64,
|
|
}
|
|
},
|
|
loadSpeed = 3,
|
|
seats = {
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.9, 0.5, 0.4)), crew = true },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.0268, -0.8, 0.65)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.0268, 0.3654, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.0268, 0.7, 0.6)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(2.4554, -0.7, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(2.4554, -0.4124, 0.65)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(2.4554, 0.3654, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(2.4554, 0.7, 0.65)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.4537, -0.8, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.4537, -0.4124, 0.65)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.4537, 0.3654, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.4537, 0.7, 0.65)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.6672, -0.8, 0.5)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.6672, -0.4124, 0.65)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.6672, 0.3654, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.6672, 0.7, 0.65)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.1193, -0.8, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.1193, -0.4124, 0.65)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.1193, 0.3654, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.1193, 0.7, 0.65)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-2.2618, -0.7, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-2.2618, -0.4124, 0.65)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-2.2618, 0.3654, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-2.2618, 0.7, 0.65)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-3.2634, -0.8, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-3.2634, -0.4124, 0.65)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-3.2634, 0.3654, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-3.2634, 0.7, 0.65)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-4.05, -0.8, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-4.05, -0.4124, 0.65)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-4.05, 0.3654, 0.65)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-4.05, 0.7, 0.65)) },
|
|
}
|
|
},
|
|
availability = {
|
|
yearFrom = 1970,
|
|
yearTo = 1976
|
|
},
|
|
cost = {
|
|
price = -1
|
|
},
|
|
maintenance = {
|
|
runningCosts = -1,
|
|
lifespan = 35
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
end
|