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

313 lines
7.0 KiB
Plaintext
Executable File

local vec3 = require "vec3"
local transf = require "transf"
function data()
return {
boundingInfo = {
bbMax = {
5.9152231216431, 14.999654769897, 5.1760401725769,
},
bbMin = {
-14.783146858215, -15.000291824341, -2.4586050510406,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/plane/douglas_dc3/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/plane/douglas_dc3/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/plane/douglas_dc3/lod_0_d1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -6.4883, 1.2115, 0.9232, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3/lod_0_d2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -6.4882, -1.2118, 0.9232, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3_lod_0_front_wheel.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.9394, 0, -0.3704, 1,
},
type = "GROUP",
}, {
id = "vehicle/plane/douglas_dc3/lod_0_elevator.msh",
transf = transf.rotZYXTransl(transf.degToRad(90,0,90), vec3.new(-13.4067, 0, 1.5292)),
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3/lod_0_aileron_left.msh",
transf = transf.rotZYXTransl(transf.degToRad(93.1955,-7.3464,92.6335), vec3.new(-3.1911, 10.2588, 0.6605)),
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3/lod_0_aileron_right.msh",
transf = transf.rotZYXTransl(transf.degToRad(86.808,7.269,92.638), vec3.new(-3.1911, -10.2588, 0.6465)),
type = "MESH",
},{
id = "vehicle/plane/douglas_dc3/lod_0_inboard_flap.msh",
transf = transf.rotZYXTransl(transf.degToRad(90,0,90), vec3.new(-2.7608, 0, -0.309)),
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3/lod_0_outboard_flap_left.msh",
transf = transf.rotZYXTransl(transf.degToRad(94.642,-7.902,85.991), vec3.new(-2.876, 5.2532,-0.0579)),
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3/lod_0_outboard_flap_right.msh",
transf = transf.rotZYXTransl(transf.degToRad(85.365,7.51,85.6161), vec3.new(-2.8759, -5.2526,-0.0624)),
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3/lod_0_rotor1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.0102, -2.9669, 0.0112, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3/lod_0_rotor2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 3.0101, 2.9691, 0.0152, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3/lod_0_rudder.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -12.9493, 0, 4.0397, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3/lod_0_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -11.9626, 0, 0.3711, 1,
},
type = "MESH",
},
-- lights
{
id = "vehicle/plane/douglas_dc3/lod_0_aft_light.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},
{
id = "vehicle/plane/douglas_dc3/lod_0_landing_lights.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},
{
id = "vehicle/plane/douglas_dc3/lod_0_navigation_light_left.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},
{
id = "vehicle/plane/douglas_dc3/lod_0_navigation_light_right.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},
{
id = "vehicle/plane/douglas_dc3/lod_0_navigation_light_top.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},{
id = "vehicle/plane/douglas_dc3/lod_0_logo_rudder.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -12.9493, 0, 4.0397, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/douglas_dc3/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_wheels = {
[5] = {
forward = true,
name = "open",
},
},
open_wheels = {
[5] = {
forward = false,
name = "open",
},
},
open_doors_left = {
[3] = {
forward = true,
name = "opend1",
},
},
open_doors_right = {
[4] = {
forward = true,
name = "opend2",
},
},
close_doors_left = {
[3] = {
forward = false,
name = "opend1",
},
},
close_doors_right = {
[4] = {
forward = false,
name = "opend2",
},
},
},
matConfigs = {
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 5170,
},
},
metadata = {
airVehicle = {
weight = 7700.0,
maxPayload = 0,
maxTakeOffWeight = 11400.0,
maxThrust = 25000.0,
idleThrust = 0.0,
timeToFullThrust = 3,
power = 1700,
wingArea = 91.7,
topSpeed = 92.5,
configs = {
{
axles = {
"vehicle/plane/douglas_dc3/lod_0_w2.msh",
},
wheels = {
"vehicle/plane/douglas_dc3/lod_0_w1.msh",
},
elevator = {
ids = { 10 },
maxAngle = 30
},
aileronLeft = {
ids = { 11 },
maxAngle = 30
},
aileronRight = {
ids = { 12 },
maxAngle = 30
},
flaps = {
ids = { 13, 14, 15 },
maxAngle = 30
},
props = {
ids = { 16, 17 }
},
rudder = {
ids = { 18,25 },
maxAngle = 30
}
}
}
},
availability = {
yearFrom = 1935,
yearTo = 1967
},
cost = {
price = -1
},
description = {
name = _("Douglas DC-3"),
description = _("The Douglas DC-3 is a fixed-wing propeller-driven airliner. Its cruise speed and range revolutionized air transport in the 1930s and 1940s.")
},
maintenance = {
runningCosts = -1,
lifespan = 40
},
transportVehicle = {
carrier = "AIR",
capacities = {
{
type = "PASSENGERS",
capacity = 32, -- wikipedia
}
},
loadSpeed = 2,
seats = {
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.7, 0.35, 0.4)), crew = true},
}
},
soundConfig = {
soundSet = { name = "aircraft_prop_modern" }
}
}
}
end