local vec3 = require "vec3" local transf = require "transf" function data() return { boundingInfo = { bbMax = { 6.770984172821, 1.4350030422211, 3.3898859024048, }, bbMin = { -6.770984172821, -1.4350030422211, -0.488813996315, }, }, collider = { params = { }, type = "MESH", }, lods = { { animations = { }, children = { { id = "vehicle/train/schienenbus/lod_2_lod2.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, }, type = "MESH", }, { id = "vehicle/train/schienenbus/lod_2_w_lod2.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.9114, 0, 0.4608, 1, }, type = "MESH", }, { id = "vehicle/train/schienenbus/lod_2_w_lod2.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -2.9114, 0, 0.4608, 1, }, type = "MESH", }, }, events = { }, matConfigs = { { 0, 0, 0, }, }, static = false, visibleFrom = 220, visibleTo = 1260, }, { animations = { }, children = { { id = "vehicle/train/schienenbus/lod_1_lod1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, }, type = "MESH", }, { id = "vehicle/train/schienenbus/lod_1_w_lod1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -2.9114, 0, 0.4608, 1, }, type = "MESH", }, { id = "vehicle/train/schienenbus/lod_1_w_lod1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.9114, 0, 0.4608, 1, }, type = "MESH", }, { id = "vehicle/train/schienenbus_doors_lod1.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.4433, 1.4327, 0, 1, }, type = "GROUP", }, { id = "vehicle/train/schienenbus_doors_lod1.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.4433, -1.4010, 0, 1, }, type = "GROUP", }, { id = "vehicle/train/schienenbus_doors_lod1.grp", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -5.4433, -1.4327, 0, 1, }, type = "GROUP", }, { id = "vehicle/train/schienenbus_doors_lod1.grp", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -5.4433, 1.4010, 0, 1, }, type = "GROUP", }, }, events = { open_all_doors = { [4] = { name = "open_all_doors", forward = true }, [5] = { name = "open_all_doors_inv", forward = true }, [6] = { name = "open_all_doors", forward = true }, [7] = { name = "open_all_doors_inv", forward = true }, }, close_all_doors = { [4] = { name = "open_all_doors", forward = false }, [5] = { name = "open_all_doors_inv", forward = false }, [6] = { name = "open_all_doors", forward = false }, [7] = { name = "open_all_doors_inv", forward = false }, }, open_doors_left = { [4] = { name = "open_all_doors", forward = true }, [7] = { name = "open_all_doors_inv", forward = true }, }, close_doors_left = { [4] = { name = "open_all_doors", forward = false }, [7] = { name = "open_all_doors_inv", forward = false }, }, open_doors_right = { [5] = { name = "open_all_doors_inv", forward = true }, [6] = { name = "open_all_doors", forward = true }, }, close_doors_right = { [5] = { name = "open_all_doors_inv", forward = false }, [6] = { name = "open_all_doors", forward = false }, }, }, matConfigs = { { 0, 0, 0, 0, 0, 0, 0, 0, }, }, static = false, visibleFrom = 120, visibleTo = 220, }, { animations = { }, children = { { id = "vehicle/train/schienenbus/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/train/schienenbus/lod_0_w1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.9114, 0, 0.4608, 1, }, type = "MESH", }, { id = "vehicle/train/schienenbus/lod_0_w1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -2.9114, 0, 0.4608, 1, }, type = "MESH", }, { id = "vehicle/train/schienenbus_doors_lod0.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.4433, 1.4327, 0, 1, }, type = "GROUP", }, { id = "vehicle/train/schienenbus_doors_lod0.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.4433, -1.4010, 0, 1, }, type = "GROUP", }, { id = "vehicle/train/schienenbus_doors_lod0.grp", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -5.4433, -1.4327, 0, 1, }, type = "GROUP", }, { id = "vehicle/train/schienenbus_doors_lod0.grp", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -5.4433, 1.4010, 0, 1, }, type = "GROUP", }, { id = "vehicle/train/schienenbus/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/asset/lod_0_light_round_white.msh", --manual lights transf = transf.scaleRotZYXTransl(vec3.new(1.0,.9,.9),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 6.22, -0.003, 2.965)), type = "MESH", }, { id = "vehicle/asset/lod_0_light_round_white.msh", --manual lights transf = transf.scaleRotZYXTransl(vec3.new(1.0,.8,.8),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 6.35, 0.845, 1.48)), type = "MESH", }, { id = "vehicle/asset/lod_0_light_round_white.msh", --manual lights transf = transf.scaleRotZYXTransl(vec3.new(1.0,.8,.8),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 6.35, -0.845, 1.48)), type = "MESH", }, { id = "vehicle/asset/lod_0_light_round_red.msh", --manual lights transf = transf.scaleRotZYXTransl(vec3.new(1.0,.8,.8),transf.degToRad( 180.0, 0.0, 0.0), vec3.new( -6.35, 0.845, 1.48)), type = "MESH", }, { id = "vehicle/asset/lod_0_light_round_red.msh", --manual lights transf = transf.scaleRotZYXTransl(vec3.new(1.0,.8,.8),transf.degToRad( 180.0, 0.0, 0.0), vec3.new( -6.35, -0.845, 1.48)), type = "MESH", }, { id = "vehicle/train/schienenbus/lod_0_logos.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, }, type = "MESH", }, }, events = { open_all_doors = { [4] = { name = "open_all_doors", forward = true }, [5] = { name = "open_all_doors_inv", forward = true }, [6] = { name = "open_all_doors", forward = true }, [7] = { name = "open_all_doors_inv", forward = true }, }, close_all_doors = { [4] = { name = "open_all_doors", forward = false }, [5] = { name = "open_all_doors_inv", forward = false }, [6] = { name = "open_all_doors", forward = false }, [7] = { name = "open_all_doors_inv", forward = false }, }, open_doors_left = { [4] = { name = "open_all_doors", forward = true }, [7] = { name = "open_all_doors_inv", forward = true }, }, close_doors_left = { [4] = { name = "open_all_doors", forward = false }, [7] = { name = "open_all_doors_inv", forward = false }, }, open_doors_right = { [5] = { name = "open_all_doors_inv", forward = true }, [6] = { name = "open_all_doors", forward = true }, }, close_doors_right = { [5] = { name = "open_all_doors_inv", forward = false }, [6] = { name = "open_all_doors", forward = false }, }, }, matConfigs = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, }, static = false, visibleFrom = 0, visibleTo = 120, }, }, metadata = { description = { name = _("Railbus"), description = _("These vehicles were diesel-powered, twin-axle rail buses of light construction. The motors were built into the chassis underneath the vehicle.") }, railVehicle = { topSpeed = 90, weight = 13, engines = { { type = "DIESEL", power = 110, tractiveEffort = 20 } }, configs = { {}, { axles = { "vehicle/train/schienenbus/lod_1_w_lod1.msh" } }, { axles = { "vehicle/train/schienenbus/lod_0_w1.msh" } } }, soundSet = { name = "train_diesel", horn = "vehicle/truck_modern/horn.wav" } }, transportVehicle = { carrier = "RAIL", capacities = { { type = "PASSENGERS", capacity = 57 } }, loadSpeed = 2, seats = { { group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(5.1, 0.00, 1)), crew = true}, -- passengers { group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.35, -0.6, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(20.0, 0.0, 0.0), vec3.new(-0.35, -1.1, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(-20.0, 0.0, 0.0), vec3.new(-0.35, 0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(0.35, -0.4, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(-200.0, 0.0, 0.0), vec3.new(0.35, -0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(200.0, 0.0, 0.0), vec3.new(0.35, 0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.3, -0.6, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(20.0, 0.0, 0.0), vec3.new(-2.3, -1.1, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(-20.0, 0.0, 0.0), vec3.new(-2.3, 0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-1.3, -0.4, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(-200.0, 0.0, 0.0), vec3.new(-1.3, -0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(200.0, 0.0, 0.0), vec3.new(-1.3, 0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-4.1, -0.6, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(20.0, 0.0, 0.0), vec3.new(-4.1, -1.1, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(-20.0, 0.0, 0.0), vec3.new(-4.1, 0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-3.1, -0.4, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(-200.0, 0.0, 0.0), vec3.new(-3.1, -0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(200.0, 0.0, 0.0), vec3.new(-3.1, 0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(4.1, -0.6, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(-200.0, 0.0, 0.0), vec3.new(4.1, -1.1, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(200.0, 0.0, 0.0), vec3.new(4.1, 0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(3.1, -0.4, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(20.0, 0.0, 0.0), vec3.new(3.1, -0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(-20.0, 0.0, 0.0), vec3.new(3.1, 0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(2.3, -0.6, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(-200.0, 0.0, 0.0), vec3.new(2.1, -1.1, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(200.0, 0.0, 0.0), vec3.new(2.1, 0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.1, -0.4, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(20.0, 0.0, 0.0), vec3.new(1.1, -0.9, 1)), crew = false}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(-20.0, 0.0, 0.0), vec3.new(1.1, 0.9, 1)), crew = false}, }, }, availability = { yearFrom = 3000, yearTo = 3000 }, cost = { price = -1 }, maintenance = { runningCosts = -1, lifespan = 40 } }, } end