Changeset 4100 for data/branches
- Timestamp:
- Jul 4, 2006, 3:22:11 PM (18 years ago)
- Location:
- data/branches/presentation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/presentation/scripts/guard.lua
r4080 r4100 217 217 guard:walkTo( 772.803284, height, -1489.560913) 218 218 219 guard:walkTo( 772.325012, height, -1500.850708) 220 guard:walkTo( 772.325012, height, -1500.850708) 221 guard:walkTo( 772.487854, height, -1508.028809) 222 guard:walkTo( 774.761047, height, -1519.442139) 223 guard:walkTo( 778.809204, height, -1525.292847) 224 guard:walkTo( 783.482666, height, -1530.000610) 225 guard:walkTo( 790.163269, height, -1536.350708) 226 guard:walkTo( 797.713745, height, -1542.968018) 227 guard:walkTo( 804.024475, height, -1548.390503) 228 guard:walkTo( 810.316406, height, -1553.796875) 229 guard:walkTo( 819.849731, height, -1561.323242) 230 guard:walkTo( 826.676819, height, -1566.627197) 231 guard:walkTo( 833.950928, height, -1572.278442) 232 guard:walkTo( 840.587036, height, -1577.434082) 233 guard:walkTo( 847.261230, height, -1582.458252) 234 guard:walkTo( 852.104797, height, -1586.104370) 235 guard:walkTo( 857.504944, height, -1590.169556) 236 guard:walkTo( 861.696411, height, -1593.324829) 237 guard:walkTo( 867.690613, height, -1597.837036) 238 guard:walkTo( 874.808105, height, -1604.437378) 239 guard:walkTo( 878.302429, height, -1608.333252) 240 guard:walkTo( 884.001892, height, -1614.366211) 241 guard:walkTo( 890.699646, height, -1621.398315) 242 guard:walkTo( 895.391052, height, -1626.179688) 243 guard:walkTo( 902.171509, height, -1633.090332) 244 guard:walkTo( 906.807495, height, -1637.957764) 245 guard:walkTo( 910.438599, height, -1641.770142) 246 guard:walkTo( 915.626160, height, -1647.216797) 247 guard:walkTo( 921.844727, height, -1653.745972) 248 guard:walkTo( 928.565125, height, -1660.801636) 249 guard:walkTo( 933.742004, height, -1666.236694) 250 guard:walkTo( 938.956543, height, -1671.711182) 251 guard:walkTo( 942.160706, height, -1675.745972) 252 guard:walkTo( 947.547302, height, -1681.952881) 253 guard:walkTo( 951.732483, height, -1687.077759) 254 guard:walkTo( 957.284851, height, -1693.876709) 255 guard:walkTo( 962.786438, height, -1700.614990) 256 guard:walkTo( 966.177246, height, -1705.151245) 257 guard:walkTo( 970.221619, height, -1710.886230) 258 guard:walkTo( 974.503113, height, -1717.243896) 259 guard:walkTo( 977.332153, height, -1722.064087) 260 guard:walkTo( 981.496887, height, -1729.391357) 261 guard:walkTo( 986.814148, height, -1738.394165) 262 guard:walkTo( 991.428650, height, -1745.393799) 263 guard:walkTo( 998.958069, height, -1755.184326) 264 guard:walkTo( 1003.995300, height, -1761.734131) 265 guard:walkTo( 1009.006226, height, -1768.234375) 266 guard:walkTo( 1013.550842, height, -1773.405029) 267 guard:walkTo( 1019.371277, height, -1778.674072) 268 guard:walkTo( 1024.703491, height, -1782.708618) 269 guard:walkTo( 1030.605469, height, -1787.173950) 270 guard:walkTo( 1036.072876, height, -1790.982056) 271 guard:walkTo( 1043.746094, height, -1795.485474) 272 guard:walkTo( 1050.884644, height, -1799.663574) 219 273 hangarRouteProgrammed = true 220 274 end … … 249 303 end 250 304 251 if hangarReached then 252 waveToSpaceship(timestep) 253 end 254 255 return false 305 return hangarReached 256 306 end 257 307 -
data/branches/presentation/scripts/hangar.lua
r4080 r4100 5 5 thisscript:addObject("SpaceShip", "spaceship") 6 6 thisscript:addObject("GenericNPC", "mechanic") 7 thisscript:addObject("GenericNPC", "mechanic2") 7 8 8 9 -- Global Variables … … 40 41 41 42 42 programRoute = true43 mprogramRoute = true 43 44 mheight = 5 44 45 function mechanicMove(timestep) 45 if programRoute then46 if mprogramRoute then 46 47 47 48 mechanic:walkTo( 991.192261, mheight, -1878.394287) … … 112 113 mechanic:walkTo( 1019.079651, mheight, -1878.196777) 113 114 114 programRoute = false115 mprogramRoute = false 115 116 end 116 117 117 118 if mechanic:finalGoalReached() then 118 programRoute = true 119 end 120 121 end 122 119 mprogramRoute = true 120 end 121 122 end 123 124 mtprogramRoute = true 125 mtheight = 5 126 waittime = 0 127 waiting = false 128 function mechanictMove(timestep) 129 if mtprogramRoute then 130 mechanic2:walkTo( 1564.473999, mtheight, -1923.821533) 131 mechanic2:walkTo( 1556.049927, mtheight, -1916.359009) 132 mechanic2:walkTo( 1550.970581, mtheight, -1913.087524) 133 mechanic2:walkTo( 1542.345459, mtheight, -1912.611938) 134 mechanic2:walkTo( 1534.643677, mtheight, -1912.361816) 135 mechanic2:walkTo( 1524.490845, mtheight, -1912.074097) 136 mechanic2:walkTo( 1516.120605, mtheight, -1912.511475) 137 mechanic2:walkTo( 1508.607788, mtheight, -1912.904175) 138 mechanic2:walkTo( 1498.452759, mtheight, -1913.434814) 139 mechanic2:walkTo( 1492.513916, mtheight, -1913.744995) 140 mechanic2:walkTo( 1483.056274, mtheight, -1914.239136) 141 mechanic2:walkTo( 1471.428711, mtheight, -1916.435303) 142 mechanic2:walkTo( 1460.068359, mtheight, -1916.473022) 143 mechanic2:walkTo( 1451.006592, mtheight, -1913.691772) 144 mechanic2:walkTo( 1444.585938, mtheight, -1911.533691) 145 mechanic2:walkTo( 1439.008423, mtheight, -1909.659058) 146 mechanic2:walkTo( 1421.636230, mtheight, -1915.466553) 147 mechanic2:walkTo( 1420.582275, mtheight, -1926.693970) 148 mechanic2:walkTo( 1422.506714, mtheight, -1934.938232) 149 mechanic2:walkTo( 1430.749023, mtheight, -1942.431519) 150 mechanic2:walkTo( 1440.773315, mtheight, -1948.152832) 151 mechanic2:walkTo( 1452.532227, mtheight, -1950.169800) 152 mechanic2:walkTo( 1465.584961, mtheight, -1949.407959) 153 mechanic2:walkTo( 1475.635254, mtheight, -1948.756226) 154 mechanic2:walkTo( 1481.961548, mtheight, -1948.346069) 155 mechanic2:walkTo( 1495.564575, mtheight, -1947.588257) 156 mechanic2:walkTo( 1505.660156, mtheight, -1947.679077) 157 mechanic2:walkTo( 1514.055542, mtheight, -1947.901245) 158 mechanic2:walkTo( 1523.532959, mtheight, -1948.351440) 159 mechanic2:walkTo( 1537.855347, mtheight, -1949.461914) 160 mechanic2:walkTo( 1545.510498, mtheight, -1950.162720) 161 mechanic2:walkTo( 1553.132935, mtheight, -1950.860718) 162 mechanic2:walkTo( 1556.371460, mtheight, -1951.157104) 163 mechanic2:walkTo( 1563.450806, mtheight, -1951.804932) 164 mechanic2:walkTo( 1572.594116, mtheight, -1952.320679) 165 mechanic2:walkTo( 1582.691772, mtheight, -1950.470459) 166 mechanic2:walkTo( 1589.872681, mtheight, -1929.683105) 167 mechanic2:walkTo( 1587.794922, mtheight, -1922.749756) 168 mechanic2:walkTo( 1582.800171, mtheight, -1917.671021) 169 mechanic2:walkTo( 1573.449951, mtheight, -1915.750854) 170 mechanic2:walkTo( 1564.055908, mtheight, -1914.986328) 171 mtprogramRoute = false 172 end 173 174 mechanic2X = mechanic2:getAbsCoorX() 175 mechanic2Y = mechanic2:getAbsCoorY() 176 mechanic2Z = mechanic2:getAbsCoorZ() 177 178 if dist(mechanic2X,mechanic2Y,mechanic2Z,1435.444824, mtheight, -1916.463013) < 10 and not waiting then 179 mechanic2:stop() 180 waittime = 5 181 --io.write("mechanic2 stoped \n") 182 waiting = true 183 end 184 185 if waittime >= 0 and waiting then 186 waittime = waittime - timestep 187 --io.write(waittime,"\n") 188 if waittime < 0 then 189 --io.write("mechanic2 finished waiting\n") 190 mechanic2:resume() 191 end 192 end 193 194 if dist(mechanic2X,mechanic2Y,mechanic2Z,1564.473999, mtheight, -1923.821533) < 10 and waiting then 195 waiting = false 196 end 197 198 199 if mechanic2:finalGoalReached() then 200 mtprogramRoute = true 201 end 202 203 end 123 204 124 205 … … 156 237 if not spaceShipReleased then 157 238 --spaceshipclaw:playAnimation(1,1) 158 io.write("release spaceship\n")239 --io.write("release spaceship\n") 159 240 spaceShipReleased = true 160 241 playerEnteredSpaceShip = true … … 226 307 observePlayer() 227 308 mechanicMove(timestep) 309 mechanictMove(timestep) 228 310 229 311 if playerReachedTrigger and not spaceshipLaunchReady then -
data/branches/presentation/scripts/prisoner.lua
r4080 r4100 17 17 18 18 randTime = 0 19 height = 3 419 height = 36 20 20 21 21 … … 49 49 distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ) 50 50 51 if dist( playerX,playerY,playerZ,161.76,49, 358.87 ) < 100 then51 if dist( playerX,playerY,playerZ,161.76,49,408.87 ) < 50 then 52 52 playerInLock = true 53 53 end … … 72 72 73 73 if 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) 76 76 prisoner:walkTo( -63.214821, height, 62.429710) 77 77 prisoner:walkTo( -56.661182, height, 62.563740) … … 245 245 prisoner:walkTo( 769.463684, height, -1430.375244) 246 246 prisoner:walkTo( 769.351685, height, -1451.503418) 247 248 prisoner:walkTo( 775.508972, height, -1457.168213) 249 prisoner:walkTo( 776.536743, height, -1462.372925) 250 prisoner:walkTo( 778.141663, height, -1470.500732) 251 prisoner:walkTo( 779.744995, height, -1478.620117) 252 prisoner:walkTo( 782.587646, height, -1489.528198) 253 prisoner:walkTo( 785.285156, height, -1497.338013) 254 prisoner:walkTo( 788.850159, height, -1506.399414) 255 prisoner:walkTo( 792.417053, height, -1515.465820) 256 prisoner:walkTo( 796.757446, height, -1525.825684) 257 prisoner:walkTo( 802.122009, height, -1534.417847) 258 prisoner:walkTo( 808.422058, height, -1541.669067) 259 prisoner:walkTo( 816.134949, height, -1549.770508) 260 prisoner:walkTo( 824.352783, height, -1557.150024) 261 prisoner:walkTo( 832.695801, height, -1563.451172) 262 prisoner:walkTo( 843.443665, height, -1571.163818) 263 prisoner:walkTo( 850.623901, height, -1576.316284) 264 prisoner:walkTo( 859.099182, height, -1580.545166) 265 prisoner:walkTo( 868.999939, height, -1585.129028) 266 prisoner:walkTo( 879.254211, height, -1588.827148) 267 prisoner:walkTo( 888.822021, height, -1592.277832) 268 prisoner:walkTo( 895.563293, height, -1594.931885) 269 prisoner:walkTo( 900.941589, height, -1597.049438) 270 prisoner:walkTo( 907.684387, height, -1599.704102) 271 prisoner:walkTo( 914.599243, height, -1604.825928) 272 prisoner:walkTo( 919.703430, height, -1609.984619) 273 prisoner:walkTo( 925.728088, height, -1616.250977) 274 prisoner:walkTo( 930.751343, height, -1621.475830) 275 prisoner:walkTo( 934.714905, height, -1625.719360) 276 prisoner:walkTo( 940.166260, height, -1631.555664) 277 prisoner:walkTo( 946.152344, height, -1637.964600) 278 prisoner:walkTo( 953.042297, height, -1646.456421) 279 prisoner:walkTo( 958.174194, height, -1654.167847) 280 prisoner:walkTo( 964.112854, height, -1663.534424) 281 prisoner:walkTo( 968.981812, height, -1670.229248) 282 prisoner:walkTo( 975.821045, height, -1678.569946) 283 prisoner:walkTo( 982.743835, height, -1687.244385) 284 prisoner:walkTo( 990.572571, height, -1697.622559) 285 prisoner:walkTo( 995.849670, height, -1704.618164) 286 prisoner:walkTo( 1001.152649, height, -1711.648193) 287 prisoner:walkTo( 1005.204590, height, -1717.019531) 288 prisoner:walkTo( 1012.097412, height, -1725.154907) 289 prisoner:walkTo( 1017.283020, height, -1731.152222) 290 prisoner:walkTo( 1022.044250, height, -1736.658936) 291 prisoner:walkTo( 1028.422852, height, -1744.234863) 292 prisoner:walkTo( 1033.080688, height, -1749.780884) 293 prisoner:walkTo( 1036.395874, height, -1753.908936) 294 prisoner:walkTo( 1040.509155, height, -1759.065186) 295 prisoner:walkTo( 1044.627441, height, -1764.227783) 296 prisoner:walkTo( 1050.220093, height, -1770.871094) 297 prisoner:walkTo( 1054.504883, height, -1775.961060) 298 prisoner:walkTo( 1060.259888, height, -1782.490723) 299 prisoner:walkTo( 1067.060913, height, -1789.939209) 300 prisoner:walkTo( 1072.477173, height, -1795.898315) 301 prisoner:walkTo( 1076.556152, height, -1800.990845) 302 prisoner:walkTo( 1080.718018, height, -1806.200439) 303 prisoner:walkTo( 1085.281494, height, -1811.912476) 304 prisoner:walkTo( 1090.934448, height, -1817.621094) 305 prisoner:walkTo( 1095.896240, height, -1822.369141) 306 prisoner:walkTo( 1100.940430, height, -1827.278564) 307 prisoner:walkTo( 1107.045898, height, -1833.460693) 308 prisoner:walkTo( 1113.230103, height, -1839.722534) 309 247 310 hangarRouteProgrammed = true 248 311 end … … 253 316 254 317 if dist( thisX,thisY,thisZ, 3.175952, 29, -1610.220093) < 60 then 318 prisoner:hide() 255 319 return true 256 320 end -
data/branches/presentation/worlds/sp_level_ambush_at_jupiter.oxw
r4094 r4100 167 167 <model>models/creatures/male.md2, 10</model> 168 168 <md2texture>male_albat.pcx</md2texture> 169 <abs-coor>-69,3 4, 74</abs-coor>169 <abs-coor>-69,36, 74</abs-coor> 170 170 <abs-dir>-1.55, 0, 1, 0</abs-dir> 171 171 </GenericNPC> … … 208 208 <md2texture>male_navy2.pcx</md2texture> 209 209 <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> 210 219 <abs-dir>0, 0, 1, 0</abs-dir> 211 220 </GenericNPC> … … 236 245 <FPSPlayer> 237 246 <name>Player</name> 238 <abs-coor>-148, 49,87</abs-coor>247 <abs-coor>-148,20,87</abs-coor> 239 248 <model>models/creatures/droidika.md2, 10</model> 240 249 <md2texture>droidika.png</md2texture>
Note: See TracChangeset
for help on using the changeset viewer.