Skip to content

Commit

Permalink
Fixed: Magnum's rails having wrong Z offset on the origins
Browse files Browse the repository at this point in the history
Added: Ron's 2ft track pack
  • Loading branch information
dvdvideo1234 committed Mar 4, 2016
1 parent e1d3db1 commit e86337f
Showing 1 changed file with 105 additions and 21 deletions.
126 changes: 105 additions & 21 deletions lua/autorun/trackassembly_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ asmlib.SetIndexes("V",1,2,3)
asmlib.SetIndexes("A",1,2,3)
asmlib.SetIndexes("S",4,5,6,7)
asmlib.InitAssembly("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","5.212")
asmlib.SetOpVar("TOOL_VERSION","5.213")
asmlib.SetOpVar("DIRPATH_BAS",asmlib.GetOpVar("TOOLNAME_NL")..asmlib.GetOpVar("OPSYM_DIRECTORY"))
asmlib.SetOpVar("DIRPATH_EXP","exp"..asmlib.GetOpVar("OPSYM_DIRECTORY"))
asmlib.SetOpVar("DIRPATH_DSV","dsv"..asmlib.GetOpVar("OPSYM_DIRECTORY"))
Expand Down Expand Up @@ -871,26 +871,26 @@ else
asmlib.InsertRecord({"models/xqm/rails/loop_right.mdl", "#", "#", 1, "", "13.864, -41.787, -0.953", "0,-22.5,2.433"})
asmlib.InsertRecord({"models/xqm/rails/loop_right.mdl", "#", "#", 2, "", "-13.562, 41.789, -0.952", "0,157.5,2.433"})
asmlib.DefaultType("Magnum's Rails")
asmlib.InsertRecord({"models/magtrains1ga/straight_0032.mdl", "#", "#", 1, "", " 16, 0, -1", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_0032.mdl", "#", "#", 2, "", "-16, 0, -1", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_0064.mdl", "#", "#", 1, "", " 32, 0, -1", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_0064.mdl", "#", "#", 2, "", "-32, 0, -1", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_0128.mdl", "#", "#", 1, "", " 64, 0, -1", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_0128.mdl", "#", "#", 2, "", "-64, 0, -1", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_0256.mdl", "#", "#", 1, "", " 128, 0, -1", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_0256.mdl", "#", "#", 2, "", "-128, 0, -1", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_0512.mdl", "#", "#", 1, "", " 256, 0, -1", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_0512.mdl", "#", "#", 2, "", "-256, 0, -1", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_1024.mdl", "#", "#", 1, "", " 512, 0, -1", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_1024.mdl", "#", "#", 2, "", "-512, 0, -1", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_2048.mdl", "#", "#", 1, "", " 1024, 0, -1", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_2048.mdl", "#", "#", 2, "", "-1024, 0, -1", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/curve_225.mdl", "#", "#", 1, "", "-0.01, 0, -1", ""})
asmlib.InsertRecord({"models/magtrains1ga/curve_225.mdl", "#", "#", 2, "", "-587.955, -117.702, -1", "0,-157.5,0"})
asmlib.InsertRecord({"models/magtrains1ga/curve_45.mdl", "#", "#", 1, "", "-0.012, 0, -1", ""})
asmlib.InsertRecord({"models/magtrains1ga/curve_45.mdl", "#", "#", 2, "", "-1087.089, -451.055, -1", "0,-135,0"})
asmlib.InsertRecord({"models/magtrains1ga/curve_90.mdl", "#", "#", 1, "", " 1086.58, 450.079, -1", ""})
asmlib.InsertRecord({"models/magtrains1ga/curve_90.mdl", "#", "#", 2, "", "-449.475,-1085.92, -1", "0,-90,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_0032.mdl", "#", "#", 1, "", " 16 , 0, 3.016", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_0032.mdl", "#", "#", 2, "", "-16 , 0, 3.016", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_0064.mdl", "#", "#", 1, "", " 32 , 0, 3.016", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_0064.mdl", "#", "#", 2, "", "-32 , 0, 3.016", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_0128.mdl", "#", "#", 1, "", " 64 , 0, 3.016", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_0128.mdl", "#", "#", 2, "", "-64 , 0, 3.016", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_0256.mdl", "#", "#", 1, "", " 128 , 0, 3.016", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_0256.mdl", "#", "#", 2, "", "-128 , 0, 3.016", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_0512.mdl", "#", "#", 1, "", " 256 , 0, 3.016", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_0512.mdl", "#", "#", 2, "", "-256 , 0, 3.016", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_1024.mdl", "#", "#", 1, "", " 512 , 0, 3.016", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_1024.mdl", "#", "#", 2, "", "-512 , 0, 3.016", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/straight_2048.mdl", "#", "#", 1, "", " 1024, 0, 3.016", ""})
asmlib.InsertRecord({"models/magtrains1ga/straight_2048.mdl", "#", "#", 2, "", "-1024, 0, 3.016", "0,180,0"})
asmlib.InsertRecord({"models/magtrains1ga/curve_225.mdl", "#", "#", 1, "", "-0.01, 0, 3.016", ""})
asmlib.InsertRecord({"models/magtrains1ga/curve_225.mdl", "#", "#", 2, "", "-587.955, -117.702, 3.016", "0,-157.5,0"})
asmlib.InsertRecord({"models/magtrains1ga/curve_45.mdl", "#", "#", 1, "", "-0.012, 0, 3.016", ""})
asmlib.InsertRecord({"models/magtrains1ga/curve_45.mdl", "#", "#", 2, "", "-1087.089, -451.055, 3.016", "0,-135,0"})
asmlib.InsertRecord({"models/magtrains1ga/curve_90.mdl", "#", "#", 1, "", " 1086.58, 450.079, 3.016", ""})
asmlib.InsertRecord({"models/magtrains1ga/curve_90.mdl", "#", "#", 2, "", "-449.475,-1085.92, 3.016", "0,-90,0"})
asmlib.DefaultType("Shinji85's Rails")
asmlib.SettingsModelToName("SET",nil,{"rail_","straight_"},nil)
asmlib.InsertRecord({"models/shinji85/train/rail_1x.mdl", "#", "#", 1, "", "0,0,7.346", ""})
Expand Down Expand Up @@ -1873,6 +1873,90 @@ else
asmlib.InsertRecord({"models/ron/o_strom/gl_xxxg1/gl_outer_right_c45g1.mdl" , "#", "#", 2, "", "-1326.5,601.490,7", "0,135,0"})
asmlib.InsertRecord({"models/ron/m_strom/special/trenner/gle_trennerg1.mdl" , "#", "#", 1, "", " 64,0,7", ""})
asmlib.InsertRecord({"models/ron/m_strom/special/trenner/gle_trennerg1.mdl" , "#", "#", 2, "", "-64,0,7", "0,-180,0"})
asmlib.DefaultType("Ron's 2ft track pack")
asmlib.InsertRecord({"models/ron/2ft/straight/straight_32.mdl" , "#", "#", 1, "", " 16 ,0,5.016", ""})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_32.mdl" , "#", "#", 2, "", "-16 ,0,5.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_64.mdl" , "#", "#", 1, "", " 32 ,0,5.016", ""})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_64.mdl" , "#", "#", 2, "", "-32 ,0,5.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_128.mdl" , "#", "#", 1, "", " 64 ,0,5.016", ""})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_128.mdl" , "#", "#", 2, "", "-64 ,0,5.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_256.mdl" , "#", "#", 1, "", " 128,0,5.016", ""})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_256.mdl" , "#", "#", 2, "", "-128,0,5.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_512.mdl" , "#", "#", 1, "", " 256,0,5.016", ""})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_512.mdl" , "#", "#", 2, "", "-256,0,5.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_1024.mdl", "#", "#", 1, "", " 512,0,5.016", ""})
asmlib.InsertRecord({"models/ron/2ft/straight/straight_1024.mdl", "#", "#", 2, "", "-512,0,5.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_left_1.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_left_1.mdl", "#", "#", 2, "", "-391.846,-77.978,6.016", "0,-157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_left_2.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_left_2.mdl", "#", "#", 2, "", "-439.352,-87.36,6.016", "0,-157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_left_3.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_left_3.mdl", "#", "#", 2, "", "-486.814,-96.707,6.016", "0,-157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_left_4.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_left_4.mdl", "#", "#", 2, "", "-534.192,-106.258,6.016", "0,-157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_right_1.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_right_1.mdl", "#", "#", 2, "", "-391.846,77.978,6.016", "0,157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_right_2.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_right_2.mdl", "#", "#", 2, "", "-439.352,87.36,6.016", "0,157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_right_3.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_right_3.mdl", "#", "#", 2, "", "-486.814,96.707,6.016", "0,157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_right_4.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_225_right_4.mdl", "#", "#", 2, "", "-534.192,106.258,6.016", "0,157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_left_1.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_left_1.mdl", "#", "#", 2, "", "-724.122,-299.876,6.016", "0,-135,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_left_2.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_left_2.mdl", "#", "#", 2, "", "-811.77,-336.23,6.016", "0,-135,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_left_3.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_left_3.mdl", "#", "#", 2, "", "-899.503,-372.497,6.016", "0,-135,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_left_4.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_left_4.mdl", "#", "#", 2, "", "-987.115,-408.885,6.016", "0,-135,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_right_1.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_right_1.mdl", "#", "#", 2, "", "-724.122,299.876,6.016", "0,135,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_right_2.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_right_2.mdl", "#", "#", 2, "", "-811.77,336.23,6.016", "0,135,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_right_3.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_right_3.mdl", "#", "#", 2, "", "-899.503,372.497,6.016", "0,135,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_right_4.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_45_right_4.mdl", "#", "#", 2, "", "-987.115,408.885,6.016", "0,135,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_90_1.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_90_1.mdl", "#", "#", 2, "", "-1024,-1024,6.016", "0,-90,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_90_2.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_90_2.mdl", "#", "#", 2, "", "-1148,-1148,6.016", "0,-90,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_90_3.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_90_3.mdl", "#", "#", 2, "", "-1272,-1272,6.016", "0,-90,0"})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_90_4.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/curves/curve_90_4.mdl", "#", "#", 2, "", "-1396,-1396,6.016", "0,-90,0"})
asmlib.InsertRecord({"models/ron/2ft/junctions/left_switched.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/junctions/left_switched.mdl", "#", "#", 2, "", "-384,0,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/junctions/left_switched.mdl", "#", "#", 3, "", "-391.842,-77.994,6.016", "0,-157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/junctions/left_unswitched.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/junctions/left_unswitched.mdl", "#", "#", 2, "", "-384,0,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/junctions/left_unswitched.mdl", "#", "#", 3, "", "-391.842,-77.994,6.016", "0,-157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/junctions/right_switched.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/junctions/right_switched.mdl", "#", "#", 2, "", "-384,0,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/junctions/right_switched.mdl", "#", "#", 3, "", "-391.842,77.994,6.016", "0,157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/junctions/right_unswitched.mdl", "#", "#", 1, "", "0,0,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/junctions/right_unswitched.mdl", "#", "#", 2, "", "-384,0,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/junctions/right_unswitched.mdl", "#", "#", 3, "", "-391.842,77.994,6.016", "0,157.5,0"})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_left_switched.mdl", "#", "#", 1, "", " 0 , 61.937,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_left_switched.mdl", "#", "#", 2, "", "-386, 61.937,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_left_switched.mdl", "#", "#", 3, "", "-704,-62.062,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_left_switched.mdl", "#", "#", 4, "", "-318,-62.062,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_left_unswitched.mdl", "#", "#", 1, "", " 0 , 62.062,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_left_unswitched.mdl", "#", "#", 2, "", "-386, 62.062,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_left_unswitched.mdl", "#", "#", 3, "", "-704,-61.938,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_left_unswitched.mdl", "#", "#", 4, "", "-318,-61.938,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_right_switched.mdl", "#", "#", 1, "", " 0 ,-62,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_right_switched.mdl", "#", "#", 2, "", "-386,-62,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_right_switched.mdl", "#", "#", 3, "", "-704, 62,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_right_switched.mdl", "#", "#", 4, "", "-318, 62,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_right_unswitched.mdl", "#", "#", 1, "", " 0 ,-62,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_right_unswitched.mdl", "#", "#", 2, "", "-386,-62,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_right_unswitched.mdl", "#", "#", 3, "", "-704, 62,6.016", "0,-180,0"})
asmlib.InsertRecord({"models/ron/2ft/sjunctions/s_junction_right_unswitched.mdl", "#", "#", 4, "", "-318, 62,6.016", ""})
asmlib.InsertRecord({"models/ron/2ft/misc/buffer.mdl", "#", "#", 1, "", "64,0,5.016", ""})
asmlib.InsertRecord({"models/ron/2ft/misc/passenger_crossing.mdl", "#", "#", 1, "", " 64,0,5.016", ""})
asmlib.InsertRecord({"models/ron/2ft/misc/passenger_crossing.mdl", "#", "#", 2, "", "-64,0,5.016", "0,-180,0"})
end

if(file.Exists(gsFullDSV.."PHYSPROPERTIES.txt", "DATA")) then
Expand Down

0 comments on commit e86337f

Please sign in to comment.