Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4100 for data


Ignore:
Timestamp:
Jul 4, 2006, 3:22:11 PM (18 years ago)
Author:
snellen
Message:

continued working

Location:
data/branches/presentation
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • data/branches/presentation/scripts/guard.lua

    r4080 r4100  
    217217guard:walkTo( 772.803284, height, -1489.560913)
    218218
     219guard:walkTo( 772.325012, height, -1500.850708)
     220guard:walkTo( 772.325012, height, -1500.850708)
     221guard:walkTo( 772.487854, height, -1508.028809)
     222guard:walkTo( 774.761047, height, -1519.442139)
     223guard:walkTo( 778.809204, height, -1525.292847)
     224guard:walkTo( 783.482666, height, -1530.000610)
     225guard:walkTo( 790.163269, height, -1536.350708)
     226guard:walkTo( 797.713745, height, -1542.968018)
     227guard:walkTo( 804.024475, height, -1548.390503)
     228guard:walkTo( 810.316406, height, -1553.796875)
     229guard:walkTo( 819.849731, height, -1561.323242)
     230guard:walkTo( 826.676819, height, -1566.627197)
     231guard:walkTo( 833.950928, height, -1572.278442)
     232guard:walkTo( 840.587036, height, -1577.434082)
     233guard:walkTo( 847.261230, height, -1582.458252)
     234guard:walkTo( 852.104797, height, -1586.104370)
     235guard:walkTo( 857.504944, height, -1590.169556)
     236guard:walkTo( 861.696411, height, -1593.324829)
     237guard:walkTo( 867.690613, height, -1597.837036)
     238guard:walkTo( 874.808105, height, -1604.437378)
     239guard:walkTo( 878.302429, height, -1608.333252)
     240guard:walkTo( 884.001892, height, -1614.366211)
     241guard:walkTo( 890.699646, height, -1621.398315)
     242guard:walkTo( 895.391052, height, -1626.179688)
     243guard:walkTo( 902.171509, height, -1633.090332)
     244guard:walkTo( 906.807495, height, -1637.957764)
     245guard:walkTo( 910.438599, height, -1641.770142)
     246guard:walkTo( 915.626160, height, -1647.216797)
     247guard:walkTo( 921.844727, height, -1653.745972)
     248guard:walkTo( 928.565125, height, -1660.801636)
     249guard:walkTo( 933.742004, height, -1666.236694)
     250guard:walkTo( 938.956543, height, -1671.711182)
     251guard:walkTo( 942.160706, height, -1675.745972)
     252guard:walkTo( 947.547302, height, -1681.952881)
     253guard:walkTo( 951.732483, height, -1687.077759)
     254guard:walkTo( 957.284851, height, -1693.876709)
     255guard:walkTo( 962.786438, height, -1700.614990)
     256guard:walkTo( 966.177246, height, -1705.151245)
     257guard:walkTo( 970.221619, height, -1710.886230)
     258guard:walkTo( 974.503113, height, -1717.243896)
     259guard:walkTo( 977.332153, height, -1722.064087)
     260guard:walkTo( 981.496887, height, -1729.391357)
     261guard:walkTo( 986.814148, height, -1738.394165)
     262guard:walkTo( 991.428650, height, -1745.393799)
     263guard:walkTo( 998.958069, height, -1755.184326)
     264guard:walkTo( 1003.995300, height, -1761.734131)
     265guard:walkTo( 1009.006226, height, -1768.234375)
     266guard:walkTo( 1013.550842, height, -1773.405029)
     267guard:walkTo( 1019.371277, height, -1778.674072)
     268guard:walkTo( 1024.703491, height, -1782.708618)
     269guard:walkTo( 1030.605469, height, -1787.173950)
     270guard:walkTo( 1036.072876, height, -1790.982056)
     271guard:walkTo( 1043.746094, height, -1795.485474)
     272guard:walkTo( 1050.884644, height, -1799.663574)
    219273hangarRouteProgrammed  = true
    220274end
     
    249303end
    250304
    251 if hangarReached then
    252 waveToSpaceship(timestep)
    253 end
    254 
    255 return false
     305return hangarReached
    256306end
    257307 
  • data/branches/presentation/scripts/hangar.lua

    r4080 r4100  
    55thisscript:addObject("SpaceShip", "spaceship")
    66thisscript:addObject("GenericNPC", "mechanic")
     7thisscript:addObject("GenericNPC", "mechanic2")
    78
    89-- Global Variables
     
    4041
    4142
    42 programRoute = true
     43mprogramRoute = true
    4344mheight = 5
    4445function mechanicMove(timestep)
    45 if programRoute then
     46if mprogramRoute then
    4647
    4748mechanic:walkTo( 991.192261, mheight, -1878.394287)
     
    112113mechanic:walkTo( 1019.079651, mheight, -1878.196777)
    113114
    114 programRoute = false
     115mprogramRoute = false
    115116end
    116117
    117118if mechanic:finalGoalReached() then
    118 programRoute = true
    119 end
    120 
    121 end
    122 
     119mprogramRoute = true
     120end
     121
     122end
     123
     124mtprogramRoute = true
     125mtheight = 5
     126waittime = 0
     127waiting = false
     128function mechanictMove(timestep)
     129if mtprogramRoute then
     130mechanic2:walkTo( 1564.473999, mtheight, -1923.821533)
     131mechanic2:walkTo( 1556.049927, mtheight, -1916.359009)
     132mechanic2:walkTo( 1550.970581, mtheight, -1913.087524)
     133mechanic2:walkTo( 1542.345459, mtheight, -1912.611938)
     134mechanic2:walkTo( 1534.643677, mtheight, -1912.361816)
     135mechanic2:walkTo( 1524.490845, mtheight, -1912.074097)
     136mechanic2:walkTo( 1516.120605, mtheight, -1912.511475)
     137mechanic2:walkTo( 1508.607788, mtheight, -1912.904175)
     138mechanic2:walkTo( 1498.452759, mtheight, -1913.434814)
     139mechanic2:walkTo( 1492.513916, mtheight, -1913.744995)
     140mechanic2:walkTo( 1483.056274, mtheight, -1914.239136)
     141mechanic2:walkTo( 1471.428711, mtheight, -1916.435303)
     142mechanic2:walkTo( 1460.068359, mtheight, -1916.473022)
     143mechanic2:walkTo( 1451.006592, mtheight, -1913.691772)
     144mechanic2:walkTo( 1444.585938, mtheight, -1911.533691)
     145mechanic2:walkTo( 1439.008423, mtheight, -1909.659058)
     146mechanic2:walkTo( 1421.636230, mtheight, -1915.466553)
     147mechanic2:walkTo( 1420.582275, mtheight, -1926.693970)
     148mechanic2:walkTo( 1422.506714, mtheight, -1934.938232)
     149mechanic2:walkTo( 1430.749023, mtheight, -1942.431519)
     150mechanic2:walkTo( 1440.773315, mtheight, -1948.152832)
     151mechanic2:walkTo( 1452.532227, mtheight, -1950.169800)
     152mechanic2:walkTo( 1465.584961, mtheight, -1949.407959)
     153mechanic2:walkTo( 1475.635254, mtheight, -1948.756226)
     154mechanic2:walkTo( 1481.961548, mtheight, -1948.346069)
     155mechanic2:walkTo( 1495.564575, mtheight, -1947.588257)
     156mechanic2:walkTo( 1505.660156, mtheight, -1947.679077)
     157mechanic2:walkTo( 1514.055542, mtheight, -1947.901245)
     158mechanic2:walkTo( 1523.532959, mtheight, -1948.351440)
     159mechanic2:walkTo( 1537.855347, mtheight, -1949.461914)
     160mechanic2:walkTo( 1545.510498, mtheight, -1950.162720)
     161mechanic2:walkTo( 1553.132935, mtheight, -1950.860718)
     162mechanic2:walkTo( 1556.371460, mtheight, -1951.157104)
     163mechanic2:walkTo( 1563.450806, mtheight, -1951.804932)
     164mechanic2:walkTo( 1572.594116, mtheight, -1952.320679)
     165mechanic2:walkTo( 1582.691772, mtheight, -1950.470459)
     166mechanic2:walkTo( 1589.872681, mtheight, -1929.683105)
     167mechanic2:walkTo( 1587.794922, mtheight, -1922.749756)
     168mechanic2:walkTo( 1582.800171, mtheight, -1917.671021)
     169mechanic2:walkTo( 1573.449951, mtheight, -1915.750854)
     170mechanic2:walkTo( 1564.055908, mtheight, -1914.986328)
     171mtprogramRoute = false
     172end
     173
     174mechanic2X = mechanic2:getAbsCoorX()
     175mechanic2Y = mechanic2:getAbsCoorY()
     176mechanic2Z = mechanic2:getAbsCoorZ()
     177
     178if dist(mechanic2X,mechanic2Y,mechanic2Z,1435.444824, mtheight, -1916.463013) < 10 and not waiting then
     179mechanic2:stop()
     180waittime = 5
     181--io.write("mechanic2 stoped \n")
     182waiting = true
     183end
     184
     185if waittime >= 0 and waiting then
     186waittime = waittime - timestep
     187--io.write(waittime,"\n")
     188if waittime < 0 then
     189--io.write("mechanic2 finished waiting\n")
     190mechanic2:resume()
     191end
     192end
     193
     194if dist(mechanic2X,mechanic2Y,mechanic2Z,1564.473999, mtheight, -1923.821533) < 10 and waiting then
     195waiting = false
     196end
     197
     198
     199if mechanic2:finalGoalReached() then
     200mtprogramRoute = true
     201end
     202
     203end
    123204
    124205
     
    156237if not spaceShipReleased then
    157238--spaceshipclaw:playAnimation(1,1)
    158 io.write("release spaceship\n")
     239--io.write("release spaceship\n")
    159240spaceShipReleased = true
    160241playerEnteredSpaceShip = true
     
    226307observePlayer()
    227308mechanicMove(timestep)
     309mechanictMove(timestep)
    228310
    229311if playerReachedTrigger and not spaceshipLaunchReady then
  • data/branches/presentation/scripts/prisoner.lua

    r4080 r4100  
    1717
    1818randTime = 0
    19 height = 34
     19height = 36
    2020
    2121
     
    4949distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ)
    5050
    51 if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 100 then
     51if dist( playerX,playerY,playerZ,161.76,49,408.87 ) < 50 then
    5252playerInLock = true
    5353end
     
    7272
    7373if not walkProgrammed then
    74 prisoner:walkTo( -66.454849, height, 62.363449)
    75 prisoner:walkTo( -66.454849, height, 62.363449)
     74--prisoner:walkTo( -66.454849, height, 62.363449)
     75--prisoner:walkTo( -66.454849, height, 62.363449)
    7676prisoner:walkTo( -63.214821, height, 62.429710)
    7777prisoner:walkTo( -56.661182, height, 62.563740)
     
    245245prisoner:walkTo( 769.463684, height, -1430.375244)
    246246prisoner:walkTo( 769.351685, height, -1451.503418)
     247
     248prisoner:walkTo( 775.508972, height, -1457.168213)
     249prisoner:walkTo( 776.536743, height, -1462.372925)
     250prisoner:walkTo( 778.141663, height, -1470.500732)
     251prisoner:walkTo( 779.744995, height, -1478.620117)
     252prisoner:walkTo( 782.587646, height, -1489.528198)
     253prisoner:walkTo( 785.285156, height, -1497.338013)
     254prisoner:walkTo( 788.850159, height, -1506.399414)
     255prisoner:walkTo( 792.417053, height, -1515.465820)
     256prisoner:walkTo( 796.757446, height, -1525.825684)
     257prisoner:walkTo( 802.122009, height, -1534.417847)
     258prisoner:walkTo( 808.422058, height, -1541.669067)
     259prisoner:walkTo( 816.134949, height, -1549.770508)
     260prisoner:walkTo( 824.352783, height, -1557.150024)
     261prisoner:walkTo( 832.695801, height, -1563.451172)
     262prisoner:walkTo( 843.443665, height, -1571.163818)
     263prisoner:walkTo( 850.623901, height, -1576.316284)
     264prisoner:walkTo( 859.099182, height, -1580.545166)
     265prisoner:walkTo( 868.999939, height, -1585.129028)
     266prisoner:walkTo( 879.254211, height, -1588.827148)
     267prisoner:walkTo( 888.822021, height, -1592.277832)
     268prisoner:walkTo( 895.563293, height, -1594.931885)
     269prisoner:walkTo( 900.941589, height, -1597.049438)
     270prisoner:walkTo( 907.684387, height, -1599.704102)
     271prisoner:walkTo( 914.599243, height, -1604.825928)
     272prisoner:walkTo( 919.703430, height, -1609.984619)
     273prisoner:walkTo( 925.728088, height, -1616.250977)
     274prisoner:walkTo( 930.751343, height, -1621.475830)
     275prisoner:walkTo( 934.714905, height, -1625.719360)
     276prisoner:walkTo( 940.166260, height, -1631.555664)
     277prisoner:walkTo( 946.152344, height, -1637.964600)
     278prisoner:walkTo( 953.042297, height, -1646.456421)
     279prisoner:walkTo( 958.174194, height, -1654.167847)
     280prisoner:walkTo( 964.112854, height, -1663.534424)
     281prisoner:walkTo( 968.981812, height, -1670.229248)
     282prisoner:walkTo( 975.821045, height, -1678.569946)
     283prisoner:walkTo( 982.743835, height, -1687.244385)
     284prisoner:walkTo( 990.572571, height, -1697.622559)
     285prisoner:walkTo( 995.849670, height, -1704.618164)
     286prisoner:walkTo( 1001.152649, height, -1711.648193)
     287prisoner:walkTo( 1005.204590, height, -1717.019531)
     288prisoner:walkTo( 1012.097412, height, -1725.154907)
     289prisoner:walkTo( 1017.283020, height, -1731.152222)
     290prisoner:walkTo( 1022.044250, height, -1736.658936)
     291prisoner:walkTo( 1028.422852, height, -1744.234863)
     292prisoner:walkTo( 1033.080688, height, -1749.780884)
     293prisoner:walkTo( 1036.395874, height, -1753.908936)
     294prisoner:walkTo( 1040.509155, height, -1759.065186)
     295prisoner:walkTo( 1044.627441, height, -1764.227783)
     296prisoner:walkTo( 1050.220093, height, -1770.871094)
     297prisoner:walkTo( 1054.504883, height, -1775.961060)
     298prisoner:walkTo( 1060.259888, height, -1782.490723)
     299prisoner:walkTo( 1067.060913, height, -1789.939209)
     300prisoner:walkTo( 1072.477173, height, -1795.898315)
     301prisoner:walkTo( 1076.556152, height, -1800.990845)
     302prisoner:walkTo( 1080.718018, height, -1806.200439)
     303prisoner:walkTo( 1085.281494, height, -1811.912476)
     304prisoner:walkTo( 1090.934448, height, -1817.621094)
     305prisoner:walkTo( 1095.896240, height, -1822.369141)
     306prisoner:walkTo( 1100.940430, height, -1827.278564)
     307prisoner:walkTo( 1107.045898, height, -1833.460693)
     308prisoner:walkTo( 1113.230103, height, -1839.722534)
     309
    247310hangarRouteProgrammed = true
    248311end
     
    253316
    254317if dist( thisX,thisY,thisZ, 3.175952, 29, -1610.220093) < 60 then
     318prisoner:hide()
    255319return true
    256320end
  • data/branches/presentation/worlds/sp_level_ambush_at_jupiter.oxw

    r4094 r4100  
    167167       <model>models/creatures/male.md2, 10</model>
    168168       <md2texture>male_albat.pcx</md2texture>
    169        <abs-coor>-69,34, 74</abs-coor>
     169       <abs-coor>-69,36, 74</abs-coor>
    170170       <abs-dir>-1.55, 0, 1, 0</abs-dir>
    171171    </GenericNPC>
     
    208208       <md2texture>male_navy2.pcx</md2texture>
    209209       <abs-coor>991.192261, 5, -1878.394287</abs-coor>
     210       <abs-dir>0, 0, 1, 0</abs-dir>
     211    </GenericNPC>
     212   
     213   
     214    <GenericNPC>
     215       <name>mechanic2</name>
     216       <model>models/creatures/male.md2, 10</model>
     217       <md2texture>male_navy2.pcx</md2texture>
     218       <abs-coor>1564.473999, 5, -1923.821533</abs-coor>
    210219       <abs-dir>0, 0, 1, 0</abs-dir>
    211220    </GenericNPC>
     
    236245    <FPSPlayer>
    237246      <name>Player</name>
    238       <abs-coor>-148,49,87</abs-coor>
     247      <abs-coor>-148,20,87</abs-coor>
    239248      <model>models/creatures/droidika.md2, 10</model>
    240249      <md2texture>droidika.png</md2texture>
Note: See TracChangeset for help on using the changeset viewer.