Changeset 4066
- Timestamp:
- Jul 3, 2006, 5:30:14 PM (18 years ago)
- Location:
- data/branches/single_player_map
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/falldown.lua
r4057 r4066 19 19 20 20 function fallDown(timestep) 21 dy = dy + timestep *0.121 dy = dy + timestep 22 22 thisX = fallingguy:getAbsCoorX() 23 23 thisY = fallingguy:getAbsCoorY() -
data/branches/single_player_map/scripts/floorguy.lua
r4051 r4066 4 4 5 5 programRoute = true 6 height = 806 height = 10 7 7 8 8 function tick(timestep) -
data/branches/single_player_map/scripts/guard.lua
r4063 r4066 8 8 playerInLock = false 9 9 hangarReached = false 10 guardStopped = false11 12 height = 3510 guardStopped = true 11 12 height = 29 13 13 14 14 -- Returns the distance between (x1,x2,x3) and (y1,y2,y3) … … 28 28 playerZ = Player:getAbsCoorZ() 29 29 30 if dist( guardX,guardY,guardZ,playerX, playerX, playerX) > 30 and hangarRouteProgrammed then 31 --guard:stop() 30 31 distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ) 32 33 io.write(distance, " \n") 34 35 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 100 and hangarRouteProgrammed and not guardStopped then 36 io.write("guard stopped\n") 37 guard:stop() 32 38 guardStopped = true 33 39 end 34 40 35 if dist( guardX,guardY,guardZ,playerX, playerX, playerX) < 30 and hangarRouteProgrammed and guardStopped then 36 --guard:continue() 41 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 100 and hangarRouteProgrammed and guardStopped then 42 io.write("guard resumed") 43 guard:continue() 37 44 guardStopped = false 38 45 end … … 104 111 105 112 if not exitRouteProgrammed then 106 guard: walkTo( 162.096558, height, 274.944366)107 guard: walkTo( 161.519516, height, 286.673370)108 guard: walkTo( 161.098618, height, 295.228699)109 guard: walkTo( 160.568466, height, 306.004486)110 guard: walkTo( 160.151169, height, 314.486572)111 guard: walkTo( 159.416641, height, 324.925232)113 guard:runTo( 162.096558, height, 274.944366) 114 guard:runTo( 161.519516, height, 286.673370) 115 guard:runTo( 161.098618, height, 295.228699) 116 guard:runTo( 160.568466, height, 306.004486) 117 guard:runTo( 160.151169, height, 314.486572) 118 guard:runTo( 159.416641, height, 324.925232) 112 119 guard:walkTo( 158.700073, height, 335.108154) 113 120 guard:walkTo( 157.943298, height, 345.862610) -
data/branches/single_player_map/scripts/prisoner.lua
r4063 r4066 52 52 53 53 54 if dist( guardX,guardY,guardZ,playerX, player X, playerX) > 30 and hangarProgrammed then54 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 30 and hangarProgrammed then 55 55 prisoner:stop() 56 56 guardStopped = true 57 57 end 58 58 59 if dist( guardX,guardY,guardZ,playerX, player X, playerX) < 30 and hangarProgrammed and guardStopped then59 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 30 and hangarProgrammed and guardStopped then 60 60 --prisoner:continue() 61 61 guardStopped = false -
data/branches/single_player_map/scripts/secondguard.lua
r4063 r4066 12 12 hangarReached = false 13 13 14 height = 2914 height = 80 15 15 16 16 -- Returns the distance between (x1,x2,x3) and (y1,y2,y3) … … 41 41 playerZ = Player:getAbsCoorZ() 42 42 43 if dist( guardX,guardY,guardZ,playerX, player X, playerX) > 30 and hangarProgrammed then43 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) > 30 and hangarProgrammed then 44 44 secondguard:stop() 45 45 guardStopped = true 46 46 end 47 47 48 if dist( guardX,guardY,guardZ,playerX, player X, playerX) < 30 and hangarProgrammed and guardStopped then48 if dist( guardX,guardY,guardZ,playerX, playerY, playerZ) < 30 and hangarProgrammed and guardStopped then 49 49 --secondguard:continue() 50 50 guardStopped = false -
data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw
r4063 r4066 144 144 <model>models/creatures/doom_guy.md2, 10</model> 145 145 <md2texture>doom_guy.png</md2texture> 146 <abs-coor>440, 29, 180</abs-coor>146 <abs-coor>440, 80, 180</abs-coor> 147 147 <abs-dir>-3.1, 0, 1, 0</abs-dir> 148 148 </GenericNPC>
Note: See TracChangeset
for help on using the changeset viewer.