Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3964 for data/branches


Ignore:
Timestamp:
Jun 30, 2006, 3:42:43 PM (18 years ago)
Author:
snellen
Message:

scripts updated

Location:
data/branches/single_player_map
Files:
4 edited

Legend:

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

    r3962 r3964  
    2828
    2929if not routeOneProgrammed then
    30 --io.write("Guard called \n")
    31 guard:walkTo(-132, height, 238.381805)
    32 guard:walkTo(-138.41, height, 275.25)
    33 guard:walkTo(-143.70, height, 275.35)
    34 guard:walkTo(-149.10, height, 226.66)
    35 guard:walkTo(-149.10, height, 196.83)
    36 guard:walkTo(-145.82, height, 189.74)
    37 guard:walkTo(-138.48, height, 184.28)
    38 guard:walkTo(35.48, height, 191.28)
    39 guard:runTo(102, height, 203.28)
    40 guard:runTo(164, height, 245.28)
     30guard:walkTo( 266.396362, height, 241.398544)
     31guard:walkTo( 254.577255, height, 241.159897)
     32guard:walkTo( 221.120651, height, 240.484360)
     33guard:walkTo( 187.732651, height, 239.810196)
     34guard:walkTo( 165.661865, height, 239.364563)
     35guard:walkTo( 148.642044, height, 239.020889)
     36guard:walkTo( 128.012802, height, 238.604340)
     37guard:walkTo( 65.664688, height, 237.345383)
     38guard:walkTo( 30.099592, height, 236.627243)
     39guard:walkTo( -14.031926, height, 236.483414)
     40guard:walkTo( -52.224205, height, 241.776978)
     41guard:walkTo( -83.528168, height, 245.757629)
     42guard:walkTo( -98.730980, height, 247.394043)
     43guard:walkTo( -111.666504, height, 246.585648)
     44guard:walkTo( -111.666504, height, 246.585648)
     45guard:walkTo( -114.805542, height, 246.144440)
     46guard:walkTo( -119.267967, height, 245.360168)
     47guard:walkTo( -138.284515, height, 239.281021)
     48guard:walkTo( -146.166840, height, 234.512054)
     49guard:walkTo( -157.210480, height, 222.620941)
     50guard:walkTo( -158.519867, height, 219.674301)
     51guard:walkTo( -158.519867, height, 219.674301)
     52guard:walkTo( -158.478958, height, 213.490570)
     53guard:walkTo( -158.478958, height, 213.490570)
     54guard:walkTo( -155.965332, height, 210.303101)
     55guard:walkTo( -150.804489, height, 203.959869)
     56guard:walkTo( -148.853012, height, 201.561295)
     57guard:walkTo( -145.451157, height, 197.554382)
     58guard:walkTo( -143.694107, height, 196.373535)
     59guard:walkTo( -139.281479, height, 193.407990)
     60guard:walkTo( -137.526047, height, 192.228226)
     61guard:walkTo( -103.046753, height, 182.510071)
     62guard:walkTo( -14.992087, height, 181.910767)
     63guard:walkTo( 46.347664, height, 181.493317)
     64guard:walkTo( 86.343376, height, 181.221130)
     65guard:walkTo( 124.465179, height, 194.251617)
     66guard:walkTo( 136.548996, height, 219.682953)
     67guard:walkTo( 145.162140, height, 244.268982)
     68guard:walkTo( 149.328720, height, 256.993256)
     69guard:walkTo( 162.649582, height, 268.181732)
    4170
    4271routeOneProgrammed = true
     
    5584
    5685if not exitRouteProgrammed then
    57 
    58 guard:walkTo( 165.360611, height, 244.436813)
    59 guard:walkTo( 164.003571, height, 254.198746)
    60 guard:walkTo( 162.631683, height, 264.067474)
    6186guard:walkTo( 162.096558, height, 274.944366)
    6287guard:walkTo( 161.519516, height, 286.673370)
     
    97122function goToHangar(timestep)
    98123
    99 if not hangarRouteProgrammed then
     124if not hangarRouteProgrammed and playerInLock then
    100125guard:walkTo( 138.422943, height, 504.832733)
    101126guard:walkTo( 188.685089, height, 509.034851)
     
    183208end
    184209
    185 if playerInLock and exitPositionReached then
     210if not hangarReached and exitPositionReached then
    186211hangarReached = goToHangar(timestep)
    187212end
  • data/branches/single_player_map/scripts/prisoner.lua

    r3962 r3964  
    99
    1010randTime = 0
     11height = 29
    1112
    1213
     
    2223guardZ = guard:getAbsCoorZ()
    2324
    24 if dist( guardX,guardY,guardZ,35.48, 29, 191.28 ) < 60 then
     25if dist( guardX,guardY,guardZ, 198.427155, 29, 243.656113 ) < 60 then
    2526cellDoorOpened = true
    2627end
     
    4445
    4546if not walkProgrammed then
    46 --io.write("Guard called \n")
    47 prisoner:walkTo(-132, 29, 238.381805)
    48 prisoner:walkTo(-138.41, 29, 275.25)
    49 prisoner:walkTo(-143.70, 29, 275.35)
    50 prisoner:walkTo(-149.10, 29, 226.66)
    51 prisoner:walkTo(-149.10, 29, 196.83)
    52 prisoner:walkTo(-145.82, 29, 189.74)
    53 prisoner:walkTo(-138.48, 29, 184.28)
    54 prisoner:walkTo(35.48, 29, 191.28)
    55 prisoner:runTo(102, 29, 203.28)
    56 prisoner:runTo(164, 29, 245.28)
    57 
     47prisoner:walkTo( -66.454849, height, 62.363449)
     48prisoner:walkTo( -66.454849, height, 62.363449)
     49prisoner:walkTo( -63.214821, height, 62.429710)
     50prisoner:walkTo( -56.661182, height, 62.563740)
     51prisoner:walkTo( -46.779755, height, 62.765827)
     52prisoner:walkTo( -41.634224, height, 71.319214)
     53prisoner:walkTo( -38.168526, height, 79.655807)
     54prisoner:walkTo( -40.782196, height, 101.285233)
     55prisoner:walkTo( -47.722874, height, 114.314980)
     56prisoner:walkTo( -54.593349, height, 118.605423)
     57prisoner:walkTo( -62.802982, height, 117.947144)
     58prisoner:walkTo( -73.180130, height, 116.720863)
     59prisoner:walkTo( -85.028603, height, 114.952316)
     60prisoner:walkTo( -113.125824, height, 96.362946)
     61prisoner:walkTo( -118.218887, height, 87.702599)
     62prisoner:walkTo( -120.596275, height, 80.304184)
     63prisoner:walkTo( -114.928169, height, 68.971840)
     64prisoner:walkTo( -108.606766, height, 62.085098)
     65prisoner:walkTo( -90.078171, height, 59.558804)
     66prisoner:walkTo( -83.558510, height, 60.516567)
     67prisoner:walkTo( -71.352402, height, 63.920750)
    5868walkProgrammed = true
    5969end
    6070
     71
     72if prisoner:finalGoalReached() and not cellDoorOpened then
     73   walkProgrammed = false
     74  end
     75
    6176if cellDoorOpened then
    6277
    63  if randTime == 0 then
    64  randTime = 30 * math.random()
    65  else
    66  randTime = randTime - timestep
    67  end
    68 
    69  if randTime < 0 then
    70  -- goto cellexit
    7178  if not exitProgrammed then
    72    prisoner:walkTo(-132, 29, 238.381805)
    73    prisoner:walkTo(-138.41, 29, 275.25)
    74    prisoner:walkTo(-143.70, 29, 275.35)
    75    prisoner:walkTo(-149.10, 29, 226.66)
    76    prisoner:walkTo(-149.10, 29, 196.83)
    77    prisoner:walkTo(-145.82, 29, 189.74)
    78    prisoner:walkTo(-138.48, 29, 184.28)
    79    prisoner:walkTo(35.48, 29, 191.28)
    80    prisoner:runTo(102, 29, 203.28)
    81    prisoner:runTo(164, 29, 245.28)
    82 
     79prisoner:walkTo( -61.875267, height, 158.254517)
     80prisoner:walkTo( -62.335995, height, 170.318756)
     81prisoner:walkTo( -62.358681, height, 179.232559)
     82prisoner:walkTo( -55.998741, height, 189.289749)
     83prisoner:walkTo( -49.237957, height, 195.076263)
     84prisoner:walkTo( -39.007496, height, 195.889221)
     85prisoner:walkTo( -24.234095, height, 195.547043)
     86prisoner:walkTo( -11.409116, height, 196.236069)
     87prisoner:walkTo( 2.545602, height, 196.805954)
     88prisoner:walkTo( 13.875313, height, 196.377563)
     89prisoner:walkTo( 28.379402, height, 195.829132)
     90prisoner:walkTo( 41.672989, height, 195.326477)
     91prisoner:walkTo( 57.125935, height, 194.742126)
     92prisoner:walkTo( 70.114609, height, 194.251007)
     93prisoner:walkTo( 81.857407, height, 193.806961)
     94prisoner:walkTo( 97.840607, height, 193.974030)
     95prisoner:walkTo( 107.569641, height, 196.299652)
     96prisoner:walkTo( 120.975266, height, 202.754532)
     97prisoner:walkTo( 129.063812, height, 207.099640)
     98prisoner:walkTo( 140.468765, height, 214.389191)
     99prisoner:walkTo( 145.902267, height, 224.194229)
     100prisoner:walkTo( 148.106079, height, 233.095215)
     101prisoner:walkTo( 150.907532, height, 244.410049)
     102prisoner:walkTo( 153.191757, height, 253.635788)
     103prisoner:walkTo( 153.191757, height, 253.635788)
    83104   exitProgrammed = true
    84105  end
    85106
    86   if guard:finalGoalReached() then
     107  if prisoner:finalGoalReached() then
    87108   return true
    88109  end
     
    91112
    92113return false
     114
    93115end
    94116
     
    103125-- do not forget to make him wait until the player triggeres the trip to the hangar
    104126if not gotoExitProgrammed and playerInLock then
    105 prisoner:walkTo(-132, 29, 238.381805)
    106 prisoner:walkTo(-138.41, 29, 275.25)
    107 prisoner:walkTo(-143.70, 29, 275.35)
    108 prisoner:walkTo(-149.10, 29, 226.66)
    109 prisoner:walkTo(-149.10, 29, 196.83)
    110 prisoner:walkTo(-145.82, 29, 189.74)
    111 prisoner:walkTo(-138.48, 29, 184.28)
    112 prisoner:walkTo(35.48, 29, 191.28)
    113 prisoner:runTo(102, 29, 203.28)
    114 prisoner:runTo(164, 29, 245.28)
    115127
    116128gotoExitProgrammed = true
     
    128140
    129141if not hangarRouteProgrammed then
    130 prisoner:walkTo(-132, 29, 238.381805)
    131 prisoner:walkTo(-138.41, 29, 275.25)
    132 prisoner:walkTo(-143.70, 29, 275.35)
    133 prisoner:walkTo(-149.10, 29, 226.66)
    134 prisoner:walkTo(-149.10, 29, 196.83)
    135 prisoner:walkTo(-145.82, 29, 189.74)
    136 prisoner:walkTo(-138.48, 29, 184.28)
    137 prisoner:walkTo(35.48, 29, 191.28)
    138 prisoner:runTo(102, 29, 203.28)
    139 prisoner:runTo(164, 29, 245.28)
    140142
    141143hangarRouteProgrammed = true
     
    154156
    155157if not spaceshipRouteProgrammed then
    156 prisoner:walkTo(-132, 29, 238.381805)
    157 prisoner:walkTo(-138.41, 29, 275.25)
    158 prisoner:walkTo(-143.70, 29, 275.35)
    159 prisoner:walkTo(-149.10, 29, 226.66)
    160 prisoner:walkTo(-149.10, 29, 196.83)
    161 prisoner:walkTo(-145.82, 29, 189.74)
    162 prisoner:walkTo(-138.48, 29, 184.28)
    163 prisoner:walkTo(35.48, 29, 191.28)
    164 prisoner:runTo(102, 29, 203.28)
    165 prisoner:runTo(164, 29, 245.28)
     158
    166159
    167160spaceshipRouteProgrammed = true
     
    185178
    186179function tick(timestep)
    187 
    188 --io.write("Prisoner called \n")
    189180
    190181 observeGuard()
  • data/branches/single_player_map/scripts/secondguard.lua

    r3962 r3964  
    66hangarReached = false
    77
     8height = 29
    89
    910-- Returns the distance between (x1,x2,x3) and (y1,y2,y3)
     
    3031prisonerZ = prisoner:getAbsCoorZ()
    3132
    32 if dist( prisonerX,prisonerY,prisonerZ,161.76,49,358.87 ) < 60 then
    33 prisonerReachedLock = true
     33if dist( prisonerX,prisonerY,prisonerZ,162.757919,49,363.489349 ) < 60 then
     34io.write("Prisonner reached lock \n")
     35--prisonerReachedLock = true
    3436end
    3537
     
    4042
    4143if not cellProgrammed then
    42 
    43 
     44secondguard:walkTo( 442.173767, height, 176.429855)
     45secondguard:walkTo( 442.173767, height, 176.429855)
     46secondguard:walkTo( 436.727753, height, 188.191757)
     47secondguard:walkTo( 432.311584, height, 198.882462)
     48secondguard:walkTo( 426.079590, height, 213.968994)
     49secondguard:walkTo( 420.553986, height, 226.714996)
     50secondguard:walkTo( 412.681915, height, 235.053696)
     51secondguard:walkTo( 398.758545, height, 241.846924)
     52secondguard:walkTo( 384.690735, height, 242.851395)
     53secondguard:walkTo( 348.930481, height, 242.394958)
     54secondguard:walkTo( 336.467926, height, 241.985764)
     55secondguard:walkTo( 324.042999, height, 241.577774)
     56secondguard:walkTo( 303.851410, height, 240.914841)
     57secondguard:walkTo( 293.013977, height, 240.559006)
     58secondguard:walkTo( 276.207611, height, 240.007233)
     59secondguard:walkTo( 261.475800, height, 239.523544)
     60secondguard:walkTo( 239.185089, height, 238.791687)
     61secondguard:walkTo( 226.655655, height, 238.491974)
     62secondguard:walkTo( 211.996979, height, 238.851044)
     63secondguard:walkTo( 192.956741, height, 239.859207)
     64secondguard:walkTo( 178.496552, height, 241.852539)
     65secondguard:walkTo( 160.421860, height, 244.009827)
     66secondguard:walkTo( 145.371857, height, 244.946075)
     67secondguard:walkTo( 129.918198, height, 245.307037)
     68secondguard:walkTo( 113.065468, height, 245.108231)
     69secondguard:walkTo( 99.159073, height, 244.695694)
     70secondguard:walkTo( 82.069923, height, 244.188766)
     71secondguard:walkTo( 65.880531, height, 243.708527)
     72secondguard:walkTo( 48.133881, height, 243.182114)
     73secondguard:walkTo( 34.706280, height, 242.783813)
     74secondguard:walkTo( 20.682344, height, 242.367783)
     75secondguard:walkTo( 5.419819, height, 241.915070)
     76secondguard:walkTo( -10.556346, height, 241.058746)
     77secondguard:walkTo( -24.159513, height, 240.127090)
     78secondguard:walkTo( -33.819145, height, 239.995453)
     79secondguard:walkTo( -45.414162, height, 240.373322)
     80secondguard:walkTo( -60.228550, height, 240.856079)
     81secondguard:walkTo( -73.269897, height, 241.260895)
     82secondguard:walkTo( -86.128647, height, 240.457886)
     83secondguard:walkTo( -100.443581, height, 236.485718)
     84secondguard:walkTo( -112.346939, height, 233.967209)
     85secondguard:walkTo( -127.331635, height, 227.615112)
     86secondguard:walkTo( -135.153656, height, 215.476883)
     87secondguard:walkTo( -131.529984, height, 202.931015)
     88secondguard:walkTo( -122.671799, height, 193.644669)
     89secondguard:walkTo( -113.823517, height, 183.986633)
     90secondguard:walkTo( -104.089592, height, 170.659729)
    4491cellProgrammed = true
    4592end
     
    56103
    57104if not guideProgrammed then
    58 --io.write("Guard called \n")
    59 secondguard:walkTo(-132, 29, 238.381805)
    60 secondguard:walkTo(-138.41, 29, 275.25)
    61 secondguard:walkTo(-143.70, 29, 275.35)
    62 secondguard:walkTo(-149.10, 29, 226.66)
    63 secondguard:walkTo(-149.10, 29, 196.83)
    64 secondguard:walkTo(-145.82, 29, 189.74)
    65 secondguard:walkTo(-138.48, 29, 184.28)
    66 secondguard:walkTo(35.48, 29, 191.28)
    67 secondguard:runTo(102, 29, 203.28)
    68 secondguard:runTo(164, 29, 245.28)
     105secondguard:walkTo( -104.757011, height, 171.200729)
     106secondguard:walkTo( -100.266739, height, 171.345627)
     107secondguard:walkTo( -91.152046, height, 171.639709)
     108secondguard:walkTo( -85.456375, height, 171.823486)
     109secondguard:walkTo( -74.048538, height, 172.191589)
     110secondguard:walkTo( -53.574173, height, 172.852219)
     111secondguard:walkTo( -43.275124, height, 173.184540)
     112secondguard:walkTo( -35.155544, height, 173.446518)
     113secondguard:walkTo( -31.645050, height, 173.559784)
     114secondguard:walkTo( -23.426588, height, 173.824966)
     115secondguard:walkTo( -10.576803, height, 174.239578)
     116secondguard:walkTo( -2.389911, height, 174.503754)
     117secondguard:walkTo( 6.950986, height, 174.805176)
     118secondguard:walkTo( 16.313608, height, 175.161179)
     119secondguard:walkTo( 23.271458, height, 175.547226)
     120secondguard:walkTo( 31.248058, height, 176.199890)
     121secondguard:walkTo( 43.694778, height, 177.753479)
     122secondguard:walkTo( 50.441612, height, 178.595612)
     123secondguard:walkTo( 71.374535, height, 181.208389)
     124secondguard:walkTo( 82.251022, height, 181.855988)
     125secondguard:walkTo( 91.975792, height, 182.434998)
     126secondguard:walkTo( 101.695015, height, 183.013672)
     127secondguard:walkTo( 110.377205, height, 183.530609)
     128secondguard:walkTo( 122.299400, height, 184.240448)
     129secondguard:walkTo( 129.848495, height, 184.689911)
     130secondguard:walkTo( 141.687805, height, 185.394821)
     131secondguard:walkTo( 150.166702, height, 186.776016)
     132secondguard:walkTo( 155.342255, height, 189.285080)
     133secondguard:walkTo( 162.508133, height, 192.849976)
     134secondguard:walkTo( 171.747696, height, 197.075134)
     135secondguard:walkTo( 177.846390, height, 199.864029)
     136secondguard:walkTo( 182.707596, height, 204.381516)
     137secondguard:walkTo( 182.707596, height, 204.381516)
     138secondguard:walkTo( 187.317139, height, 211.966385)
     139secondguard:walkTo( 193.191528, height, 221.632446)
     140secondguard:walkTo( 197.856018, height, 229.307724)
     141secondguard:walkTo( 198.350906, height, 232.634857)
     142secondguard:walkTo( 198.427155, height, 243.656113)
    69143
    70144guideProgrammed = true
     
    81155function goToHangar(timestep)
    82156
    83 if not hangarProgrammed then
    84 --io.write("Guard called \n")
    85 secondguard:walkTo(-132, 29, 238.381805)
    86 secondguard:walkTo(-138.41, 29, 275.25)
    87 secondguard:walkTo(-143.70, 29, 275.35)
    88 secondguard:walkTo(-149.10, 29, 226.66)
    89 secondguard:walkTo(-149.10, 29, 196.83)
    90 secondguard:walkTo(-145.82, 29, 189.74)
    91 secondguard:walkTo(-138.48, 29, 184.28)
    92 secondguard:walkTo(35.48, 29, 191.28)
    93 secondguard:runTo(102, 29, 203.28)
    94 secondguard:runTo(164, 29, 245.28)
     157if not hangarProgrammed and prisonerReachedLock then
     158secondguard:walkTo( 194.153641, height, 244.749863)
     159secondguard:walkTo( 185.976517, height, 243.876404)
     160secondguard:walkTo( 179.645737, height, 243.505066)
     161secondguard:walkTo( 169.583008, height, 244.959457)
     162secondguard:walkTo( 161.454269, height, 249.422363)
     163secondguard:walkTo( 158.488998, height, 260.951874)
     164secondguard:walkTo( 158.228958, height, 272.121582)
     165secondguard:walkTo( 158.326004, height, 288.892853)
     166secondguard:walkTo( 158.389069, height, 299.792603)
     167secondguard:walkTo( 158.437561, height, 308.174896)
     168secondguard:walkTo( 158.479034, height, 315.341095)
     169secondguard:walkTo( 158.542801, height, 326.362518)
     170secondguard:walkTo( 158.621414, height, 339.950256)
     171secondguard:walkTo( 158.664566, height, 347.408417)
     172secondguard:walkTo( 158.737900, height, 360.080902)
     173secondguard:walkTo( 158.795013, height, 369.950531)
     174secondguard:walkTo( 158.857086, height, 380.676056)
     175secondguard:walkTo( 158.935440, height, 394.219177)
     176secondguard:walkTo( 158.984039, height, 402.618896)
     177secondguard:walkTo( 159.035522, height, 411.518219)
     178secondguard:walkTo( 159.089432, height, 420.837036)
     179secondguard:walkTo( 159.143021, height, 430.104523)
     180secondguard:walkTo( 159.203644, height, 440.579224)
     181secondguard:walkTo( 159.257263, height, 449.841522)
     182secondguard:walkTo( 159.304810, height, 458.057617)
     183secondguard:walkTo( 159.351440, height, 466.113068)
     184secondguard:walkTo( 160.060013, height, 482.411865)
     185secondguard:walkTo( 161.352600, height, 488.302185)
     186secondguard:walkTo( 174.254333, height, 503.439209)
     187secondguard:walkTo( 181.668213, height, 506.381195)
     188secondguard:walkTo( 189.177277, height, 508.729156)
     189secondguard:walkTo( 213.465332, height, 512.184326)
     190secondguard:walkTo( 223.635010, height, 512.920715)
     191secondguard:walkTo( 233.668503, height, 513.374512)
     192secondguard:walkTo( 448.702118, height, 512.187744)
     193secondguard:walkTo( 477.701050, height, 511.587463)
     194secondguard:walkTo( 525.645752, height, 511.139526)
     195secondguard:walkTo( 559.871216, height, 510.819763)
     196secondguard:walkTo( 596.801941, height, 510.632080)
     197secondguard:walkTo( 640.160767, height, 510.906891)
     198secondguard:walkTo( 684.745239, height, 510.429138)
     199secondguard:walkTo( 706.457214, height, 508.596039)
     200secondguard:walkTo( 718.750916, height, 507.558044)
     201secondguard:walkTo( 728.147827, height, 506.649780)
     202secondguard:walkTo( 743.581970, height, 502.185822)
     203secondguard:walkTo( 752.977234, height, 495.788635)
     204secondguard:walkTo( 759.201721, height, 483.407104)
     205secondguard:walkTo( 761.196167, height, 461.130798)
     206secondguard:walkTo( 762.335449, height, 398.166901)
     207secondguard:walkTo( 762.908691, height, 366.482208)
     208secondguard:walkTo( 763.506409, height, 333.456848)
     209secondguard:walkTo( 764.330750, height, 287.894409)
     210secondguard:walkTo( 767.909790, height, 194.910492)
     211secondguard:walkTo( 770.649231, height, 122.865265)
     212secondguard:walkTo( 770.102112, height, 44.244534)
     213secondguard:walkTo( 767.269775, height, -37.871273)
     214secondguard:walkTo( 763.989197, height, -132.996460)
     215secondguard:walkTo( 755.274231, height, -217.520859)
     216secondguard:walkTo( 739.636230, height, -307.869354)
     217secondguard:walkTo( 722.792725, height, -390.075226)
     218secondguard:walkTo( 702.582275, height, -475.155273)
     219secondguard:walkTo( 687.325012, height, -551.699036)
     220secondguard:walkTo( 681.873169, height, -628.924316)
     221secondguard:walkTo( 679.997437, height, -708.013794)
     222secondguard:walkTo( 681.080933, height, -772.108887)
     223secondguard:walkTo( 681.686035, height, -845.449524)
     224secondguard:walkTo( 682.188538, height, -906.434998)
     225secondguard:walkTo( 682.669800, height, -964.887085)
     226secondguard:walkTo( 684.829895, height, -1023.870117)
     227secondguard:walkTo( 690.728516, height, -1069.400146)
     228secondguard:walkTo( 695.965027, height, -1097.353149)
     229secondguard:walkTo( 701.128540, height, -1118.496216)
     230secondguard:walkTo( 708.865234, height, -1144.444214)
     231secondguard:walkTo( 724.753845, height, -1192.741699)
     232secondguard:walkTo( 737.665771, height, -1230.398560)
     233secondguard:walkTo( 741.520081, height, -1241.704712)
     234secondguard:walkTo( 756.537842, height, -1287.260376)
     235secondguard:walkTo( 764.046631, height, -1310.927002)
     236secondguard:walkTo( 769.402771, height, -1342.806152)
     237secondguard:walkTo( 772.158691, height, -1363.218750)
     238secondguard:walkTo( 772.599426, height, -1374.571899)
     239secondguard:walkTo( 771.977844, height, -1390.778320)
     240secondguard:walkTo( 771.576355, height, -1401.246826)
     241secondguard:walkTo( 770.982666, height, -1423.905273)
     242secondguard:walkTo( 770.952637, height, -1429.344360)
     243secondguard:walkTo( 770.912476, height, -1436.589966)
     244secondguard:walkTo( 770.880249, height, -1442.399536)
     245secondguard:walkTo( 770.847107, height, -1448.385376)
     246secondguard:walkTo( 770.785339, height, -1454.349365)
     247secondguard:walkTo( 768.858459, height, -1464.382080)
     248secondguard:walkTo( 767.639709, height, -1469.028809)
     249secondguard:walkTo( 765.099487, height, -1476.370605)
     250secondguard:walkTo( 762.003601, height, -1484.767456)
     251secondguard:walkTo( 758.787231, height, -1492.394287)
     252secondguard:walkTo( 755.135986, height, -1496.482788)
     253secondguard:walkTo( 752.631165, height, -1498.550049)
     254secondguard:walkTo( 746.021912, height, -1502.547485)
     255secondguard:walkTo( 739.376099, height, -1505.427734)
     256secondguard:walkTo( 731.429199, height, -1507.691162)
     257secondguard:walkTo( 719.202393, height, -1510.812622)
     258secondguard:walkTo( 716.329712, height, -1511.546021)
     259secondguard:walkTo( 711.301514, height, -1512.674438)
     260secondguard:walkTo( 702.414124, height, -1514.126099)
     261secondguard:walkTo( 695.724304, height, -1515.173218)
     262secondguard:walkTo( 576.522278, height, -1521.146362)
     263secondguard:walkTo( 542.552246, height, -1522.204712)
     264secondguard:walkTo( 499.907288, height, -1524.441772)
     265secondguard:walkTo( 461.101288, height, -1525.987915)
     266secondguard:walkTo( 417.154602, height, -1526.579102)
     267secondguard:walkTo( 367.752686, height, -1527.168091)
     268secondguard:walkTo( 322.209106, height, -1527.709473)
     269secondguard:walkTo( 273.998047, height, -1528.283447)
     270secondguard:walkTo( 234.330612, height, -1528.756348)
     271secondguard:walkTo( 188.730209, height, -1529.299438)
     272secondguard:walkTo( 140.078659, height, -1529.880249)
     273secondguard:walkTo( 105.882103, height, -1530.287109)
     274secondguard:walkTo( 71.860947, height, -1532.856079)
     275secondguard:walkTo( 39.777569, height, -1541.485596)
     276secondguard:walkTo( 13.919314, height, -1565.188110)
     277secondguard:walkTo( -0.632493, height, -1604.602783)
     278secondguard:walkTo( -2.103141, height, -1639.236694)
     279secondguard:walkTo( 0.498238, height, -1674.846558)
     280secondguard:walkTo( 2.861493, height, -1705.131958)
    95281
    96282hangarProgrammed = true
     
    109295 
    110296observePrisoner()
     297observeGuard()
    111298
    112299if not allOk then
     
    118305end
    119306
    120 if guidePositionReached and prisonerReachedLock then
     307if guidePositionReached and not hangarReached then
    121308hangarReached = goToHangar(timestep)
    122309end
  • data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw

    r3962 r3964  
    2626     <file>secondguard.lua</file>
    2727     <object>GenericNPC, secondguard</object>
     28     <object>GenericNPC, guard</object>
    2829     <object>FPSPlayer, Player</object>
    2930     <object>GenericNPC, prisoner</object>
     
    198199       <name>repair station 01</name>
    199200       <scale>80.0</scale>
    200        <abs-coor>173, 10, 210</abs-coor>
     201       <abs-coor>20.139891, 10, -1861.332275</abs-coor>
    201202    </RepairStation>
    202203
Note: See TracChangeset for help on using the changeset viewer.