Changeset 3966
- Timestamp:
- Jun 30, 2006, 6:24:01 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
r3962 r3966 1 1 dy = 0 2 2 randTime = 0 3 3 eventFinished = false … … 15 15 16 16 function fallDown(timestep) 17 dy = dy + timestep*0.01 18 thisX = fallingguy:getAbsCoorX() 19 thisY = fallingguy:getAbsCoorY() 20 thisZ = fallingguy:getAbsCoorZ() 17 21 22 fallingguy:setAbsCoor(thisX, thisY - dy, thisZ) 23 24 if thisY < 0 then 18 25 eventFinished = true 26 end 27 19 28 end 20 29 … … 27 36 randTime = randTime - timestep 28 37 else 29 --io.write("Falldown called \n")30 38 fallDown(timestep) 31 39 end -
data/branches/single_player_map/scripts/floorguy.lua
r3965 r3966 1 1 2 2 programRoute = true 3 3 height = 80 4 4 5 5 function tick(timestep) -
data/branches/single_player_map/scripts/guard.lua
r3965 r3966 5 5 hangarReached = false 6 6 7 height = 297 height = 80 8 8 9 9 -- Returns the distance between (x1,x2,x3) and (y1,y2,y3) -
data/branches/single_player_map/scripts/prisoner.lua
r3965 r3966 9 9 10 10 randTime = 0 11 height = 2911 height = 80 12 12 13 13 -
data/branches/single_player_map/scripts/secondguard.lua
r3965 r3966 6 6 hangarReached = false 7 7 8 height = 298 height = 100 9 9 10 10 -- Returns the distance between (x1,x2,x3) and (y1,y2,y3) -
data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw
r3965 r3966 46 46 <Script> 47 47 <file>falldown.lua</file> 48 <object> GenericNPC, Fallingguy </object>48 <object>TestEntity, fallingguy </object> 49 49 <object>FPSPlayer, Player</object> 50 50 </Script> … … 72 72 <file>falldown.lua</file> 73 73 <function>tick</function> 74 <abs-coor> -84, 19, 77</abs-coor>74 <abs-coor>763, 0, 34</abs-coor> 75 75 <radius>100</radius> 76 76 <worldentity>Player</worldentity> … … 85 85 <radius>100</radius> 86 86 <worldentity>Player</worldentity> 87 <debugdraw>true</debugdraw>88 87 </ScriptTrigger> 89 88 … … 95 94 <radius>100</radius> 96 95 <worldentity>Player</worldentity> 97 <debugdraw>true</debugdraw>98 96 </ScriptTrigger> 99 97 … … 105 103 <radius>100</radius> 106 104 <worldentity>Player</worldentity> 107 <debugdraw>true</debugdraw>108 105 </ScriptTrigger> 109 106 … … 115 112 <radius>100</radius> 116 113 <worldentity>Player</worldentity> 117 <debugdraw>true</debugdraw>118 114 </ScriptTrigger> 119 115 … … 129 125 130 126 131 <ScriptTrigger>127 <ScriptTrigger> 132 128 <name>floorguytrigger</name> 133 129 <file>floorguy.lua</file> 134 130 <function>tick</function> 135 <abs-coor>-84, 19, 77</abs-coor> 136 <radius>100</radius> 137 <worldentity>Player</worldentity> 138 <debugdraw>true</debugdraw> 131 <abs-coor>576.753357, 19, 508.746613</abs-coor> 132 <radius>100</radius> 133 <worldentity>Player</worldentity> 139 134 </ScriptTrigger> 140 135 … … 212 207 <abs-dir>0, 0, 1, 0</abs-dir> 213 208 </GenericNPC> 209 210 211 <TestEntity> 212 <name>fallingguy</name> 213 <model>models/creatures/doom_guy.md2, 10</model> 214 <md2texture>doom_guy.png</md2texture> 215 <abs-coor>620.5, 500, -750</abs-coor> 216 <abs-dir>-1.55, 0, 0, 1</abs-dir> 217 </TestEntity> 214 218 215 219 <Door>
Note: See TracChangeset
for help on using the changeset viewer.