228 lines
6.5 KiB
Plaintext
Executable File
228 lines
6.5 KiB
Plaintext
Executable File
local vec3 = require "vec3"
|
|
local transf = require "transf"
|
|
|
|
function data()
|
|
return {
|
|
boundingInfo = {
|
|
bbMax = {
|
|
8.9517908096313, 1.4530000686646, 2.7877559661865,
|
|
},
|
|
bbMin = {
|
|
-7.8876490592957, -1.4271960258484, -0.0089289844036102,
|
|
},
|
|
|
|
},
|
|
collider = {
|
|
params = {
|
|
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
lods = {
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/bus/berkhof_duvedec_lod_0_back.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -4.6209001541138, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
}, {
|
|
id = "vehicle/bus/berkhof_duvedec_lod_0_front.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.1243999004364, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
|
|
},
|
|
},
|
|
events = {
|
|
close_all_doors = {
|
|
{
|
|
forward = false,
|
|
name = "open_all_doors",
|
|
|
|
}, {
|
|
forward = false,
|
|
name = "open_all_doors",
|
|
|
|
},
|
|
},
|
|
open_all_doors = {
|
|
{
|
|
forward = true,
|
|
name = "open_all_doors",
|
|
|
|
}, {
|
|
forward = true,
|
|
name = "open_all_doors",
|
|
|
|
},
|
|
},
|
|
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 0,
|
|
visibleTo = 1330,
|
|
|
|
},
|
|
},
|
|
metadata = {
|
|
availability = {
|
|
yearFrom = 3000,
|
|
yearTo = 3000,
|
|
|
|
},
|
|
cost = {
|
|
price = -1,
|
|
|
|
},
|
|
description = {
|
|
name = _("Berkhof Duvedec"),
|
|
description = _("Berkhof Duvedec received many good reviews of car owners for their consumer qualities."),
|
|
},
|
|
maintenance = {
|
|
lifespan = 35,
|
|
runningCosts = -1,
|
|
|
|
},
|
|
roadVehicle = {
|
|
configs = {
|
|
{
|
|
axles = {
|
|
"vehicle/bus/berkhof_duvedec/lod_0_w2.msh",
|
|
"vehicle/bus/berkhof_duvedec/lod_0_w3.msh",
|
|
},
|
|
fakeBogies = {
|
|
{
|
|
group = 1,
|
|
offset = 0,
|
|
position = -1.25,
|
|
},
|
|
{
|
|
group = 11,
|
|
offset = 0,
|
|
position = 3.88,
|
|
},
|
|
{
|
|
group = 11,
|
|
offset = 0,
|
|
position = -1.25,
|
|
},
|
|
},
|
|
wheels = {
|
|
"vehicle/bus/berkhof_duvedec/lod_0_w1.msh",
|
|
},
|
|
|
|
},
|
|
},
|
|
power = 180,
|
|
soundSet = {
|
|
horn = "vehicle/truck_modern/horn.wav",
|
|
name = "bus_modern",
|
|
|
|
},
|
|
topSpeed = 90,
|
|
tractiveEffort = 30,
|
|
weight = 15,
|
|
|
|
},
|
|
transportVehicle = {
|
|
capacities = {
|
|
{
|
|
capacity = 100,
|
|
type = "PASSENGERS",
|
|
},
|
|
},
|
|
carrier = "ROAD",
|
|
loadSpeed = 5,
|
|
multipleUnitOnly = false,
|
|
seats = {
|
|
|
|
-- front
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(6.9 -3.1, 0.6, 0.6)), crew = true },
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(5.8 -3.1, -0.8, 0.6)) },
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(5.8 - 3.1, 0.7, 0.6)) },
|
|
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(5.15 - 3.1, -0.7, 0.6)) },
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(5.15 - 3.1, -0.15, 0.6)) },
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(5.15 - 3.1, 0.8, 0.6)) },
|
|
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.9 - 3.1, -0.8, 0.6)) },
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.9 - 3.1, -0.3, 0.6)) },
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.9 - 3.1, 0.7, 0.6)) },
|
|
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.1 - 3.1, -0.8, 0.6)) },
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.1 - 3.1, -0.3, 0.6)) },
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.1 - 3.1, 0.7, 0.6)) },
|
|
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(2.3 - 3.1, 0.7, 0.6)) },
|
|
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.0 - 3.1, -0.8, 0.6)) },
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.0 - 3.1, -0.3, 0.6)) },
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.0 - 3.1, 0.7, 0.6)) },
|
|
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(0.35 - 3.1, -0.7, 0.6)) },
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(0.35 - 3.1, -0.15, 0.6)) },
|
|
|
|
{ group = 11, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(0.35 - 3.1, 0.8, 0.6)) },
|
|
|
|
|
|
-- back
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.3, -0.8, 0.6)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.3, -0.3, 0.6)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.3, 0.7, 0.6)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.2, 0.7, 0.6)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.9, -0.8, 0.6)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.9, -0.3, 0.6)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.9, 0.7, 0.6)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.8, -0.8, 0.9)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.8, -0.3, 0.9)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.8, 0.7, 0.9)) },
|
|
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.7, -0.8, 0.9)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.7, -0.3, 0.9)) },
|
|
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.7, 0.2, 0.9)) },
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.7, 0.7, 0.9)) },
|
|
},
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
end
|