local vec3 = require "vec3" local transf = require "transf" function data() return { lods = { { animations = { }, children = { { id = "vehicle/truck/horse_cart_lod_2_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, 4.4147, 0, 0, 1, }, type = "GROUP", }, }, events = { drive = { [2] = { forward = true, name = "drive", }, }, }, matConfigs = { { 0, 0, }, }, static = false, visibleFrom = 400, visibleTo = 940, }, { animations = { }, children = { { id = "vehicle/truck/horse_cart_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, 4.4147, 0, 0, 1, }, type = "GROUP", }, }, events = { drive = { [2] = { forward = true, name = "drive", }, }, }, matConfigs = { { 0, 0, }, }, static = false, visibleFrom = 40, visibleTo = 400, }, { animations = { }, children = { { id = "vehicle/truck/horse_cart_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, 4.4147, 0, 0, 1, }, type = "GROUP", }, }, events = { drive = { [2] = { forward = true, name = "drive", }, }, }, matConfigs = { { 0, 0, }, }, static = false, visibleFrom = 0, visibleTo = 40, }, }, metadata = { description = { name = _("Horse cart"), description = _("A two-horse vehicle with a simple twin axle carriage.") }, roadVehicle = { topSpeed = 20, weight = 1, power = 2, tractiveEffort = 2, configs = { { axles = { "vehicle/truck/horse_cart/lod_2_w1.msh", "vehicle/truck/horse_cart/lod_2_w2.msh", }, fakeBogies = { { group = 84, position = 4.4147, offset = 0.0 } } },{ axles = { "vehicle/truck/horse_cart/lod_1_w1.msh", "vehicle/truck/horse_cart/lod_1_w2.msh", }, fakeBogies = { { group = 84, position = 4.4147, offset = 0.0 } } },{ axles = { "vehicle/truck/horse_cart/lod_0_w1.msh", "vehicle/truck/horse_cart/lod_0_w2.msh", }, fakeBogies = { { group = 86, position = 4.4147, offset = 0.0 } } } }, soundSet = "truck_horse" }, transportVehicle = { carrier = "ROAD", capacities = { { type = "OIL", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 } } } } }, { type = "GOODS", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 18, 19, 20, 21, 22, 23, 24, 25} } } } }, { type = "LOGS", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37 } } } } }, { type = "LIVESTOCK", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 38, 39} } } } }, { type = "CRUDE", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 40, 41} } } } }, { type = "STEEL", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 42,43} } } } }, { type = "PLANKS", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 44,45} } } } }, { type = "PLASTIC", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 46,47} } } } }, { type = "CONSTRUCTION_MATERIALS", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 48,49} } } } }, { type = "MACHINES", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 50,51} } } } }, { type = "FUEL", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 52,53} } } } }, { type = "TOOLS", capacity = 20,loadIndicators = { { type = "DISCRETE", params = { items = { 54,55} } } } }, { type = "FOOD", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 56,57} } } } }, { type = "GRAIN", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 58,59} } } } }, { type = "STONE", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 60,63} } } } }, { type = "COAL", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 66,69} } } } }, { type = "IRON_ORE", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 72,75} } } } }, { type = "SLAG", capacity = 20, loadIndicators = { { type = "DISCRETE", params = { items = { 78,81} } } } }, }, loadSpeed = 1, seats = { { group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.9, 0.1, 1.45)), crew = true}, }, }, availability = { yearFrom = 1870, yearTo = 1913 }, cost = { price = -1 }, maintenance = { runningCosts = -1, lifespan = 20 } }, } end