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

429 lines
10 KiB
Plaintext
Executable File

local vec3 = require "vec3"
local transf = require "transf"
function data()
return {
boundingInfo = {
bbMax = {
18.67066192627, 16.416221618652, 6.1334609985352,
},
bbMin = {
-17.215757369995, -16.416221618652, -2.7228879928589,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/plane/comet_4b/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/comet_4b/lod_0_d1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -6.4939, 1.6301, 0.4705, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/comet_4b/lod_0_d2.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -6.4939, -1.6301, 0.4705, 1,
},
type = "MESH",
},
{
id = "vehicle/plane/comet_4b/lod_0_interior.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},
-- Aircraft rudders
{
id = "vehicle/plane/comet_4b/lod_0_aileron.msh",
transf = transf.rotZYXTransl(transf.degToRad(102.156,-3.48,89.112), vec3.new(-2.87, 10.8409, -0.2014)),
type = "MESH",
},
{
id = "vehicle/plane/comet_4b/lod_0_elevator.msh",
transf = transf.rotZYXTransl(transf.degToRad(93.435,-11.526,87.23), vec3.new(-15.6666, 0.5026, 1.2072)),
type = "MESH",
},
{
id = "vehicle/plane/comet_4b/lod_0_inboard_flap.msh",
transf = transf.rotZYXTransl(transf.degToRad(99.608,-3.78,88.416), vec3.new(-1.8631, 5.9335,-0.52)),
type = "MESH",
},{
id = "vehicle/plane/comet_4b/lod_0_outboard_flap.msh",
transf = transf.rotZYXTransl(transf.degToRad(99.608,-3.398,91.499), vec3.new(-2.3895, 9.0431,-0.3242)),
type = "MESH",
}, {
id = "vehicle/plane/comet_4b/lod_0_rudder.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -15.5296, 0, 3.8223, 1,
},
type = "MESH",
},
-- flipped rudders
{
id = "vehicle/plane/comet_4b/lod_0_aileron.msh",
transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(102.156,-3.48,89.112), vec3.new(-2.87, 10.8409, -0.2014))),
type = "MESH",
}, {
id = "vehicle/plane/comet_4b/lod_0_elevator.msh",
transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(93.435,-11.526,87.23), vec3.new(-15.6666, 0.5026, 1.2072))),
type = "MESH",
},
{
id = "vehicle/plane/comet_4b/lod_0_inboard_flap.msh",
transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(99.608,-3.78,88.416), vec3.new(-1.8631, 5.9335,-0.52))),
type = "MESH",
},{
id = "vehicle/plane/comet_4b/lod_0_outboard_flap.msh",
transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(99.608,-3.398,91.499), vec3.new(-2.3895, 9.0431,-0.3242))),
type = "MESH",
},
-- back wheels
{
id = "vehicle/plane/comet_4b_lod_0_back_wheel.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.4964, 4.4828, -0.9167, 1,
},
type = "GROUP",
},{
id = "vehicle/plane/comet_4b/lod_0_back_wheel_big_flap.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.0457, 6.3528, -0.7374, 1,
},
type = "MESH",
}, {
id = "vehicle/plane/comet_4b/lod_0_back_wheel_small_flap.msh",
transf = transf.rotZYXTransl(transf.degToRad(0,0,-80), vec3.new(-0.0093, 4.3823, -0.921)),
type = "MESH",
},
{
id = "vehicle/plane/comet_4b_lod_0_back_wheel.grp",
transf = transf.flipY({
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.4964, 4.4828, -0.9167, 1,
}),
type = "GROUP",
},{
id = "vehicle/plane/comet_4b/lod_0_back_wheel_big_flap.msh",
transf = transf.flipY({
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.0457, 6.3528, -0.7374, 1,
}),
type = "MESH",
}, {
id = "vehicle/plane/comet_4b/lod_0_back_wheel_small_flap.msh",
transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(0,0,-80), vec3.new(-0.0093, 4.3823, -0.921))),
type = "MESH",
},
-- front wheel
{
id = "vehicle/plane/comet_4b/lod_0_flap_front_left.msh",
transf = transf.rotZYXTransl(transf.degToRad(0,-4.318,-80), vec3.new(15.9928, 0.4109, -0.9182)),
type = "MESH",
}, {
id = "vehicle/plane/comet_4b/lod_0_flap_front_right.msh",
transf = transf.rotZYXTransl(transf.degToRad(0,-4.318,-80), vec3.new(15.9928, -0.4109, -0.9182)),
type = "MESH",
},
{
id = "vehicle/plane/comet_4b_lod_0_front_wheel.grp",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 15.6035, 0, -0.839, 1,
},
type = "GROUP",
},
-- lights
{
id = "vehicle/plane/comet_4b/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/comet_4b/lod_0_anti_collision_strobo_bottom.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},{
id = "vehicle/plane/comet_4b/lod_0_landing_lights_inside.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},{
id = "vehicle/plane/comet_4b/lod_0_landing_lights_outside.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},{
id = "vehicle/plane/comet_4b/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/comet_4b/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/comet_4b/lod_0_logo_body.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},{
id = "vehicle/plane/comet_4b/lod_0_logo_rudder.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -15.5296, 0, 3.8223, 1,
},
type = "MESH",
},
},
events = {
open_doors_left = {
[2] = {
forward = true,
name = "opend1",
},
},
open_doors_right = {
[3] = {
forward = true,
name = "opend2",
},
},
close_doors_left = {
[2] = {
forward = false,
name = "opend1",
},
},
close_doors_right = {
[3] = {
forward = false,
name = "opend2",
},
},
open_wheels = {
[14] = {
forward = true,
name = "open",
},
[15] = {
forward = true,
name = "open",
},
[16] = {
forward = true,
name = "open",
},
[17] = {
forward = true,
name = "open",
},
[18] = {
forward = true,
name = "open",
},
[19] = {
forward = true,
name = "open",
},
[22] = {
forward = true,
name = "open",
}, [21] = {
forward = true,
name = "open",
}, [20] = {
forward = true,
name = "open",
},
},
close_wheels = {
[14] = {
forward = false,
name = "open",
},
[15] = {
forward = true,
name = "open",
},
[16] = {
forward = true,
name = "close",
},
[17] = {
forward = false,
name = "open",
},
[18] = {
forward = true,
name = "open",
},
[19] = {
forward = true,
name = "close",
},
[22] = {
forward = false,
name = "open",
}, [21] = {
forward = true,
name = "close",
}, [20] = {
forward = true,
name = "close",
},
}
},
matConfigs = {
{
0, 0, 0, 0, 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 = 7730,
},
},
metadata = {
airVehicle = {
weight = 33000.0,
maxPayload = 0,
maxTakeOffWeight = 71600.0,
maxThrust = 188000.0,
idleThrust = 9400.0,
timeToFullThrust = 3,
wingArea = 191.3,
topSpeed = 201.388888889,
configs = {
{
axles = {
"vehicle/plane/comet_4b/lod_0_back_w1.msh",
},
wheels = {
"vehicle/plane/comet_4b/lod_0_front_w1.msh",
},
elevator = {
ids = { 6, 11 },
maxAngle = 20
},
aileronLeft = {
ids = { 5 },
maxAngle = 30
},
aileronRight = {
ids = { 10 },
maxAngle = 30
},
flaps = {
ids = { 7, 8, 12, 13 },
maxAngle = 35
},
rudder = {
ids = { 9,43 },
maxAngle = 30
}
}
}
},
availability = {
yearFrom = 1960,
yearTo = 1967
},
cost = {
price = -1
},
description = {
name = _("De Havilland Comet 4B"),
description = _("Originally developed for Capital Airlines as the 4A, the 4B featured greater capacity through a 2m longer fuselage, and a shorter wingspan.")
},
maintenance = {
runningCosts = -1,
lifespan = 40
},
transportVehicle = {
carrier = "AIR",
capacities = {
{
type = "PASSENGERS",
capacity = 85, -- wikipedia
}
},
loadSpeed = 4,
seats = {
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(16.7, 0.39, -0.26)), crew = true},
}
},
soundConfig = {
soundSet = { name = "aircraft_jet_old" }
}
}
}
end