Changeset 4070 for data/branches/single_player_map/scripts/prisoner.lua
- Timestamp:
- Jul 3, 2006, 9:10:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/prisoner.lua
r4068 r4070 17 17 18 18 randTime = 0 19 height = 2919 height = 34 20 20 21 21 … … 47 47 guardZ = guard:getAbsCoorZ() 48 48 49 50 if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 60 then 49 distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ) 50 51 if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 100 then 51 52 playerInLock = true 52 53 end 53 54 54 55 55 if dist ( guardX,guardY,guardZ,playerX, playerY, playerZ) > 150 and hangarProgrammed then56 if distance > 250 and hangarRouteProgrammed and not guardStopped then 56 57 prisoner:stop() 57 58 guardStopped = true 58 59 end 59 60 60 if dist ( guardX,guardY,guardZ,playerX, playerY, playerZ) < 150 and hangarProgrammed and guardStopped then61 if distance < 250 and hangarRouteProgrammed and guardStopped then 61 62 prisoner:resume() 62 63 guardStopped = false … … 129 130 prisoner:walkTo( 153.191757, height, 253.635788) 130 131 prisoner:walkTo( 153.191757, height, 253.635788) 132 prisoner:walkTo( 151.838257, height, 257.185974) 133 prisoner:walkTo( 153.967865, height, 270.535095) 134 prisoner:walkTo( 156.288605, height, 284.582123) 135 prisoner:walkTo( 158.034988, height, 300.072937) 136 prisoner:walkTo( 158.817184, height, 311.973724) 137 prisoner:walkTo( 159.794891, height, 326.848816) 138 prisoner:walkTo( 160.789093, height, 342.474060) 139 prisoner:walkTo( 161.391815, height, 357.817505) 140 prisoner:walkTo( 162.055618, height, 374.715668) 141 prisoner:walkTo( 161.595901, height, 389.146759) 142 prisoner:walkTo( 160.607056, height, 407.092896) 143 prisoner:walkTo( 160.508041, height, 416.996307) 144 131 145 exitProgrammed = true 132 146 end … … 147 161 148 162 if 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)167 163 prisoner:walkTo( 162.624390, height, 425.402435) 168 164 prisoner:walkTo( 162.666931, height, 431.160980)
Note: See TracChangeset
for help on using the changeset viewer.