disablevanillavehicles_1520dlc/res/models/model/vehicle/bus/postkutsche.mdl

201 lines
4.3 KiB
Plaintext
Executable File

local vec3 = require "vec3"
local transf = require "transf"
function data()
return {
lods = {
{
animations = {
},
children = {
{
id = "vehicle/bus/postkutsche/lod_2_postkutsche1850.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},{
id = "vehicle/bus/postkutsche/lod_2_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.4179, 0, 0.7049, 1,
},
type = "MESH",
}, {
id = "vehicle/bus/postkutsche_lod_2_guide.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.1243, 0, 0.4429, 1,
},
type = "GROUP",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 180,
visibleTo = 900,
}, {
animations = {
},
children = {
{
id = "vehicle/bus/postkutsche_lod_1_body.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/bus/postkutsche_lod_1_horses.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.7147, 0, 0, 1,
},
type = "GROUP",
},
},
events = {
drive = {
[2] = {
forward = true,
name = "drive",
},
},
},
matConfigs = {
{
0, 0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 80,
visibleTo = 180,
}, {
animations = {
},
children = {
{
id = "vehicle/bus/postkutsche_lod_0_body.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "GROUP",
}, {
id = "vehicle/bus/postkutsche_lod_0_horses.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.7147, 0, 0, 1,
},
type = "GROUP",
},
},
events = {
drive = {
[2] = {
forward = true,
name = "drive",
},
},
open_all_doors = {
[1] = {
forward = true,
name = "open_all_doors",
},
},
close_all_doors = {
[1] = {
forward = false,
name = "open_all_doors",
},
},
},
matConfigs = {
{
0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 80,
},
},
metadata = {
description = {
name = _("Stage coach"),
description = _("A common stage coach used for public transportation in the early years.")
},
roadVehicle = {
topSpeed = 15,
weight = 1,
power = 2,
tractiveEffort = 2,
configs = {
{
},
{
axles = { "vehicle/bus/postkutsche/lod_1_w1.msh",
"vehicle/bus/postkutsche/lod_1_w2.msh", },
fakeBogies = { { group = 7, position = 3.7147, offset = 0.0 } }
},
{
axles = { "vehicle/bus/postkutsche/lod_0_w1.msh",
"vehicle/bus/postkutsche/lod_0_w2.msh", },
fakeBogies = { { group = 11, position = 3.7147, offset = 0.0 } }
}
},
soundSet = "bus_horse"
},
transportVehicle = {
carrier = "ROAD",
capacities = {
{ type = "PASSENGERS", capacity = 16 }
},
loadSpeed = 1,
seats = {
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.41, 0, 2.05)), crew = true},
--passangers
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.7, -0.4, 0.8))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.7, 0.2, 0.8))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.2, -0.5, 0.8))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.2, 0.4, 0.8))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.2, -0.1, 0.8))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(0.3, -0.3, 0.8))},
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(0.3, 0.4, 0.8))},
}
},
availability = {
yearFrom = 1850,
yearTo = 1907
},
cost = {
price = -1
},
maintenance = {
runningCosts = -1,
lifespan = 15
}
},
}
end