Ich habe hier das Teil ausgeschnitten.
-- Autobahn U-Medium RAISED
if params.Types == 5 then
-- result.models[#result.models + 1] = { id = "asset/Collider_center.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.0, 0, 0.0, 1 } }
terrainFaces[#terrainFaces + 1] = { { 13, 113, -2.0 }, {-13, 113, -2.0 }, { -13, 87, 0.0 }, { 13, 87, 0.0 } }
terrainFaces[#terrainFaces + 1] = { { 13, 87, 0.0 }, {-13, 87, 0.0 }, { -18, 27, 0.0 }, { 18, 27, 0.0 } }
terrainFaces[#terrainFaces + 1] = { { 18, 27, 0.0 }, { -18, 27, 0.0 },{ -18.5, 24, 0.9 }, { 18.5, 24, 0.9 } }
terrainFaces[#terrainFaces + 1] = { { 18.5, 24, 0.9 }, { -18.5, 24, 0.9 } , { -24, 19.3, 0.0 }, { 24, 19.3, 0.0 } }
terrainFaces[#terrainFaces + 1] = { { 19, 19.3, 0.0 }, { -19, 19.3, 0.0 }, { -24, 9, -0.1 }, { 24, 9, -0.1 } }
terrainFaces[#terrainFaces + 1] = { { 24, 9, -0.10 }, { -24, 9, -0.10 }, { -24, -9, -0.10 }, { 24, -9, -0.10 } }
terrainFaces[#terrainFaces + 1] = { { 24, -9, -0.1 }, { -24, -9, -0.1 }, { -19, -19.3, 0.0 }, { 19, -19.3, 0.0 } }
terrainFaces[#terrainFaces + 1] = { { 19, -19.3, 0.0 }, { -19, -19.3, 0.0 }, { -18.5, -24, 0.9 }, { 18.5, -24, 0.9 } }
terrainFaces[#terrainFaces + 1] = { { 18.5, -24, 0.9 }, { -18.5, -24, 0.9 },{ -18, -27, 0.0 }, { 18, -27, 0.0 } }
terrainFaces[#terrainFaces + 1] = { { 18, -27, 0.0 }, { -18, -27, 0.0 },{ -13, -87, 0.0 }, { 13, -87, 0.0 } }
terrainFaces[#terrainFaces + 1] = { { 13, -87, 0.0 }, { -13, -87, 0.0 },{ -13, -113, -2 }, { 13, -113, -2 } }
result.terrainAlignmentLists = {
{
type = "EQUAL",
faces = terrainFaces,
-- slopeLow = .5
},
{
type = "LESS",
faces = terrainFaces,
-- slopeLow = .5
}
}
result.models[#result.models + 1] = { id = "Autobahn_U_medium_small/Autobahn_air_medium.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.0, 0.0, 0.0, 1 } }
result.models[#result.models + 1] = { id = "Autobahn_U_medium_small/Autobahn_Uair_common.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.0, 0.0, 5.40, 1 } }
result.edgeLists[#result.edgeLists +1] = {type = "STREET",
params = { type = "new_medium.lua", tramTrackType = config.tramTrackTypes[params.tramTrack + 1]},
edges = {{{ 24, 0.0,0.0 },{ 10, 0.0, 0 }},{{ 34, 0, 0.0 },{ 10.0, 0.0, 0 }}},
snapNodes = { 1, }
}
result.edgeLists[#result.edgeLists +1] = {type = "STREET",
params = { type = "new_medium.lua", tramTrackType = config.tramTrackTypes[params.tramTrack + 1]},
edges = {{{ -24, 0.0, 0.0 },{ -10.0, 0.0, 0 }},{{ -34, 0.0, 0.0 },{ -10.0, 0.0, 0 }}},
snapNodes = { 1, }
}
result.edgeLists[#result.edgeLists +1] = {type = "STREET",
params = { type = "Autobahn0.lua",},
alignTerrain = false,
edgeType = "BRIDGE",
edgeTypeName = "Autobahn_aq.lua",
edges = {{{ 0, 87.0, 5.40 },{ 0, 13.0, 0 }},{{ 0, 100.0, 5.40 },{ 0.0, 13.0, 0 }}},
snapNodes = { 1 }
}
result.edgeLists[#result.edgeLists +1] = {type = "STREET",
params = { type = "Autobahn0.lua",},
alignTerrain = false,
edgeType = "BRIDGE",
edgeTypeName = "Autobahn_aq.lua",
edges = {{{ 0, -87.0, 5.40 },{ 0.0, -13.0, 0 }},{{ 0, -100, 5.40 },{ 0.0, -13.0, 0 }}},
snapNodes = { 1 }
}
if params.tramTrack == 0 then
result.models[#result.models + 1] = { id = "Autobahn_U_medium_small/BUS_tracks_U_medium.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.0, 0, 5.40, 1 } }
end
if params.tramTrack == 1 then
result.models[#result.models + 1] = { id = "Autobahn_U_medium_small/Tram_tracks_U_medium.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.0, 0, 5.40, 1 } }
end
if params.tramTrack == 2 then
result.models[#result.models + 1] = { id = "Autobahn_U_medium_small/Tram_el_U_medium.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.0, 0, 5.40, 1 } }
end
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_WohinDahin_gelb_180.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 14.5, 5.15, 0.0, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_WohinDahin_gelb_180.mdl", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -14.5, -5.15, 0.0, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Vorfahrt.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 14,-8.5, -0.60, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Fussganger_verbot.mdl", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 14,-8.5, 0.0, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Einfahrt_verbot.mdl", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 14,-8.5, 0.6, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Vorfahrt.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 20,-9.5, -0.60, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Fussganger_verbot.mdl", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 20, -9.5, 0.0, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Einfahrt_verbot.mdl", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 20, -9.5, 0.6, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Vorfahrt.mdl", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -14,8.5, -0.6, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Fussganger_verbot.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -14, 8.5, 0.0, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Einfahrt_verbot.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -14, 8.5, 0.6, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Vorfahrt.mdl", transf = { -0.906, 0.423, 0, 0, -0.423, -0.906, 0, 0, 0, 0, 1, 0, -20,9.5, -0.60, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Fussganger_verbot.mdl", transf = { 0.906, -0.423, 0, 0, 0.423, 0.906, 0, 0, 0, 0, 1, 0, -20, 9.5, 0.0, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_Einfahrt_verbot.mdl", transf = { 0.906, -0.423, 0, 0, 0.423, 0.906, 0, 0, 0, 0, 1, 0, -20, 9.5, 0.6, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_LKW_verbot.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 12.85, -87, 6.10, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_LKW_verbot_aufg.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 12.85, 87, 6.10, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_LKW_verbot.mdl", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -12.85, 87, 6.10, 1 } }
result.models[#result.models + 1] = { id = "Verkehrzeichen/VZ_LKW_verbot_aufg.mdl", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -12.85, -87, 6.10, 1 } }
end
return result
end
Alles anzeigen