Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 3, 2006, 9:10:39 PM (18 years ago)
Author:
snellen
Message:

continued implementation

File:
1 edited

Legend:

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

    r4068 r4070  
    1717
    1818randTime = 0
    19 height = 29
     19height = 34
    2020
    2121
     
    4747guardZ = guard:getAbsCoorZ()
    4848
    49 
    50 if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 60 then
     49distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ)
     50
     51if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 100 then
    5152playerInLock = true
    5253end
    5354
    5455
    55 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarProgrammed then
     56if distance > 250 and hangarRouteProgrammed and not guardStopped then
    5657 prisoner:stop()
    5758 guardStopped = true
    5859end
    5960
    60 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarProgrammed and guardStopped then
     61if distance < 250 and hangarRouteProgrammed and guardStopped then
    6162 prisoner:resume()
    6263 guardStopped = false
     
    129130prisoner:walkTo( 153.191757, height, 253.635788)
    130131prisoner:walkTo( 153.191757, height, 253.635788)
     132prisoner:walkTo( 151.838257, height, 257.185974)
     133prisoner:walkTo( 153.967865, height, 270.535095)
     134prisoner:walkTo( 156.288605, height, 284.582123)
     135prisoner:walkTo( 158.034988, height, 300.072937)
     136prisoner:walkTo( 158.817184, height, 311.973724)
     137prisoner:walkTo( 159.794891, height, 326.848816)
     138prisoner:walkTo( 160.789093, height, 342.474060)
     139prisoner:walkTo( 161.391815, height, 357.817505)
     140prisoner:walkTo( 162.055618, height, 374.715668)
     141prisoner:walkTo( 161.595901, height, 389.146759)
     142prisoner:walkTo( 160.607056, height, 407.092896)
     143prisoner:walkTo( 160.508041, height, 416.996307)
     144
    131145   exitProgrammed = true
    132146  end
     
    147161
    148162if not hangarRouteProgrammed and playerInLock then
    149 prisoner:walkTo( 153.801224, height, 253.259750)
    150 prisoner:walkTo( 156.047333, height, 263.016998)
    151 prisoner:walkTo( 158.592575, height, 275.126709)
    152 prisoner:walkTo( 160.208252, height, 284.592896)
    153 prisoner:walkTo( 161.436462, height, 293.934601)
    154 prisoner:walkTo( 162.154053, height, 299.829407)
    155 prisoner:walkTo( 162.288696, height, 307.149750)
    156 prisoner:walkTo( 161.846405, height, 314.288727)
    157 prisoner:walkTo( 161.481949, height, 320.171295)
    158 prisoner:walkTo( 161.149612, height, 331.675751)
    159 prisoner:walkTo( 160.959152, height, 344.682129)
    160 prisoner:walkTo( 161.191635, height, 359.230835)
    161 prisoner:walkTo( 161.436386, height, 364.404175)
    162 prisoner:walkTo( 161.829483, height, 372.712799)
    163 prisoner:walkTo( 162.251343, height, 382.889465)
    164 prisoner:walkTo( 162.375793, height, 391.746979)
    165 prisoner:walkTo( 162.433640, height, 399.580994)
    166 prisoner:walkTo( 162.492249, height, 407.515991)
    167163prisoner:walkTo( 162.624390, height, 425.402435)
    168164prisoner:walkTo( 162.666931, height, 431.160980)
Note: See TracChangeset for help on using the changeset viewer.