18.06.2015, 17:10
(
Last edited by adri1; 23/06/2015 at 11:52 AM.
)
Editor: https://sampforum.blast.hk/showthread.php?pid=3498845#pid3498845
This is a test map from my Tube editor.
This is a test map from my Tube editor.
Code:
//0.3.7 Tube Connector 1.10 #define TUBE (0) #define COVER (1) #define LIGHT (2) #define SUPPORT (3) #define TBR_RED (0) #define TBR_GREEN (1) #define TBR_BLUE (2) #define TBR_YELLOW (3) #define TBR_PURPLE (4) //TUBES: Func_TubeConnector(TUBE, TBR_RED, 19646, 1514.179199, -1567.319458, 68.377532, 0.000000, 0.000000, 0.000000, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19689, 1531.357055, -1567.319458, 70.801536, -0.000000, -44.999992, -0.000045, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19688, 1552.010009, -1567.319458, 84.601135, -0.000000, -44.999992, -0.000057, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19688, 1576.377807, -1567.319458, 84.603256, -0.000010, 0.000003, -0.000065, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19687, 1595.543945, -1567.319458, 68.864456, -0.000000, 45.000007, -0.000061, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19686, 1613.776245, -1567.319458, 51.789592, 0.000000, -44.999996, 179.999893, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19686, 1635.360717, -1567.319458, 39.325565, 0.000000, -29.999996, 179.999847, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19686, 1659.435668, -1567.319458, 32.872699, 0.000000, -14.999996, 179.999801, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19686, 1684.360351, -1567.319580, 32.870750, 0.000000, -0.000003, 179.999755, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19682, 1708.311401, -1564.714721, 38.262351, -9.999997, -9.999993, 44.999732, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19682, 1724.755981, -1547.232177, 42.428295, -14.105639, 0.110204, 90.890464, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19682, 1724.389526, -1522.874877, 42.382999, -9.846571, 10.151105, 136.753524, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19682, 1707.426391, -1505.910766, 38.152988, 0.106894, 14.105663, -179.136352, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19686, 1683.290527, -1503.859741, 32.935722, -0.106893, -14.105663, 0.863651, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19686, 1658.371704, -1504.234619, 33.322814, -0.106904, 0.894351, 0.863665, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19686, 1634.402099, -1504.583251, 40.146911, -0.106902, 15.894345, 0.863664, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19686, 1613.014892, -1504.881713, 52.942958, -0.106904, 30.894348, 0.863658, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19687, 1595.097045, -1505.119628, 70.253807, 0.106905, -45.894355, -179.136306, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19683, 1577.135009, -1505.358154, 87.611137, 0.106915, -45.894340, -179.136276, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19683, 1555.746582, -1505.656860, 100.412773, 0.106926, -30.894340, -179.136260, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19683, 1531.774291, -1506.005615, 107.241973, 0.106928, -15.894353, -179.136230, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19646, 1514.327636, -1506.266601, 108.331283, 0.106929, -0.894345, -179.136215, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19661, 1498.744140, -1511.729248, 108.585563, -0.894340, -0.106942, -89.137878, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19661, 1499.042724, -1533.058715, 108.625732, -0.106919, 0.894342, 0.863796, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19688, 1521.922485, -1537.969970, 105.855270, -0.106933, 0.894341, 0.863795, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19649, 1549.535034, -1537.600341, 80.845031, -0.106933, 45.894340, 0.863795, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19686, 1576.196044, -1537.247436, 54.511997, 0.106937, -45.894340, -179.136184, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19686, 1597.581176, -1536.948852, 41.712604, 0.106937, -30.894340, -179.136154, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19686, 1621.549926, -1536.600097, 34.884761, 0.106928, -15.894353, -179.136093, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19686, 1646.468872, -1536.225097, 34.493770, 0.106929, -0.894345, -179.136077, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19667, 1651.080078, -1541.644409, 67.620407, -0.106929, -14.105658, 0.863910, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19646, 1663.769653, -1547.058959, 37.979209, -0.106937, -14.105648, 0.863936, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19646, 1673.466918, -1546.908203, 40.416313, -0.106937, -14.105648, 0.863966, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19646, 1683.164184, -1546.757446, 42.853416, -0.106937, -14.105648, 0.863997, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19646, 1692.861450, -1546.606689, 45.290519, -0.106937, -14.105648, 0.864027, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19646, 1702.558715, -1546.455932, 47.727622, -0.106937, -14.105648, 0.864058, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19646, 1712.255981, -1546.305175, 50.164726, -0.106937, -14.105648, 0.864088, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19646, 1721.953247, -1546.154418, 52.601829, -0.106937, -14.105648, 0.864119, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19661, 1737.066162, -1540.691162, 56.410037, -14.105624, 0.110262, 90.891006, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19661, 1736.766723, -1519.361694, 56.375804, 0.106939, 14.105648, -179.135803, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19646, 1721.496093, -1514.348022, 52.548137, 0.106939, 14.105648, -179.135757, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19646, 1711.798828, -1514.498779, 50.111034, 0.106939, 14.105648, -179.135711, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19686, 1694.662109, -1514.763793, 46.648139, -0.106937, -14.105648, 0.864287, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19651, 1682.103881, -1499.018554, 55.996032, -0.106937, 0.894351, 0.864317, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19651, 1682.415405, -1498.976440, 75.993560, -0.106932, 0.894341, 0.864317, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19688, 1670.595581, -1515.057983, 83.789451, 0.106933, -0.894341, -179.135650, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19687, 1651.188842, -1515.379516, 68.351753, 0.106932, 44.105659, -179.135635, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19646, 1638.624633, -1515.591796, 56.172058, 0.106932, 44.105655, -179.135604, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19689, 1624.604736, -1515.822265, 45.957111, 0.106931, -0.894344, -179.135604, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19689, 1600.248291, -1516.189086, 46.337516, 0.106942, -45.894344, -179.135604, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19681, 1581.522949, -1514.018554, 62.135925, -0.106933, 45.894340, 0.864380, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19681, 1569.274658, -1496.952270, 74.473442, -30.601375, 36.041027, -34.008987, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19681, 1568.906860, -1472.593261, 74.428230, -45.894222, -0.153633, -89.245903, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19681, 1580.635009, -1455.210815, 62.026771, -30.425849, -36.182815, -144.334182, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19689, 1599.293457, -1452.535644, 46.216041, -0.106904, 0.894306, -359.135528, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19686, 1623.907348, -1452.167968, 44.225524, 0.106915, -0.894309, -179.135467, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19686, 1648.078125, -1451.791870, 50.298049, 0.106918, 14.105656, -179.135452, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19649, 1681.204223, -1451.259277, 67.808105, -0.106919, -29.105648, 0.864564, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19687, 1713.968017, -1450.730834, 86.050781, -0.106939, -29.105649, 0.864587, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19683, 1736.176513, -1450.374389, 97.479652, -0.106939, -29.105649, 0.864602, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19683, 1760.349853, -1449.998168, 103.557182, -0.106939, -14.105649, 0.864617, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19681, 1785.035278, -1452.037841, 103.983818, 0.106937, -0.894351, -179.135314, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19681, 1802.517822, -1469.002563, 103.747085, 0.708001, -0.556802, 135.867263, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19687, 1805.311889, -1493.608398, 103.755271, -0.894338, -0.106958, -89.137001, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19687, 1805.689208, -1518.609375, 103.801948, -0.894337, -0.106962, -89.136978, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19687, 1806.066528, -1543.610351, 103.848625, -0.894337, -0.106962, -89.136947, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19681, 1804.015869, -1568.324218, 103.932525, 0.894337, 0.106962, 90.863029, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19681, 1787.053833, -1585.808227, 104.233558, 0.556750, 0.708043, 45.860408, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19688, 1762.696044, -1588.602783, 102.194236, 0.106949, -0.894339, -179.135299, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19683, 1743.871215, -1588.916748, 86.189285, 0.106949, 44.105659, -179.135284, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19687, 1730.384399, -1589.159423, 65.241172, 0.106949, 59.105655, -179.135253, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19686, 1716.865356, -1589.402832, 44.237792, -0.106950, -59.105648, 0.864759, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19689, 1698.055175, -1589.716674, 28.238929, 0.106976, -0.894359, -179.135223, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19686, 1673.390991, -1590.091308, 27.017749, -0.106974, 0.894344, 0.864791, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19689, 1650.131591, -1590.426879, 35.310729, 0.106963, -60.894336, -179.135208, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19689, 1638.282104, -1590.566162, 56.596633, 0.106964, -105.894340, -179.135192, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19689, 1644.952880, -1590.421752, 80.027374, 0.106964, -150.894348, -179.135192, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19689, 1666.235961, -1590.078369, 91.877548, 0.106967, -195.894332, -179.135192, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19683, 1690.823730, -1589.713989, 88.244033, 0.106975, -195.894332, -179.135192, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19687, 1673.786132, -1589.417358, 70.536514, -0.406967, 359.101074, -0.864854, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19682, 1698.497070, -1587.363647, 70.906486, -0.923401, -0.347889, 44.135524, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19682, 1715.978637, -1570.399291, 71.054389, -0.898917, 0.406997, 89.141494, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19661, 1713.520996, -1547.514404, 70.848152, 0.406944, 0.898941, 179.135070, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19661, 1692.194824, -1547.171752, 70.513328, 0.898918, -0.406994, -90.858535, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19662, 1681.397338, -1568.343383, 70.500450, -0.898923, 0.406984, 89.141433, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19687, 1658.153808, -1573.245971, 70.174240, 0.406933, 0.898946, 179.135025, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19682, 1633.442871, -1575.299560, 69.804252, 0.923391, 0.347913, -135.864578, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19681, 1612.586059, -1588.785400, 69.578216, -0.923391, -0.347913, 44.135406, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19649, 1575.377563, -1590.650756, 69.012115, 0.406947, 0.898940, 179.134979, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19683, 1537.933105, -1590.095458, 67.606056, 0.406947, 0.898940, 179.134948, 300.0); Func_TubeConnector(TUBE, TBR_RED, 19686, 1513.514160, -1589.763916, 62.348903, -0.406947, -15.898940, -0.865055, 300.0); Func_TubeConnector(TUBE, TBR_GREEN, 19646, 1496.067382, -1589.508178, 61.258224, 0.406953, 0.898921, 179.134918, 300.0); Func_TubeConnector(TUBE, TBR_BLUE, 19655, 1480.567382, -1573.323486, 65.898674, -0.406959, -0.898934, -0.865099, 300.0); Func_TubeConnector(TUBE, TBR_YELLOW, 19646, 1496.391845, -1557.609252, 71.031166, -0.406956, -0.898935, -0.865101, 300.0); Func_TubeConnector(TUBE, TBR_PURPLE, 19646, 1506.389526, -1557.759155, 71.188049, -0.406956, -0.898935, -0.865101, 300.0); //COVERS: Func_TubeConnector(COVER, TBR_PURPLE, 19682, 1706.971069, -1564.724975, 43.596504, -0.106876, 165.894332, 0.863646, 300.0); Func_TubeConnector(COVER, TBR_RED, 19682, 1723.415649, -1547.242431, 47.762447, -10.000024, 169.999969, 44.999759, 300.0); Func_TubeConnector(COVER, TBR_GREEN, 19682, 1723.049194, -1522.885131, 47.717155, -14.105641, -179.889770, 90.890487, 300.0); Func_TubeConnector(COVER, TBR_BLUE, 19682, 1706.086059, -1505.921020, 43.487144, -9.846550, -169.848892, 136.753555, 300.0); Func_TubeConnector(COVER, TBR_GREEN, 19646, 1662.429321, -1547.069213, 43.313365, -0.106937, 165.894348, 0.863966, 300.0); Func_TubeConnector(COVER, TBR_YELLOW, 19646, 1681.823852, -1546.767700, 48.187572, -0.106937, 165.894348, 0.864027, 300.0); Func_TubeConnector(COVER, TBR_RED, 19646, 1701.218383, -1546.466186, 53.061779, -0.106937, 165.894348, 0.864088, 300.0); Func_TubeConnector(COVER, TBR_BLUE, 19646, 1720.612915, -1546.164672, 57.935985, -0.106937, 165.894348, 0.864149, 300.0); Func_TubeConnector(COVER, TBR_YELLOW, 19651, 1682.189575, -1499.006958, 61.495353, -0.106932, 180.894348, 0.864317, 300.0); Func_TubeConnector(COVER, TBR_BLUE, 19655, 1480.481689, -1573.283081, 71.397857, 0.406962, -179.101058, 179.134887, 300.0); Func_TubeConnector(COVER, TBR_YELLOW, 19646, 1496.306152, -1557.568847, 76.530349, -0.406956, 179.101058, -0.865101, 300.0); Func_TubeConnector(COVER, TBR_PURPLE, 19646, 1506.303833, -1557.718750, 76.687232, -0.406956, 179.101058, -0.865101, 300.0); //SUPPORTS: Func_TubeConnector(SUPPORT, -1, 19670, 1514.179199, -1567.319458, 18.352432, 0.000000, 0.000007, 0.000000, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1519.755004, -1567.319458, 18.317535, 0.000000, -0.000007, 179.999908, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1564.775756, -1567.319458, 36.985755, -0.000000, 0.000007, -0.000061, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1672.480346, -1567.319580, -17.921550, 0.000002, -0.000007, 179.999710, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1669.457641, -1504.162597, -17.648643, -0.106902, 0.894344, 0.863664, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1513.548339, -1506.371704, 58.312366, 0.106929, -0.894341, -179.136199, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1497.305175, -1511.194213, 58.575580, 0.556774, 0.708024, 45.859516, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1497.623291, -1533.823486, 58.618175, 0.707999, -0.556806, 135.866394, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1509.581420, -1538.244628, 58.424747, -0.106933, 0.894341, 0.863795, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1633.800415, -1536.510498, -16.106822, 0.106929, -0.894341, -179.136062, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1681.084716, -1483.225585, 5.947441, -0.106932, 0.894341, 0.864317, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1784.255981, -1452.143066, 53.964900, 0.474872, -0.765369, 155.866989, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1801.738525, -1469.107666, 53.728164, 0.876980, -0.205398, 110.865371, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1804.532592, -1493.713500, 53.736354, -0.894337, -0.106962, -89.136978, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1804.909912, -1518.714477, 53.783031, -0.894337, -0.106962, -89.136947, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1805.287231, -1543.715454, 53.829708, -0.894337, -0.106962, -89.136947, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1803.236572, -1568.429321, 53.913608, 0.765336, 0.474925, 65.860671, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1786.274536, -1585.913330, 54.214637, 0.205369, 0.876987, 20.862264, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1773.553466, -1588.528198, 54.401531, 0.106949, -0.894339, -179.135284, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1716.757934, -1570.766357, 21.036708, -0.986693, -0.011071, 64.138183, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1658.933227, -1573.613037, 20.156558, 0.406933, 0.898946, 179.134979, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1634.222290, -1575.666625, 19.786567, 0.689842, 0.705568, -160.866012, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1613.365478, -1589.152465, 19.560531, -0.689854, -0.705557, 19.133943, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1576.156982, -1591.017822, 18.994434, 0.406947, 0.898940, 179.134948, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1550.576904, -1590.634399, 18.593730, 0.406947, 0.898940, 179.134918, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1496.846679, -1589.875244, 11.240543, 0.406959, 0.898934, 179.134887, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1476.128051, -1573.612304, 15.799098, -0.898913, 0.407006, 89.141265, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1497.171264, -1557.976318, 21.013484, -0.406956, -0.898935, -0.865101, 300.0); Func_TubeConnector(SUPPORT, -1, 19670, 1507.168945, -1558.126220, 21.170368, -0.406956, -0.898935, -0.865101, 300.0); //FUNCTIONS (COPY IF YOU HAVEN'T): Func_TubeConnector(tubetype, tubecolor, modelid, Float:X, Float:Y, Float:Z, Float:RX, Float:RY, Float:RZ, Float:distance) { distance = 2000.0; //Delete if you'll use streamer new tube = CreateObject(modelid, X, Y, Z, RX, RY, RZ, distance); switch(tubecolor) { case 0: SetObjectMaterial(tube, 0, 19659, "MatTubes", "RedDirt1"); case 1: SetObjectMaterial(tube, 0, 19659, "MatTubes", "GreenDirt1"); case 2: SetObjectMaterial(tube, 0, 19659, "MatTubes", "BlueDirt1"); case 3: SetObjectMaterial(tube, 0, 19659, "MatTubes", "YellowDirt1"); case 4: SetObjectMaterial(tube, 0, 19659, "MatTubes", "PurpleDirt1"); } return tube; } //0.3.7 Tube Connector 1.10 //Created by adri1