disablevanillavehicles_1520dlc/res/models/model/vehicle/plane/douglas_dc4.mdl

465 lines
10 KiB
Plaintext
Executable File

local vec3 = require "vec3"
local transf = require "transf"
function data()
return {
boundingInfo = {
bbMax = {
11.156785964966, 17.897922515869, 9.5514421463013,
},
bbMin = {
-17.841180801392, -17.897922515869, -0.0012209415435791,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/plane/douglas_dc4/lod_0_body.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_d1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -6.3957, 1.5736, 1.609+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_d1.msh",
transf = {
1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -6.3957, -1.5736, 1.609+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_rotor_1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.7615, -7.9967, 1.211+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_rotor_1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 4.1918, -3.7889, 0.7079+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_rotor_1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.7615, 7.9967, 1.211+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_rotor_1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 4.1918, 3.7889, 0.7079+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_interior.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1,
},
type = "MESH",
},
-- wheels
{
id = "vehicle/plane/douglas_dc4/lod_0_flap_front_left.msh",
transf = transf.rotZYXTransl(transf.degToRad(-180,16.9551,-80), vec3.new(9.2647, 0.4019, 0.3443+2)),
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_flap_front_right.msh",
transf = transf.rotZYXTransl(transf.degToRad(-180,16.9551,-80), vec3.new(9.2647, -0.4019, 0.3443+2)),
type = "MESH",
},{
id = "vehicle/plane/douglas_dc4_lod_0_front_wheel.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 8.1562, 0, 0.4795+2, 1,
},
type = "GROUP",
},
{
id = "vehicle/plane/douglas_dc4/lod_0_back_wheel_mount1_flap.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.1419, 3.7889, -0.0414+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_flap_back_left_left.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.5775, 4.3023, 0.104+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_flap_back_left_right.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.5775, 3.2756, 0.104+2, 1,
},
type = "MESH",
},{
id = "vehicle/plane/douglas_dc4_lod_0_back_wheel.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 3.7889, 0.3252+2, 1,
},
type = "GROUP",
},
{
id = "vehicle/plane/douglas_dc4/lod_0_back_wheel_mount1_flap.msh",
transf = {
1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -0.1419, -3.7889, -0.0414+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_flap_back_left_left.msh",
transf = {
1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1.5775, -4.3023, 0.104+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_flap_back_left_right.msh",
transf = {
1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1.5775, -3.2756, 0.104+2, 1,
},
type = "MESH",
},{
id = "vehicle/plane/douglas_dc4_lod_0_back_wheel.grp",
transf = {
1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, -3.7889, 0.3252+2, 1,
},
type = "GROUP",
},
-- Aircraft rudders
{
id = "vehicle/plane/douglas_dc4/lod_0_aileron_left.msh",
transf = transf.rotZYXTransl(transf.degToRad(-274.398,-7.434,-269.273), vec3.new(-0.7108, 13.3219, 1.7098+2)),
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_inboard_flap_left.msh",
transf = transf.rotZYXTransl(transf.degToRad(-275.343,-7.5898,90), vec3.new(-1.605, 4.3023, 0.4863+2)),
type = "MESH",
},{
id = "vehicle/plane/douglas_dc4/lod_0_aileron_left.msh",
transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(-274.398,-7.434,-269.273), vec3.new(-0.7108, 13.3219, 1.7098+2))),
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_inboard_flap_left.msh",
transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(-275.343,-7.5898,90), vec3.new(-1.605, 4.3023, 0.4863+2))),
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_elevator.msh",
transf = transf.rotZYXTransl(transf.degToRad(90,0,90), vec3.new(-14.9954, 0, 2.0716+2)),
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_rudder.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -15.3562, 0, 3.0529+2, 1,
},
type = "MESH",
},
-- lights
{
id = "vehicle/plane/douglas_dc4/lod_0_aft_light.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1,
},
type = "MESH",
},{
id = "vehicle/plane/douglas_dc4/lod_0_navigation_light_left.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1,
},
type = "MESH",
},{
id = "vehicle/plane/douglas_dc4/lod_0_navigation_light_right.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1,
},
type = "MESH",
},{
id = "vehicle/plane/douglas_dc4/lod_0_navigation_light_top.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc4/lod_0_logo_body.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1,
},
type = "MESH",
},
},
events = {
open_wheels = {
[9] = {
forward = true,
name = "open",
},
[10] = {
forward = true,
name = "open",
},
[11] = {
forward = true,
name = "open",
},
[12] = {
forward = true,
name = "switch",
},
[13] = {
forward = true,
name = "open",
},
[14] = {
forward = true,
name = "open",
},
[15] = {
forward = true,
name = "open",
},
[16] = {
forward = true,
name = "switch",
},
[17] = {
forward = true,
name = "open",
},
[18] = {
forward = true,
name = "open",
},
[19] = {
forward = true,
name = "open",
},
},
close_wheels = {
[9] = {
forward = true,
name = "close",
},
[10] = {
forward = true,
name = "close",
},
[11] = {
forward = true,
name = "close",
},
[12] = {
forward = false,
name = "switch",
},
[13] = {
forward = true,
name = "close",
},
[14] = {
forward = true,
name = "close",
},
[15] = {
forward = true,
name = "close",
},
[16] = {
forward = false,
name = "switch",
},
[17] = {
forward = true,
name = "close",
},
[18] = {
forward = true,
name = "close",
},
[19] = {
forward = true,
name = "close",
},
},
open_doors_left = {
[2] = {
forward = true,
name = "opend1",
},
},
close_doors_left = {
[2] = {
forward = false,
name = "opend1",
},
},
open_doors_right = {
[3] = {
forward = true,
name = "opend1",
},
},
close_doors_right = {
[3] = {
forward = false,
name = "opend1",
},
},
},
matConfigs = {
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 6990,
},
},
metadata = {
airVehicle = {
weight = 19600.0,
maxPayload = 0,
maxTakeOffWeight = 33100.0,
maxThrust = 70000.0,
idleThrust = 0.0,
timeToFullThrust = 3,
power = 0,
wingArea = 135.6,
topSpeed = 101.388888889,
configs = {
{
axles = {
"vehicle/plane/douglas_dc4/lod_0_w2.msh",
},
wheels = {
"vehicle/plane/douglas_dc4/lod_0_w1.msh",
},
elevator = {
ids = { 32 },
maxAngle = 20
},
aileronLeft = {
ids = { 28 },
maxAngle = 30
},
aileronRight = {
ids = { 30 },
maxAngle = 30
},
flaps = {
ids = { 9, 10, 15, 16, 22, 23, 29, 31 },
maxAngle = 30
},
props = {
ids = { 4, 5, 6, 7 }
},
rudder = {
ids = { 33 },
maxAngle = 30
}
}
}
},
availability = {
yearFrom = 1944,
yearTo = 1967
},
cost = {
price = -1
},
description = {
name = _("Douglas DC-4"),
description = _("The Douglas DC-4 is a four-engine (piston) propeller-driven airliner developed by the Douglas Aircraft Company. From 1945, many civil airlines operated it worldwide.")
},
maintenance = {
runningCosts = -1,
lifespan = 40
},
transportVehicle = {
carrier = "AIR",
capacities = {
{
type = "PASSENGERS",
capacity = 60,
}
},
loadSpeed = 2,
seats = {
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(7.8, 0.65, 1.2)), crew = true},
}
},
soundConfig = {
soundSet = { name = "aircraft_prop_modern" }
}
}
}
end