Changeset 9348 for code/trunk/data/levels
- Timestamp:
- Aug 30, 2012, 11:08:17 PM (12 years ago)
- Location:
- code/trunk
- Files:
-
- 50 edited
- 6 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 .project 1 2 build 2 3 codeblocks 4 dependencies 3 5 vs 4 dependencies
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
code/trunk/data/levels/FPSTest.oxw
r9016 r9348 23 23 <Scene 24 24 ambientlight = "0.1, 0.1, 0.1" 25 skybox = "Orxonox/sky panoramagen1"25 skybox = "Orxonox/skyBoxBasic" 26 26 gravity = "0,-1000,0" 27 27 negativeWorldRange = "-100000, -100000, -100000" -
code/trunk/data/levels/Spacerace2.oxw
- Property svn:eol-style set to native
r9016 r9348 12 12 13 13 include("templates/spaceshipAssff.oxt") 14 14 15 15 ?> 16 16 … … 37 37 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> 38 38 39 40 41 <checkpoints> 42 43 <attached>44 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />45 </attached>46 <collisionShapes>47 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" />48 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" />49 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" />50 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" />51 </collisionShapes>52 </RaceCheckPoint>53 54 <RaceCheckPoint name="checkpoint2" position="0,2100,2300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="1" islast="false" nextcheckpoints="3,-1,-1">55 <attached>56 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />57 </attached>58 <collisionShapes>59 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" />60 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" />61 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" />62 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" />63 </collisionShapes>64 </RaceCheckPoint>65 66 <RaceCheckPoint name="checkpoint3" position="0,700,2700" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="2" islast="false" nextcheckpoints="3,-1,-1">67 <attached>68 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />69 </attached>70 <collisionShapes>71 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" />72 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" />73 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" />74 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" />75 </collisionShapes>76 </RaceCheckPoint>77 78 <RaceCheckPoint name="checkpoint4" position="0,-400,300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="3" islast="true">79 <attached>80 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />81 </attached>82 <collisionShapes>83 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" />84 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" />85 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" />86 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" />87 </collisionShapes>88 </RaceCheckPoint>89 </checkpoints>90 </SpaceRaceManager>91 92 93 <SpaceShip position="0,0,200" lookat="0,0,0">39 40 <SpaceRaceManager> 41 <checkpoints> 42 <RaceCheckPoint name="checkpoint1" position="0,-2000,1000" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="0" islast="false" nextcheckpoints="1,2,-1"> 43 <attached> 44 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 45 </attached> 46 <collisionShapes> 47 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 48 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 49 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 50 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 51 </collisionShapes> 52 </RaceCheckPoint> 53 54 <RaceCheckPoint name="checkpoint2" position="0,2100,2300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="1" islast="false" nextcheckpoints="3,-1,-1"> 55 <attached> 56 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 57 </attached> 58 <collisionShapes> 59 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 60 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 61 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 62 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 63 </collisionShapes> 64 </RaceCheckPoint> 65 66 <RaceCheckPoint name="checkpoint3" position="0,700,2700" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="2" islast="false" nextcheckpoints="3,-1,-1"> 67 <attached> 68 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 69 </attached> 70 <collisionShapes> 71 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 72 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 73 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 74 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 75 </collisionShapes> 76 </RaceCheckPoint> 77 78 <RaceCheckPoint name="checkpoint4" position="0,-400,300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="3" islast="true"> 79 <attached> 80 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 81 </attached> 82 <collisionShapes> 83 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 84 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 85 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 86 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 87 </collisionShapes> 88 </RaceCheckPoint> 89 </checkpoints> 90 </SpaceRaceManager> 91 92 93 <SpaceShip position="0,0,200" lookat="0,0,0"> 94 94 <templates> 95 95 <Template link=spaceshipassff /> … … 202 202 203 203 204 204 205 205 </Scene> 206 206 </Level> -
code/trunk/data/levels/asteroidField.oxw
- Property svn:eol-style set to native
r9016 r9348 39 39 40 40 <!-- Belt that's far away *** TURNED OFF FOR PERFORMANCE REASONS *** --> 41 <!-- Generate asteroid field and asteroid belt --> 41 <!-- Generate asteroid field and asteroid belt --> 42 42 <!-- 43 43 <?lua 44 45 44 dofile("includes/asteroidField.lua") 45 asteroidBelt(0, 0, 0, -48, -34, 70, 100, 200, 219900, 210000, 900, 1) 46 46 ?> 47 47 --> … … 50 50 <!-- triple large belt around the planet --> 51 51 <?lua 52 53 52 dofile("includes/asteroidField.lua") 53 asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1) 54 54 ?> 55 55 <?lua 56 57 56 dofile("includes/asteroidField.lua") 57 asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1) 58 58 ?> 59 59 <?lua 60 61 60 dofile("includes/asteroidField.lua") 61 asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1) 62 62 ?> 63 63 … … 95 95 96 96 97 97 98 98 </Scene> 99 99 </Level> -
code/trunk/data/levels/asteroids.oxw
r9016 r9348 149 149 150 150 151 <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime= 30/>152 153 154 <CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime= 17>151 <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=24 /> 152 153 154 <CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=20> 155 155 <events> 156 156 <activity> … … 203 203 204 204 205 <CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=1 6>205 <CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=10> 206 206 <events> 207 207 <activity> … … 254 254 255 255 256 <CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=1 7>256 <CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10> 257 257 <events> 258 258 <activity> … … 305 305 306 306 307 <CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=1 6>307 <CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=10> 308 308 <events> 309 309 <activity> … … 356 356 357 357 358 <CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime= 22>358 <CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=15> 359 359 <events> 360 360 <activity> -
code/trunk/data/levels/docking.oxw
r9016 r9348 21 21 <Scene 22 22 ambientlight = "0.5, 0.5, 0.5" 23 skybox = "Orxonox/sky panoramagen1"23 skybox = "Orxonox/skyBoxBasic" 24 24 > 25 25 -
code/trunk/data/levels/dynamicMatch.oxw
r9016 r9348 10 10 include("stats.oxo") 11 11 include("templates/spaceshipAssff.oxt") 12 include("templates/spaceshipSwallow.oxt") 13 include("templates/spaceshipPirate.oxt") 12 14 include("templates/spaceshipGhost.oxt") 13 15 include("dynamicMatchHUD.oxo") … … 39 41 <!-- -----------12-Spawnpoints around the planet------------- --> 40 42 <!-- inner Spawnpoints --> 41 <TeamSpawnPoint team=0 position="1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>42 <TeamSpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>43 <TeamSpawnPoint team=0 position="0,1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>44 <TeamSpawnPoint team=0 position="0,-1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>45 <TeamSpawnPoint team=0 position="0,0,1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>46 <TeamSpawnPoint team=0 position="0,0,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>43 <TeamSpawnPoint team=0 position="1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 44 <TeamSpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 45 <TeamSpawnPoint team=0 position="0,1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 46 <TeamSpawnPoint team=0 position="0,-1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 47 <TeamSpawnPoint team=0 position="0,0,1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 48 <TeamSpawnPoint team=0 position="0,0,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 47 49 <!--outer Spawnpoints --> 48 <TeamSpawnPoint team=0 position="2000,0,0" lookat="0,0,1" spawnclass=SpaceShip pawndesign=spaceship assff/>49 <TeamSpawnPoint team=0 position="-2000,0,0" lookat="0,0,-1" spawnclass=SpaceShip pawndesign=spaceship assff/>50 <TeamSpawnPoint team=0 position="0,2000,0" lookat="0,1,0" spawnclass=SpaceShip pawndesign=spaceship assff/>51 <TeamSpawnPoint team=0 position="0,-2000,0" lookat="0,-1,0" spawnclass=SpaceShip pawndesign=spaceship assff/>52 <TeamSpawnPoint team=0 position="0,0,2000" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>53 <TeamSpawnPoint team=0 position="0,0,-2000" lookat="-1,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>50 <TeamSpawnPoint team=0 position="2000,0,0" lookat="0,0,1" spawnclass=SpaceShip pawndesign=spaceshippirate/> 51 <TeamSpawnPoint team=0 position="-2000,0,0" lookat="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshippirate/> 52 <TeamSpawnPoint team=0 position="0,2000,0" lookat="0,1,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 53 <TeamSpawnPoint team=0 position="0,-2000,0" lookat="0,-1,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 54 <TeamSpawnPoint team=0 position="0,0,2000" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 55 <TeamSpawnPoint team=0 position="0,0,-2000" lookat="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 54 56 55 57 <?lua … … 64 66 createSpaceStationPar(0,2,1,2,1,4,1,50) 65 67 ?> 66 <TeamSpawnPoint team=2 position="20,20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>67 <TeamSpawnPoint team=2 position="-20,-20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>68 <TeamSpawnPoint team=2 position="-10,10,20" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>68 <TeamSpawnPoint team=2 position="20,20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 69 <TeamSpawnPoint team=2 position="-20,-20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 70 <TeamSpawnPoint team=2 position="-10,10,20" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 69 71 </attached> 70 72 </StaticEntity> … … 90 92 <attached> 91 93 <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> 92 94 <attached><!-- ---------asteroid fog----- --> 93 95 <ParticleEmitter position="0,0,0" source="Orxonox/Steam" /> 94 96 </attached> 95 97 </Model> 96 98 </attached> 97 99 <?lua if i == 5 then ?><collisionShapes> -
code/trunk/data/levels/events.oxw
r9016 r9348 22 22 <Scene 23 23 ambientlight = "0.5, 0.5, 0.5" 24 skybox = "Orxonox/sky panoramagen1"24 skybox = "Orxonox/skyBoxBasic" 25 25 > 26 26 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> -
code/trunk/data/levels/fightInOurBack.oxw
r9016 r9348 121 121 <Scene 122 122 ambientlight="0.8,0.8,0.8" 123 skybox="Orxonox/sky panoramagen1"123 skybox="Orxonox/skyBoxBasic" 124 124 > 125 125 -
code/trunk/data/levels/includes/CuboidSpaceStation.lua
r7163 r9348 1 1 ---------------------------------------------------------------------------------------------------- 2 2 -- This lua script creates a totally random generated space station for the orxonox computer game!-- 3 -- (c) Wallah 2008, published under GPL licence! 3 -- (c) Wallah 2008, published under GPL licence! -- 4 4 ---------------------------------------------------------------------------------------------------- 5 5 6 6 -------------------------------------------------------------------------------------------------------------------------------------------------------------------- 7 -- IMPORTANT: If you need more parameters, do the following: copy the actual function (just the headline and the end statement) to the end of the file, 7 -- IMPORTANT: If you need more parameters, do the following: copy the actual function (just the headline and the end statement) to the end of the file, -- 8 8 -- like I did with createSpaceStation() and let that function call the new function where you can modify the parameters. For all parameters which the old function-- 9 9 -- doesn't have you just give the standard default values, which I have defined. This is to make sure, that anyone else who uses the old function can still use it-- 10 -- the same way he/she always did. If you want a function with less parameters, just create a new one at the end of the file and call this function with some 11 -- default values. REMEMBER: Function overloading is not possible, be sure to call your function differently from others already existing ones. 10 -- the same way he/she always did. If you want a function with less parameters, just create a new one at the end of the file and call this function with some -- 11 -- default values. REMEMBER: Function overloading is not possible, be sure to call your function differently from others already existing ones. -- 12 12 -------------------------------------------------------------------------------------------------------------------------------------------------------------------- 13 13 14 14 -- This function creates a randomly generated space station. 15 15 -- The first argument ranSeed, must be 0, or a positive Integer, if it is 0 your space station is always chosen randomly, if you give an integer, 16 -- 16 -- your space station will be generated randomly, but once you have the space station it will always be the same. 17 17 -- The argument xLength defines how large the space station will be into the x-direction. 18 18 -- The argument xVar defines how much the space station will vary at the ends in x-direction, this is so that the station is no cube. … … 37 37 -- Create a randomseed, so that the math.random() function is actually random. 38 38 if ranSeed == 0 then 39 39 math.randomseed(os.time()) 40 40 else 41 41 math.randomseed(ranSeed) 42 42 end 43 43 -- End create randomseed. … … 52 52 sSSize=30 53 53 if xLength>=yLength and xLength>=zLength then 54 54 sSSize=xLength+20 55 55 elseif yLength>=xLength and yLength>=zLength then 56 56 sSSize=yLength+20 57 57 elseif zLength>=xLength and zLength>=yLength then 58 58 sSSize=zLength+20 59 59 end 60 60 -- Define how many parts the space station has, this value has to be exact, so be sure to increment it if you're adding a new part. … … 78 78 pDim=6 79 79 -- Define the griddimension, be sure this value matches the size of a single space station part plus the size of a connection part, which means your parts must be: 80 -- 80 -- integer*(gridDim-connectionSize), then integer tells you how many griddimensions your part is. 81 81 gridDim=2.25 82 82 -- End define global parameters. … … 89 89 -- The parameters x,y,z are the axis of the space station, which iterate to sSSize, the maximal size of the space station. 90 90 -- The griddimension, this word I will use later, means that the distance of a point to the next point is gridDim in the game, so the absolute x-axis is x*gridDim*sSScale, 91 -- 91 -- and so on for the other dimensions y and z. 92 92 -- grid[x][y][z][0] contains 0 if there is no part at the position (x,y,z), otherwise 1. 93 93 -- grid[x][y][z][1] contains 0 if there is no connection from (x,y,z) in x-direction, "+" if there is one in the positive x-direction, 94 -- 94 -- "-" if there is one in the negative x-direction, "+-" if there are in both x-directions. 95 95 -- grid[x][y][z][2] contains 0 if there is no connection from (x,y,z) in y-direction, "+" if there is one in the positive y-direction, 96 -- 96 -- "-" if there is one in the negative y-direction, "+-" if there are in both y-directions. 97 97 -- grid[x][y][z][3] contains 0 if there is no connection from (x,y,z) in z-direction, "+" if there is one in the positive z-direction, 98 -- 98 -- "-" if there is one in the negative z-direction, "+-" if there are in both z-directions. 99 99 grid = {} 100 100 for x=-math.floor(sSSize/2),math.floor(sSSize/2) do 101 102 103 104 105 106 107 108 109 110 101 grid[x] = {} 102 for y=-math.floor(sSSize/2),math.floor(sSSize/2) do 103 grid[x][y]= {} 104 for z=-math.floor(sSSize/2),math.floor(sSSize/2) do 105 grid[x][y][z]={} 106 for i=0,3 do 107 grid[x][y][z][i]=0 108 end 109 end 110 end 111 111 end 112 112 -- End create 4-dim grid. … … 119 119 -- The first parameter i, tells us how many parts fit into the array, so it iterates from 1 to sSParts, each part has his own value i. 120 120 -- The second, third and fourth parameters are the relative coordinates of the part, you have to start at (0,0,0) and be sure you fill the array into the right direction. 121 -- 122 -- 121 -- A short example: your part is 2 griddimensions long and you place it in the game, that the relative coordinate point is at (0,0,0) and the part lies in the positive 122 -- z-axis, then you have to use the coordinate point (0,0,1). 123 123 -- The fifth parameter is an array with size 4, at index=0, you have to set 1 if your part covers the gridpoint at (x,y,z), otherwise 0. 124 -- 124 -- At index=1,2,3 you define the possible connection directions (1 for x, 2 for y and 3 for z), be sure to use the notation from above (0, "+-", "+", "-"). 125 125 bodyParts={} 126 126 for i=1,sSParts do 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 127 bodyParts[i]={} 128 for x=-math.floor(pDim/2),math.floor(pDim/2) do 129 bodyParts[i][x]={} 130 for y=-math.floor(pDim/2),math.floor(pDim/2) do 131 bodyParts[i][x][y]={} 132 for z=-math.floor(pDim/2),math.floor(pDim/2) do 133 bodyParts[i][x][y][z]={} 134 for k=0,3 do 135 bodyParts[i][x][y][z][k]=0 136 end 137 end 138 end 139 end 140 -- This contains the name of the mesh file. 141 bodyParts[i][0][0][0][4]="" 142 -- This contains the first possible rotation of your part, pitch=... yaw=... roll=... . 143 bodyParts[i][0][0][0][5]="" 144 -- This contains the second possible rotation of your part, pitch=... yaw=... roll=... . 145 bodyParts[i][0][0][0][6]="" 146 -- This contains the third possible rotation of your part, pitch=... yaw=... roll=... . 147 bodyParts[i][0][0][0][7]="" 148 -- Contains the movement rotation, rotationaxis=... rotationrate=... . 149 bodyParts[i][0][0][0][8]="" 150 -- Contains the attachment, if your part has an attachment, e.g. <ParticleEmitter .../>. 151 bodyParts[i][0][0][0][9]="" 152 -- Contains how many of this part you want to attach to your space station. 153 bodyParts[i][0][0][0][10]=1 154 154 end 155 155 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- … … 193 193 194 194 -- Insert the CuboidConnectionBody, it is three griddimensions long and one wide and high and can have only connections at griddimension 1 195 -- 195 -- (except the side in direction of griddimension 2) and griddimension 3 (except the side in direction of griddimension 2). 196 196 bodyParts[3][0][0][0][4]="CuboidConnBody.mesh" 197 197 bodyParts[3][0][0][0][5]="pitch=-90" … … 373 373 --This function actualizes the grid, which I have to call always after I have added a new part to the space station. 374 374 function actualizeGrid(Index,x,y,z) 375 376 377 378 379 380 381 382 383 384 385 375 for i=math.floor(-pDim/2)+1,math.floor(pDim/2) do 376 for j=math.floor(-pDim/2)+1,math.floor(pDim/2) do 377 for k=math.floor(-pDim/2)+1,math.floor(pDim/2) do 378 if bodyParts[Index][i][j][k][0] == 1 then 379 for l=0,3 do 380 grid[x+i][y+j][z+k][l] = bodyParts[Index][i][j][k][l] 381 end 382 end 383 end 384 end 385 end 386 386 end 387 387 -- End actualizeGrid. … … 390 390 -- If the part fits there it returns 1, otherwise 0. 391 391 function checkPart(Index,x,y,z) 392 393 394 395 396 397 --which means that the part doesn't fit there.398 399 400 401 402 403 404 392 check=1 393 for i=math.floor(-pDim/2)+1,math.floor(pDim/2) do 394 for j=math.floor(-pDim/2)+1,math.floor(pDim/2) do 395 for k=math.floor(-pDim/2)+1,math.floor(pDim/2) do 396 -- If the part occupies the position (i,j,k), the grid must be empty there ((x+i, y+j, z+k)==0), if not, check is zero, 397 -- which means that the part doesn't fit there. 398 if bodyParts[Index][i][j][k][0] == 1 and grid[x+i][y+j][z+k][0] == 1 then 399 check=0 400 end 401 end 402 end 403 end 404 return check 405 405 end 406 406 -- End checkPart function. … … 408 408 -- This function prints the model with tempPartIndex in the bodyParts array at position lx,ly,lz. 409 409 -- If you need to rotate the model around his own axis, then you have to set movEntity true and define the details of the rotation in 410 -- 410 -- bodyParts[tempPartIndex][0][0][0][8]. 411 411 -- If your model needs to be rotated like bodyParts[tempPartIndex][0][0][0][5], then side must be 1, for bodyParts[tempPartIndex][0][0][0][6] side must be 2, 412 -- 412 -- for bodyParts[tempPartIndex][0][0][0][7] side must be 3. 413 413 function printModel(lx,ly,lz,tempPartIndex,movEntity,side) 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 414 if movEntity == true then 415 print("<MovableEntity scale=1 position=\"") print(lx*gridDim*sSScale) print(",") print(ly*gridDim*sSScale) print(",") print(lz*gridDim*sSScale) print("\" ") 416 print(bodyParts[tempPartIndex][0][0][0][8]) print(">") 417 print("<attached>") 418 lx=0 ly=0 lz=0 419 end 420 421 print("<Model position=\"") print(lx*gridDim*sSScale) print(",") print(ly*gridDim*sSScale) print(",") print(lz*gridDim*sSScale) 422 print("\" scale=") print(sSScale) print(" mesh= \"") print(bodyParts[tempPartIndex][0][0][0][4]) print("\"") 423 424 if side == 1 then 425 print(bodyParts[tempPartIndex][0][0][0][5]) print(">") 426 elseif side == 2 then 427 print(bodyParts[tempPartIndex][0][0][0][6]) print(">") 428 elseif side == 3 then 429 print(bodyParts[tempPartIndex][0][0][0][7]) print(">") 430 end 431 432 print("<attached>") 433 print(bodyParts[tempPartIndex][0][0][0][9]) 434 print("</attached>") 435 436 print("</Model>") 437 438 if movEntity == true then 439 print("</attached>") 440 print("</MovableEntity>") 441 end 442 442 end 443 443 -- End function printModel(). … … 446 446 -- The arguments lx,ly,lz are the coordinates of the grid, where you want to set the part. 447 447 -- The arguments xAxis,yAxis,zAxis can be 0 or 1, but only one argument out of the three can be 1. This means two of them must always be zero. You have to set xAxis to one, 448 -- 449 -- 448 -- if your part is attached to a side, which faces into the x-direction (negative or positive, this is later specified with Dir), that means the x-Axis is a normal vector 449 -- of the side to which you want to attach the part. The same for yAxis and zAxis. 450 450 -- The argument Dir must be 1 if your side, where you want to attach the part, faces into the positive direction, -1 if the side faces into the negative direction. The side 451 -- 452 -- 451 -- faces into the positive direction means, that the side of the side where the part will be attached is directed into the direction of the positive direction of the 452 -- corresponding axis. 453 453 -- The argument index is the index of the part for the bodyParts array. 454 454 -- The argument printMovEnt must be false if your part doesn't need to be attached to an extra MovableEntity. If your part must be attached to an extra MovableEntity 455 -- 455 -- this argument must be true. The extra MovableEntity is used to rotate the part around his own axis, or something like that. 456 456 -- The argument printSide is like the argument side of the printModel() function. It defines how your part will be rotated. Read the commentary there. 457 457 -- The function returns 0 if the part couldn't be set, because it did not fit there or there was no side to attach the part. It returns 1 if the part is successfully set. 458 458 function setPart(lx,ly,lz,xAxis,yAxis,zAxis,Dir,index,printMovEnt,printSide) 459 459 460 461 462 463 464 --a connection into the positive direction. Otherwise I look from the negative side and so the part of the station must have a connection into the negative direction.465 466 467 468 469 470 471 --at the next position is a part which can have a connection into the direction from where I look.472 473 474 475 476 477 478 479 480 481 482 483 460 partSet=0 461 -- For the bodyParts array I use 1 as x-, 2 as y- and 3 as z-Axis for the definition in which directions a part can have connections. 462 coord=1*xAxis+2*yAxis+3*zAxis 463 -- If I try to attach the part from the positive direction to the side of the space station, the part of the station (where I want to attach the new part) must have 464 -- a connection into the positive direction. Otherwise I look from the negative side and so the part of the station must have a connection into the negative direction. 465 if Dir==1 then 466 conn="+" 467 elseif Dir==-1 then 468 conn="-" 469 end 470 -- I look from the direction defined through Dir, and here I check, whether I have reached a side of the space station, which means at position lx,ly,lz is nothing and 471 -- at the next position is a part which can have a connection into the direction from where I look. 472 if grid[lx][ly][lz][0] == 0 and grid[lx+(-1*xAxis*Dir)][ly+(-1*yAxis*Dir)][lz+(-1*zAxis*Dir)][0] == 1 and (grid[lx+(-1*xAxis*Dir)][ly+(-1*yAxis*Dir)][lz+(-1*zAxis*Dir)][coord]=="+-" or grid[lx+(-1*xAxis*Dir)][ly+(-1*yAxis*Dir)][lz+(-1*zAxis*Dir)][coord]==conn) then 473 -- This checks whether the part fits at that position or not. 474 check=checkPart(index,lx,ly,lz) 475 if check == 1 then 476 -- This prints the part. 477 printModel(lx,ly,lz,index,printMovEnt,printSide) 478 partSet=1 479 -- This actualizes the grid array with the values of the array bodyParts at the position index. 480 actualizeGrid(index,lx,ly,lz) 481 end 482 end 483 return partSet 484 484 end 485 485 -- End function setPart(). … … 490 490 -- The argument parts is the number of different parts which you want to attach to a side. 491 491 function spiralSet(xAxis,yAxis,zAxis,Dir,index,parts,printMovEnt,printSide) 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 492 if index[0] ~= false then 493 -- The array vector contains the actual position where you try to set the part. vector[0],vector[1] and vector[3] contains the x,y,z-coordinate. 494 vector={} 495 -- This must be done, because there are different sides from where I try to attach a part. 496 coord1=1*yAxis+2*zAxis 497 coord2=math.mod(coord1+1,3) 498 coord3=math.mod(coord2+1,3) 499 500 for pc=1,parts do 501 tempIndex = index[pc] 502 for eachPart=1,bodyParts[tempIndex][0][0][0][10] do 503 partSet=0 504 vector[coord1]=math.floor(Dir*sSSize/2)-2*Dir 505 while vector[coord1]~=math.floor(-1*Dir*sSSize/2)+2*Dir and partSet==0 do 506 round=0 507 while round<=math.floor(sSSize/2)-2 and partSet==0 do 508 vector[coord2]=round 509 vector[coord3]=-round 510 while vector[coord3]<=round and partSet==0 do 511 partSet=setPart(vector[0],vector[1],vector[2],xAxis,yAxis,zAxis,Dir,tempIndex,printMovEnt,printSide) 512 vector[coord3]=vector[coord3]+1 513 end 514 while vector[coord2]>=-round and partSet==0 do 515 partSet=setPart(vector[0],vector[1],vector[2],xAxis,yAxis,zAxis,Dir,tempIndex,printMovEnt,printSide) 516 vector[coord2]=vector[coord2]-1 517 end 518 while vector[coord3]>-round and partSet==0 do 519 partSet=setPart(vector[0],vector[1],vector[2],xAxis,yAxis,zAxis,Dir,tempIndex,printMovEnt,printSide) 520 vector[coord3]=vector[coord3]-1 521 end 522 while vector[coord2]<=round and partSet==0 do 523 partSet=setPart(vector[0],vector[1],vector[2],xAxis,yAxis,zAxis,Dir,tempIndex,printMovEnt,printSide) 524 vector[coord2]=vector[coord2]+1 525 end 526 round=round+1 527 end 528 vector[coord1]=vector[coord1]-Dir 529 end 530 end 531 end 532 end 533 533 end 534 534 -- End function spiralSet(). … … 554 554 xMax=math.random(math.floor(xLength/2),math.floor(xLength/2)+xVar) 555 555 while x<xMax do 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 556 -- The same for the y- and z-direction. 557 y=math.random(-math.floor(yLength/2),-math.floor(yLength/2)+yVar) 558 yMax=math.random(math.floor(yLength/2),math.floor(yLength/2)+yVar) 559 while y<yMax do 560 yMax=math.random(math.floor(yLength/2),math.floor(yLength/2)+yVar) 561 z=math.random(-math.floor(zLength/2),-math.floor(zLength/2)+zVar) 562 zMax=math.random(math.floor(zLength/2),math.floor(zLength/2)+zVar) 563 while z<zMax do 564 -- This loop choses a bodypart, which fits at position (x,y,z). 565 -- If after the fifth time the part does still not fit we terminate the loop and set no part at postition (x,y,z). 566 partSet=0 567 counter=0 568 while counter<5 and partSet==0 do 569 -- This choses randomly a bodyPartIndex, which is the index used for the parts in the array bodyParts. 570 tempBodyPartIndex=math.random(1,sSBodyParts) 571 check=checkPart(tempBodyPartIndex,x,y,z) 572 -- If check == 1, this means that the part fits there, so we put it there and break the while true loop, to go on. 573 if check == 1 then 574 -- This prints the chosen part at position (x*gridDim*sSScale,y*gridDim*sSScale,z*gridDim*sSScale). 575 printModel(x,y,z,tempBodyPartIndex,false,1) 576 -- This actualizes the grid array with the values of the array bodyParts at the position tempBodyPartIndex, which is our randomly chosen part. 577 actualizeGrid(tempBodyPartIndex,x,y,z) 578 partSet=1 579 end 580 counter=counter+1 581 end 582 z=z+1 583 end 584 y=y+1 585 end 586 x=x+1 587 587 end 588 588 -- End attach all bodyparts. … … 593 593 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 594 594 -- Attach backParts, if there are some. 595 595 spiralSet(0,0,1,1,backPartsIndex,backParts,false,1) 596 596 -- End attach backParts. 597 597 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- … … 599 599 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 600 600 -- Attach frontParts, if there are. 601 601 spiralSet(0,0,1,-1,frontPartsIndex,frontParts,false,1) 602 602 -- End attach frontParts. 603 603 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- … … 605 605 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 606 606 -- Attach parts on the left side of the space station. 607 607 spiralSet(1,0,0,-1,leftSidePartsIndex,leftSideParts,true,1) 608 608 -- End attach left side parts. 609 609 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- … … 611 611 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 612 612 -- Attach parts on the right side of the space station. 613 613 spiralSet(1,0,0,1,rightSidePartsIndex,rightSideParts,true,2) 614 614 -- End attach right side parts. 615 615 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- … … 617 617 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 618 618 -- Attach parts on top of the space station. 619 619 spiralSet(0,1,0,1,topPartsIndex,topParts,true,1) 620 620 -- End attach top parts. 621 621 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- … … 627 627 -- This iterates through the whole grid array. 628 628 if connPartsIndex[0] ~= false then 629 630 631 632 633 634 --then it checks if that part can have a connection into the positive x-direction, if it can, it checks if there is a part at (x+1,y,z) and635 --if that part can have a connection into the negative x-direction, if both can, it prints the xml code to set a connection part.636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 629 for x=math.floor(-sSSize/2)+2,math.floor(sSSize/2)-2 do 630 for y=math.floor(-sSSize/2)+2,math.floor(sSSize/2)-2 do 631 for z=math.floor(-sSSize/2)+2,math.floor(sSSize/2)-2 do 632 tempConnPartIndex=connPartsIndex[math.random(1,connParts)] 633 -- This checks whether there has to be a connection part between (x,y,z) and (x+1,y,z) or not. First it checks if there is a part at (x,y,z) and 634 -- then it checks if that part can have a connection into the positive x-direction, if it can, it checks if there is a part at (x+1,y,z) and 635 -- if that part can have a connection into the negative x-direction, if both can, it prints the xml code to set a connection part. 636 if grid[x][y][z][0]==1 and (grid[x][y][z][1]=="+" or grid[x][y][z][1]=="+-") and grid[x+1][y][z][0]==1 and (grid[x+1][y][z][1]=="-" or grid[x+1][y][z][1]=="+-") then 637 -- This prints the connection part, the +1/2 is because the connection is set exactly in the middle of two gridpoints. 638 printModel(x+1/2,y,z,tempConnPartIndex,false,1) 639 end 640 -- The same as in the x-direction, but for the y-direction. 641 if grid[x][y][z][0]==1 and ( grid[x][y][z][2]=="+" or grid[x][y][z][2]=="+-" ) and grid[x][y+1][z][0]==1 and ( grid[x][y+1][z][2]=="-" or grid[x][y+1][z][2]=="+-" ) then 642 printModel(x,y+1/2,z,tempConnPartIndex,false,2) 643 end 644 -- The same as in the x-direction, but for the z-direction. 645 if grid[x][y][z][0]==1 and ( grid[x][y][z][3]=="+" or grid[x][y][z][3]=="+-" ) and grid[x][y][z+1][0]==1 and ( grid[x][y][z+1][3]=="-" or grid[x][y][z+1][3]=="+-" ) then 646 printModel(x,y,z+1/2,tempConnPartIndex,false,3) 647 end 648 end 649 end 650 end 651 651 end 652 652 -- End attach all connectionparts. … … 671 671 -- This function is for the lazy guys, which do not care how the space station looks like, so I use some good standard values. 672 672 function createSpaceStation() 673 673 createSpaceStationPar(0,4,1,2,1,6,1,100) 674 674 end 675 675 -- End createSpaceStaion() function. -
code/trunk/data/levels/includes/asteroidField.lua
- Property svn:eol-style set to native
r9016 r9348 1 1 --[[ fog generator 2 2 generates fog 3 4 5 3 posX, posY, posZ - position in space 4 size - size of billboard 5 brightness - [0,1] fog brightness 6 6 --]] 7 7 function generateFog(posX, posY, posZ, size, brightness) 8 9 print("position = \"") 10 print(posX) print(",") 11 print(posY) print(",") 12 print(posZ) print("\" ") 13 14 print(brightness) print(",") 15 print(brightness) print(",") 16 print(brightness) print("\" ") 17 18 19 8 print("<Billboard ") 9 print("position = \"") 10 print(posX) print(",") 11 print(posY) print(",") 12 print(posZ) print("\" ") 13 print("colour=\"") 14 print(brightness) print(",") 15 print(brightness) print(",") 16 print(brightness) print("\" ") 17 print("material=\"Smoke/Smoke\" scale=") 18 print(size) 19 print(" />") 20 20 end 21 21 22 22 --[[ asteroid field generator 23 23 generates asteroid field 24 25 26 27 28 24 posX, posY, posZ - position in space 25 minSize, maxSize - size boundaries of each asteroid 26 radius - size of the cube around position in space 27 count - number of asteroids 28 fog - enable fog 0/1 29 29 --]] 30 30 function asteroidField(posX, posY, posZ, minSize, maxSize, radius, count, fog) 31 for i = 1, count, 1 32 do 33 size = (math.random() * (maxSize - minSize)) + minSize 34 pX = (2 * math.random() * radius) - radius + posX 35 pY = (2 * math.random() * radius) - radius + posY 36 pZ = (2 * math.random() * radius) - radius + posZ 37 print("<StaticEntity ") 38 39 print("position = \"") 40 print(pX) print(",") 41 print(pY) print(",") 42 print(pZ) print("\" ") 43 44 print("scale = \"") print(size) print("\" ") 45 46 print("collisionType = static linearDamping = 0.8 angularDamping = 1 ") 47 print("collisiondamage = 1000 enablecollisiondamage = true>") 48 49 print("<attached>") 50 print("<Model mass=\"") print(size * 10) print("\" ") 51 print("mesh=\"ast") print(math.mod(i,6) + 1) print(".mesh\" />") 52 print("</attached>") 53 54 print("<collisionShapes> ") 55 print("<SphereCollisionShape radius=\"") 56 print(size * 2.5) print("\" />") 57 print("</collisionShapes>") 58 59 print("</StaticEntity>") 60 61 if fog == 1 and i % 5 == 0 then 62 generateFog(pX, pY, pZ, radius*0.04, 0.2) 63 end 64 end 31 for i = 1, count, 1 do 32 size = (math.random() * (maxSize - minSize)) + minSize 33 pX = (2 * math.random() * radius) - radius + posX 34 pY = (2 * math.random() * radius) - radius + posY 35 pZ = (2 * math.random() * radius) - radius + posZ 36 print("<StaticEntity ") 37 38 print("position = \"") 39 print(pX) print(",") 40 print(pY) print(",") 41 print(pZ) print("\" ") 42 43 print("scale = \"") print(size) print("\" ") 44 45 print("collisionType = static linearDamping = 0.8 angularDamping = 1 ") 46 print("collisiondamage = 1000 enablecollisiondamage = true>") 47 48 print("<attached>") 49 print("<Model mass=\"") print(size * 10) print("\" ") 50 print("mesh=\"ast") print(math.mod(i,6) + 1) print(".mesh\" />") 51 print("</attached>") 52 53 print("<collisionShapes> ") 54 print("<SphereCollisionShape radius=\"") 55 print(size * 2.5) print("\" />") 56 print("</collisionShapes>") 57 58 print("</StaticEntity>") 59 60 if fog == 1 and i % 5 == 0 then 61 generateFog(pX, pY, pZ, radius*0.04, 0.2) 62 end 63 end 65 64 end 66 65 … … 68 67 --[[ asteroid belt generator 69 68 generates asteroid belt 70 71 72 73 74 75 69 posX, posY, posZ - position in space 70 yaw, pitch - rotation 71 minSize, maxSize - size boundaries of each asteroid 72 radius0, radius1 - inner/outer radius 73 count - number of asteroids 74 fog - enable fog 0/1 76 75 --]] 77 76 function asteroidBelt(centerX, centerY, centerZ, yaw, pitch, segments, minSize, maxSize, radius0, radius1, count, fog) 78 dPhi = (2 * math.pi) / segments 79 width = math.abs(radius1 - radius0) 80 radius = (radius1 + radius0) / 2 81 segmentCount = count / segments 82 83 print("<StaticEntity collisionType=static yaw=") print(yaw) 84 print(" pitch=") print(pitch) 85 86 print(" position = \"") 87 print(centerX) print(",") 88 print(centerY) print(",") 89 print(centerZ) print("\"") 90 print(">") 91 92 print("<attached>") 93 94 for i = 0, segments - 1, 1 95 do 96 asteroidField((radius * math.cos(i * dPhi)), 97 (radius * math.sin(i * dPhi)), 98 0, minSize, maxSize, width, segmentCount, fog) 99 end 100 101 print("</attached>") 102 print("</StaticEntity>") 77 dPhi = (2 * math.pi) / segments 78 width = math.abs(radius1 - radius0) 79 radius = (radius1 + radius0) / 2 80 segmentCount = count / segments 81 82 print("<StaticEntity collisionType=static yaw=") print(yaw) 83 print(" pitch=") print(pitch) 84 85 print(" position = \"") 86 print(centerX) print(",") 87 print(centerY) print(",") 88 print(centerZ) print("\"") 89 print(">") 90 91 print("<attached>") 92 93 for i = 0, segments - 1, 1 do 94 asteroidField((radius * math.cos(i * dPhi)), 95 (radius * math.sin(i * dPhi)), 96 0, minSize, maxSize, width, segmentCount, fog) 97 end 98 99 print("</attached>") 100 print("</StaticEntity>") 103 101 end -
code/trunk/data/levels/includes/pickups.oxi
r8713 r9348 3 3 4 4 <PickupRepresentation 5 name = "smallshieldpickup" 5 6 pickupName = "Small Shield Pickup" 6 7 pickupDescription = "Gives you a small-sized shield for 30 seconds." 7 8 inventoryRepresentation = "SmallShield" 8 9 spawnerTemplate = "smallshieldpickupRepresentation" 9 > 10 <pickup> 11 <ShieldPickup template=smallshieldpickup /> 12 </pickup> 13 </PickupRepresentation> 14 15 <PickupRepresentation 10 /> 11 12 <PickupRepresentation 13 name = "mediumshieldpickup" 16 14 pickupName = "Medium Shield Pickup" 17 15 pickupDescription = "Gives you a medium-sized shield for 30 seconds." 18 16 inventoryRepresentation = "MediumShield" 19 17 spawnerTemplate = "mediumshieldpickupRepresentation" 20 > 21 <pickup> 22 <ShieldPickup template=mediumshieldpickup /> 23 </pickup> 24 </PickupRepresentation> 25 26 <PickupRepresentation 18 /> 19 20 <PickupRepresentation 21 name = "hugeshieldpickup" 27 22 pickupName = "Huge Shield Pickup" 28 23 pickupDescription = "Gives you a big shield for 60 seconds." 29 24 inventoryRepresentation = "HugeShield" 30 25 spawnerTemplate = "hugeshieldpickupRepresentation" 31 > 32 <pickup> 33 <ShieldPickup template=hugeshieldpickup /> 34 </pickup> 35 </PickupRepresentation> 26 /> 36 27 37 28 <!-- Health pickups --> 38 29 39 30 <PickupRepresentation 31 name = "smallhealthpickup" 40 32 pickupName = "Small Health Boost" 41 33 pickupDescription = "Adds a small amout of health to the ship." 42 34 inventoryRepresentation = "SmallHealth" 43 35 spawnerTemplate = "smallhealthpickupRepresentation" 44 > 45 <pickup> 46 <HealthPickup template=smallhealthpickup /> 47 </pickup> 48 </PickupRepresentation> 49 50 <PickupRepresentation 36 /> 37 38 <PickupRepresentation 39 name = "mediumhealthpickup" 51 40 pickupName = "Medium Health Boost" 52 41 pickupDescription = "Adds a medium amout of health to the ship." 53 42 spawnerTemplate = "mediumhealthpickupRepresentation" 54 43 inventoryRepresentation = "MediumHealth" 55 > 56 <pickup> 57 <HealthPickup template=mediumhealthpickup /> 58 </pickup> 59 </PickupRepresentation> 60 61 <PickupRepresentation 44 /> 45 46 <PickupRepresentation 47 name = "hugehealthpickup" 62 48 pickupName = "Huge Health Boost" 63 49 pickupDescription = "Adds a huge amout of health to the ship." 64 50 spawnerTemplate = "hugehealthpickupRepresentation" 65 51 inventoryRepresentation = "HugeHealth" 66 > 67 <pickup> 68 <HealthPickup template=hugehealthpickup /> 69 </pickup> 70 </PickupRepresentation> 71 72 <PickupRepresentation 52 /> 53 54 <PickupRepresentation 55 name = "crazyhealthpickup" 73 56 pickupName = "Crazy Madness Health Boost" 74 57 pickupDescription = "Adds a crazy amout of health to the ship." 75 58 spawnerTemplate = "crazyhealthpickupRepresentation" 76 59 inventoryRepresentation = "CrazyMadnessHealth" 77 > 78 <pickup> 79 <HealthPickup template=crazyhealthpickup /> 80 </pickup> 81 </PickupRepresentation> 60 /> 82 61 83 62 <!-- Meta pickups --> 84 63 85 64 <PickupRepresentation 65 name = "use" 86 66 pickupName = "Use Pickup" 87 67 pickupDescription = "Uses all pickups you have." 88 68 spawnerTemplate = "usepickupRepresentation" 89 69 inventoryRepresentation = "usePickup" 90 > 91 <pickup> 92 <MetaPickup metaType="use" /> 93 </pickup> 94 </PickupRepresentation> 95 96 <PickupRepresentation 70 /> 71 72 <PickupRepresentation 73 name = "drop" 97 74 pickupName = "Drop Pickup" 98 75 pickupDescription = "Drops all pickups you have." 99 76 spawnerTemplate = "droppickupRepresentation" 100 77 inventoryRepresentation = "dropPickup" 101 > 102 <pickup> 103 <MetaPickup metaType="drop" /> 104 </pickup> 105 </PickupRepresentation> 78 /> 106 79 107 80 <!-- Speed pickups --> 108 81 109 82 <PickupRepresentation 83 name = "smallspeedpickup" 110 84 pickupName = "Small Speed Boost" 111 85 pickupDescription = "Multiplies Speed of the Ship by a small amount." 112 86 spawnerTemplate = "smallspeedpickupRepresentation" 113 87 inventoryRepresentation = "SmallSpeed" 114 > 115 <pickup> 116 <SpeedPickup template=smallspeedpickup /> 117 </pickup> 118 </PickupRepresentation> 119 120 <PickupRepresentation 88 /> 89 90 <PickupRepresentation 91 name = "mediumspeedpickup" 121 92 pickupName = "Medium Speed Boost" 122 93 pickupDescription = "Multiplies Speed of the Ship by a bigger amount." 123 94 spawnerTemplate = "mediumspeedpickupRepresentation" 124 95 inventoryRepresentation = "MediumSpeed" 125 > 126 <pickup> 127 <SpeedPickup template=mediumspeedpickup /> 128 </pickup> 129 </PickupRepresentation> 130 131 <PickupRepresentation 96 /> 97 98 <PickupRepresentation 99 name = "hugespeedpickup" 132 100 pickupName = "Huge Speed Boost" 133 101 pickupDescription = "Multiplies Speed of the Ship by a huge amount." 134 102 spawnerTemplate = "hugespeedpickupRepresentation" 135 103 inventoryRepresentation = "HugeSpeed" 136 > 137 <pickup> 138 <SpeedPickup template=hugespeedpickup /> 139 </pickup> 140 </PickupRepresentation> 141 142 <PickupRepresentation 104 /> 105 106 <PickupRepresentation 107 name = "smalljumppickup" 143 108 pickupName = "Small Jump Boost" 144 109 pickupDescription = "Boosts the Ship with a massive amount for a very short time." 145 110 spawnerTemplate = "smalljumppickupRepresentation" 146 111 inventoryRepresentation = "SmallSpeed" 147 > 148 <pickup> 149 <SpeedPickup template=smalljumppickup /> 150 </pickup> 151 </PickupRepresentation> 112 /> 152 113 153 114 <!-- Invisible pickups --> 154 115 155 116 <PickupRepresentation 117 name = "smallinvisiblepickup" 156 118 pickupName = "Small Invisibility" 157 119 pickupDescription = "Makes you invisible for 5 seconds." 158 120 spawnerTemplate = "smallinvisiblepickupRepresentation" 159 121 inventoryRepresentation = "SmallInvisible" 160 > 161 <pickup> 162 <InvisiblePickup template=smallinvisiblepickup /> 163 </pickup> 164 </PickupRepresentation> 165 166 <PickupRepresentation 122 /> 123 124 <PickupRepresentation 125 name = "mediuminvisiblepickup" 167 126 pickupName = "Medium Invisibility" 168 127 pickupDescription = "Makes you invisible for 10 seconds." 169 128 spawnerTemplate = "mediuminvisiblepickupRepresentation" 170 129 inventoryRepresentation = "MediumInvisible" 171 > 172 <pickup> 173 <InvisiblePickup template=mediuminvisiblepickup /> 174 </pickup> 175 </PickupRepresentation> 176 177 <PickupRepresentation 130 /> 131 132 <PickupRepresentation 133 name = "hugeinvisiblepickup" 178 134 pickupName = "Huge Invisibility" 179 135 pickupDescription = "Makes you invisible for 20 seconds." 180 136 spawnerTemplate = "hugeinvisiblepickupRepresentation" 181 137 inventoryRepresentation = "HugeInvisible" 182 > 183 <pickup> 184 <InvisiblePickup template=hugeinvisiblepickup /> 185 </pickup> 186 </PickupRepresentation> 138 /> 187 139 188 140 <!-- Pickup Collection pickups --> 189 141 190 142 <PickupRepresentation 143 name = "triplehealthspeedinvisibilitypickup" 191 144 pickupName = "Tri Pickup" 192 145 pickupDescription = "Adds health, speed and invisibility." 193 146 spawnerTemplate = "triplehealthspeedinvisibilitypickupRepresentation" 194 > 195 <pickup> 196 <PickupCollection template=triplehealthspeedinvisibilitypickup /> 197 </pickup> 198 </PickupRepresentation> 147 /> 199 148 200 149 <!-- Drone Pickup --> 201 150 202 151 <PickupRepresentation 152 name = "dronepickup" 203 153 pickupName = "Drone Pickup" 204 154 pickupDescription = "Adds a Drone to the Player's Spaceship" 205 155 spawnerTemplate = "dronepickupRepresentation" 206 > 207 <pickup> 208 <DronePickup template=dronepickup /> 209 </pickup> 210 </PickupRepresentation> 156 /> 157 158 <!-- DamageBoost Pickup --> 159 160 <PickupRepresentation 161 name = "smalldamageboostpickup" 162 pickupName = "Small DamageBoost Pickup" 163 pickupDescription = "Multiplies the ship damage with 2." 164 spawnerTemplate = "smalldamageboostpickupRepresentation" 165 inventoryRepresentation = "SmallDamageBoost" 166 /> 167 168 <PickupRepresentation 169 name = "mediumdamageboostpickup" 170 pickupName = "Medium DamageBoost Pickup" 171 pickupDescription = "Multiplies the ship damage with 5." 172 spawnerTemplate = "mediumdamageboostpickupRepresentation" 173 inventoryRepresentation = "MediumDamageBoost" 174 /> 175 176 <PickupRepresentation 177 name = "largedamageboostpickup" 178 pickupName = "Large DamageBoost Pickup" 179 pickupDescription = "Multiplies the ship damage with 7." 180 spawnerTemplate = "largedamageboostpickupRepresentation" 181 inventoryRepresentation = "LargeDamageBoost" 182 /> 211 183 212 184 <!-- Shrink Pickup --> 213 185 214 186 <PickupRepresentation 187 name = "smallshrinkpickup" 215 188 pickupName = "Small Shrink" 216 189 pickupDescription = "Shrinks the Ship by a bit" 217 190 spawnerTemplate = "smallshrinkpickupRepresentation" 218 191 inventoryRepresentation = "SmallShrink" 219 > 220 <pickup> 221 <ShrinkPickup template=smallshrinkpickup /> 222 </pickup> 223 </PickupRepresentation> 224 225 <PickupRepresentation 192 /> 193 194 <PickupRepresentation 195 name = "mediumshrinkpickup" 226 196 pickupName = "Medium Shrink" 227 197 pickupDescription = "Shrinks the Ship" 228 198 spawnerTemplate = "mediumshrinkpickupRepresentation" 229 199 inventoryRepresentation = "MediumShrink" 230 > 231 <pickup> 232 <ShrinkPickup template=mediumshrinkpickup /> 233 </pickup> 234 </PickupRepresentation> 235 236 <PickupRepresentation 200 /> 201 202 <PickupRepresentation 203 name = "hugeshrinkpickup" 237 204 pickupName = "Huge Shrink" 238 205 pickupDescription = "Shrinks the Ship considerably" 239 206 spawnerTemplate = "hugeshrinkpickupRepresentation" 240 207 inventoryRepresentation = "HugeShrink" 241 > 242 <pickup> 243 <ShrinkPickup template=hugeshrinkpickup /> 244 </pickup> 245 </PickupRepresentation> 246 208 /> -
code/trunk/data/levels/includes/weaponSettingsFPS.oxi
r8755 r9348 1 1 <weaponslots> 2 2 <WeaponSlot position="0,0,0" yaw=0 pitch=0 roll=0 /> 3 <!-- <WeaponSlot position="-0.5,0.8,2.5" yaw=0 pitch=0 roll=0 /> 3 <!-- 4 <WeaponSlot position="-0.5,0.8,2.5" yaw=0 pitch=0 roll=0 /> 4 5 <WeaponSlot position="15,-1.5,-25" yaw=0 pitch=0 roll=0 /> 5 <WeaponSlot position="0,0,-45" yaw=0 pitch=0 roll=0 /> --> 6 <WeaponSlot position="0,0,-45" yaw=0 pitch=0 roll=0 /> 7 --> 6 8 </weaponslots> 7 9 <weaponsets> … … 11 13 <weapons> 12 14 <WeaponPack firemode=0> 13 15 <links> 14 16 <DefaultWeaponmodeLink firemode=0 weaponmode=0 /> 15 17 <DefaultWeaponmodeLink firemode=1 weaponmode=1 /> 16 18 <DefaultWeaponmodeLink firemode=2 weaponmode=2 /> 17 19 </links> 18 19 20 20 <Weapon> 21 <HsW01 mode=0 munitionpershot=0 delay=0.0 damage=2.5 material="Flares/point_lensflare" muzzleoffset=" 0.7, -0.3, -3" /> 22 <LightningGun mode=1 muzzleoffset="0,0,0" damage=3.14159 shielddamage=20/> 21 23 </Weapon> 22 24 <LaserGun … … 28 30 unlimitedMunition=true 29 31 /> 30 <!-- <LaserGun32 <!--LaserGun 31 33 position="0,0,0" 32 34 munitionType="LaserGunMunition" … … 45 47 speed="600" 46 48 unlimitedMunition=true 47 / >-->49 /--> 48 50 </WeaponPack> 49 51 </weapons> -
code/trunk/data/levels/includes/weaponSettingsSpacecruiser.oxi
- Property svn:eol-style set to native
-
code/trunk/data/levels/lastManStanding.oxw
r9016 r9348 33 33 ?> 34 34 35 <!----- Spawnpoints 35 <!----- Spawnpoints 36 36 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> 37 37 <SpawnPoint team=0 position="-1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> … … 44 44 45 45 <!-- ------------ middle asteroid -------------- --> 46 <StaticEntity position="0,0,0" collisionType=static> 46 <StaticEntity position="0,0,0" collisionType=static> 47 47 <attached> 48 48 <MovableEntity position="0,20,0" rotationrate="-4.5" rotationaxis="0,1,0" > … … 50 50 <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true /> 51 51 <Model position="-160,40,28.4" scale=1 mesh="sphere.mesh" /><!--EasterEgg indicator--> 52 <PickupSpawner position="-160,40,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="15"><!--EasterEgg : invisible pickup is hidden inside the asteroid --> 53 <pickup> 54 <InvisiblePickup template=hugeinvisiblepickup /> 55 </pickup> 56 </PickupSpawner> 52 <PickupSpawner pickup=hugeinvisiblepickup position="-160,40,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="15" /><!--EasterEgg : invisible pickup is hidden inside the asteroid --> 57 53 </attached> 58 54 </MovableEntity> … … 79 75 <attached> 80 76 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> 81 77 </Model> 82 78 </attached> 83 79 <collisionShapes> … … 89 85 <attached> 90 86 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh"> 91 87 </Model> 92 88 </attached> 93 89 <collisionShapes> … … 99 95 <attached> 100 96 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh"> 101 97 </Model> 102 98 </attached> 103 99 <collisionShapes> … … 109 105 <attached> 110 106 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh"> 111 107 </Model> 112 108 </attached> 113 109 <collisionShapes> … … 119 115 <attached> 120 116 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh"> 121 117 </Model> 122 118 </attached> 123 119 <collisionShapes> … … 130 126 <attached> 131 127 <Model position="0,0,0" scale=25 mesh="ast6.mesh"> 132 128 </Model> 133 129 </attached> 134 130 <collisionShapes> -
code/trunk/data/levels/lastTeamStanding.oxw
r9016 r9348 18 18 name = "Last Team Standing" 19 19 description = "testmap for gametype last team standing" 20 gametype = " TeamGametype"20 gametype = "LastTeamStanding" 21 21 > 22 22 <templates> … … 27 27 <Scene 28 28 ambientlight = "0.8, 0.8, 0.8" 29 skybox = "Orxonox/sky panoramagen1"29 skybox = "Orxonox/skyBoxBasic" 30 30 > 31 <?lua include("includes/notifications.oxi") ?>32 31 33 32 <?lua … … 48 47 </StaticEntity> 49 48 50 <PickupSpawner position="-160,60,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg--> 51 <pickup> 52 <InvisiblePickup template=hugeinvisiblepickup /> 53 </pickup> 54 </PickupSpawner> 49 <PickupSpawner pickup=hugeinvisiblepickup position="-160,60,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="10" /><!--EasterEgg--> 55 50 <StaticEntity position="-160,60,28.4"><!--EasterEgg-Indicator--> 56 51 <attached> … … 74 69 <attached> 75 70 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> 76 71 </Model> 77 72 </attached> 78 73 <collisionShapes> … … 84 79 <attached> 85 80 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh"> 86 81 </Model> 87 82 </attached> 88 83 <collisionShapes> … … 94 89 <attached> 95 90 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh"> 96 91 </Model> 97 92 </attached> 98 93 <collisionShapes> … … 104 99 <attached> 105 100 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh"> 106 101 </Model> 107 102 </attached> 108 103 <collisionShapes> … … 114 109 <attached> 115 110 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh"> 116 111 </Model> 117 112 </attached> 118 113 <collisionShapes> … … 125 120 <attached> 126 121 <Model position="0,0,0" scale=25 mesh="ast6.mesh"> 127 122 </Model> 128 123 </attached> 129 124 <collisionShapes> -
code/trunk/data/levels/lastTeamStandingII.oxw
r9016 r9348 25 25 <Scene 26 26 ambientlight = "0.8, 0.8, 0.8" 27 skybox = "Orxonox/sky panoramagen1"27 skybox = "Orxonox/skyBoxBasic" 28 28 > 29 29 <!-- TODO: -
code/trunk/data/levels/missionOne.oxw
- Property svn:eol-style set to native
r9257 r9348 1153 1153 1154 1154 <!-- @Objects: Pickup - find better place !! --> 1155 <PickupSpawner position="-48650,700,100" triggerDistance="70" respawnTime="30" maxSpawnedItems="1"> 1156 <pickup> 1157 <ShieldPickup template=hugeshieldpickup /> 1158 </pickup> 1159 </PickupSpawner> 1155 <PickupSpawner pickup=hugeshieldpickup position="-48650,700,100" triggerDistance="70" respawnTime="30" maxSpawnedItems="1" /> 1160 1156 1161 1157 -
code/trunk/data/levels/notifications.oxw
r9016 r9348 21 21 <Scene 22 22 ambientlight = "0.5, 0.5, 0.5" 23 skybox = "Orxonox/sky panoramagen1"23 skybox = "Orxonox/skyBoxBasic" 24 24 > 25 25 -
code/trunk/data/levels/old/CuboidSpaceStation.oxw
r7679 r9348 1 1 <?lua 2 2 include("HUDTemplates3.oxo") 3 3 ?> 4 4 5 5 <?lua 6 6 include("templates/spaceshipAssff.oxt") 7 7 ?> 8 8 9 9 <Level 10 11 10 name = "SpaceStation test Space!" 11 description = "All the new SpaceStations are created here!" 12 12 > 13 14 15 16 13 <Scene 14 ambientlight = "0.5, 0.5, 0.5" 15 skybox = "Orxonox/Starbox" 16 > 17 17 18 18 … … 20 20 <!--------------------------------------------------------------------------------------------------------------------------------------------------------------------------> 21 21 <?lua 22 22 dofile("includes/CuboidSpaceStation.lua") 23 23 ?> 24 24 … … 29 29 ---> 30 30 <?lua 31 31 createSpaceStation() 32 32 ?> 33 33 … … 37 37 ---> 38 38 <PositionableEntity scale=1 position="0,0,-5000"> 39 40 41 42 43 39 <attached> 40 <?lua 41 createSpaceStation() 42 ?> 43 </attached> 44 44 </PositionableEntity> 45 45 … … 49 49 ---> 50 50 <MovableEntity scale=1 position="5000,0,0" velocity="50,0,0" yaw=-90> 51 52 53 54 55 51 <attached> 52 <?lua 53 createSpaceStation() 54 ?> 55 </attached> 56 56 </MovableEntity> 57 57 … … 61 61 ---> 62 62 <MovableEntity scale=1 position="-5000,0,0" rotationaxis="0,1,0" rotationrate=5> 63 64 65 66 67 63 <attached> 64 <?lua 65 createSpaceStation() 66 ?> 67 </attached> 68 68 </MovableEntity> 69 69 … … 77 77 ---> 78 78 <MovableEntity scale=1 position="0,0,0" rotationaxis="0,1,0" rotationrate=3> 79 80 81 82 83 84 85 86 87 88 79 <attached> 80 <MovableEntity scale=1 position="10000,0,0" rotationaxis="0,0,1" rotationrate=2> 81 <attached> 82 <?lua 83 -- Here I use the createSpaceStationPar(...) function, which has 8 arguments, see the .lua file at the top to understand them. 84 createSpaceStationPar(0,2,1,2,1,2,1,50) 85 ?> 86 </attached> 87 </MovableEntity> 88 </attached> 89 89 </MovableEntity> 90 90 … … 95 95 96 96 97 97 <ParticleSpawner position="0,0,0" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> 98 98 <events> 99 99 <spawn> -
code/trunk/data/levels/old/presentationPhysics.oxw
r7679 r9348 12 12 <Scene 13 13 ambientlight = "0.8, 0.8, 0.8" 14 skybox = "Orxonox/sky panoramagen1"14 skybox = "Orxonox/skyBoxBasic" 15 15 gravity = "0, -10, 0" 16 16 > -
code/trunk/data/levels/old/princessAeryn.oxw
r7679 r9348 15 15 <Scene 16 16 ambientlight = "0.3, 0.3, 0.3" 17 skybox = "Orxonox/sky panoramagen1"17 skybox = "Orxonox/skyBoxBasic" 18 18 > 19 19 -
code/trunk/data/levels/pickups.oxw
r9016 r9348 37 37 <!-- Shield pickups --> 38 38 39 <PickupSpawner position="-25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 40 <pickup> 41 <ShieldPickup template=smallshieldpickup /> 42 </pickup> 43 </PickupSpawner> 44 45 <PickupSpawner position="0,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 46 <pickup> 47 <ShieldPickup template=mediumshieldpickup /> 48 </pickup> 49 </PickupSpawner> 50 51 <PickupSpawner position="25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 52 <pickup> 53 <ShieldPickup template=hugeshieldpickup /> 54 </pickup> 55 </PickupSpawner> 39 <PickupSpawner pickup=smallshieldpickup position="-25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 40 <PickupSpawner pickup=mediumshieldpickup position="0,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 41 <PickupSpawner pickup=hugeshieldpickup position="25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 56 42 57 43 <!-- Health pickups --> 58 44 59 <PickupSpawner position="-25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10"> 60 <pickup> 61 <HealthPickup template=smallhealthpickup /> 62 </pickup> 63 </PickupSpawner> 64 65 <PickupSpawner position="0,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10"> 66 <pickup> 67 <HealthPickup template=mediumhealthpickup /> 68 </pickup> 69 </PickupSpawner> 70 71 <PickupSpawner position="25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10"> 72 <pickup> 73 <HealthPickup template=hugehealthpickup /> 74 </pickup> 75 </PickupSpawner> 76 77 <PickupSpawner position="50,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10"> 78 <pickup> 79 <HealthPickup template=crazyhealthpickup /> 80 </pickup> 81 </PickupSpawner> 45 <PickupSpawner pickup=smallhealthpickup position="-25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 46 <PickupSpawner pickup=mediumhealthpickup position="0,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 47 <PickupSpawner pickup=hugehealthpickup position="25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 48 <PickupSpawner pickup=crazyhealthpickup position="50,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 82 49 83 50 <!-- Speed pickups --> 84 51 85 <PickupSpawner position="-25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99"> 86 <pickup> 87 <SpeedPickup template=smallspeedpickup /> 88 </pickup> 89 </PickupSpawner> 90 91 <PickupSpawner position="0,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99"> 92 <pickup> 93 <SpeedPickup template=mediumspeedpickup /> 94 </pickup> 95 </PickupSpawner> 96 97 <PickupSpawner position="25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99"> 98 <pickup> 99 <SpeedPickup template=hugespeedpickup /> 100 </pickup> 101 </PickupSpawner> 102 103 <PickupSpawner position="50,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99"> 104 <pickup> 105 <SpeedPickup template=smalljumppickup /> 106 </pickup> 107 </PickupSpawner> 52 <PickupSpawner pickup=smallspeedpickup position="-25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" /> 53 <PickupSpawner pickup=mediumspeedpickup position="0,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" /> 54 <PickupSpawner pickup=hugespeedpickup position="25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" /> 55 <PickupSpawner pickup=smalljumppickup position="50,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" /> 108 56 109 57 <!-- Invisible pickups --> 110 58 111 <PickupSpawner position="-25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 112 <pickup> 113 <InvisiblePickup template=smallinvisiblepickup /> 114 </pickup> 115 </PickupSpawner> 116 117 <PickupSpawner position="0,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 118 <pickup> 119 <InvisiblePickup template=mediuminvisiblepickup /> 120 </pickup> 121 </PickupSpawner> 122 123 <PickupSpawner position="25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 124 <pickup> 125 <InvisiblePickup template=hugeinvisiblepickup /> 126 </pickup> 127 </PickupSpawner> 59 <PickupSpawner pickup=smallinvisiblepickup position="-25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 60 <PickupSpawner pickup=mediuminvisiblepickup position="0,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 61 <PickupSpawner pickup=hugeinvisiblepickup position="25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 128 62 129 63 <!-- Meta pickups --> 130 64 131 <PickupSpawner position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 132 <pickup> 133 <MetaPickup metaType="use" /> 134 </pickup> 135 </PickupSpawner> 136 137 <PickupSpawner position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 138 <pickup> 139 <MetaPickup metaType="drop" /> 140 </pickup> 141 </PickupSpawner> 142 143 <PickupSpawner position="25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 144 <pickup> 145 <MetaPickup metaType="destroy" /> 146 </pickup> 147 </PickupSpawner> 148 149 <PickupSpawner position="50,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 150 <pickup> 151 <MetaPickup metaType="destroyCarrier" /> 152 </pickup> 153 </PickupSpawner> 65 <Template name=usemetapickup baseclass=MetaPickup> 66 <MetaPickup representation="use" metaType="use" /> 67 </Template> 68 69 <Template name=dropmetapickup baseclass=MetaPickup> 70 <MetaPickup representation="drop" metaType="drop" /> 71 </Template> 72 73 <Template name=destroymetapickup baseclass=MetaPickup> 74 <MetaPickup metaType="destroy" /> 75 </Template> 76 77 <Template name=destroycarriermetapickup baseclass=MetaPickup> 78 <MetaPickup metaType="destroyCarrier" /> 79 </Template> 80 81 <PickupSpawner pickup=usemetapickup position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 82 <PickupSpawner pickup=dropmetapickup position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 83 <PickupSpawner pickup=destroymetapickup position="25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 84 <PickupSpawner pickup=destroycarriermetapickup position="50,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 154 85 155 86 <!-- Pickup Collection pickups --> 156 87 157 <PickupSpawner position="-50,25,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10"> 158 <pickup> 159 <PickupCollection template=triplehealthspeedinvisibilitypickup /> 160 </pickup> 161 </PickupSpawner> 88 <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="-50,25,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 162 89 163 90 <!-- Drone pickup --> 164 91 165 <PickupSpawner position="-50,50,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10"> 166 <pickup> 167 <DronePickup template=dronepickup /> 168 </pickup> 169 </PickupSpawner> 92 <PickupSpawner pickup=dronepickup position="-50,50,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 93 94 <!-- DamageBoost pickup --> 95 96 <PickupSpawner pickup=smalldamageboostpickup position="-50,75,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 97 <PickupSpawner pickup=mediumdamageboostpickup position="-50,100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 98 <PickupSpawner pickup=largedamageboostpickup position="-50,125,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 170 99 171 100 <!-- Other pickups --> … … 173 102 <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi --> 174 103 <PickupRepresentation 104 name = "MediumHealth" 175 105 pickupName = "Medium Health Pack" 176 106 pickupDescription = "Once used adds a medium amout of health to the ship." 177 107 spawnerTemplate = "mediumhealthpickupRepresentation" 178 108 inventoryRepresentation = "MediumHealth" 179 > 180 <pickup> 181 <HealthPickup health=500 activationType=immediate healthRate=10 durationType=continuous /> 182 </pickup> 183 </PickupRepresentation> 109 /> 184 110 185 < PickupSpawner position="-50,0,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">186 < pickup>187 <HealthPickup health=500 activationType=immediate healthRate=10 durationType=continuous />188 </pickup>189 < /PickupSpawner>111 <Template name=continuoushealthpickup baseclass=HealthPickup> 112 <HealthPickup representation="MediumHealth" health=500 activationType=immediate healthRate=10 durationType=continuous /> 113 </Template> 114 115 <PickupSpawner pickup=continuoushealthpickup position="-50,0,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" /> 190 116 191 <PickupSpawner position="-25,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 192 <pickup> 193 <ShrinkPickup template ="smallshrinkpickup"/> 194 </pickup> 195 </PickupSpawner> 117 <PickupSpawner pickup="smallshrinkpickup" position="-25,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" /> 118 <PickupSpawner pickup="mediumshrinkpickup" position="0,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" /> 119 <PickupSpawner pickup="hugeshrinkpickup" position="25,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" /> 120 121 <!-- @Objects: 4 boxes (uncontrolled pawns) --> 122 <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" > 123 <events> 124 <visibility> 125 <EventListener event="flying4" /> 126 </visibility> 127 </events> 128 <attached> 129 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 130 </attached> 131 <collisionShapes> 132 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 133 </collisionShapes> 134 </Pawn> 196 135 197 <PickupSpawner position="0,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 198 <pickup> 199 <ShrinkPickup template ="mediumshrinkpickup"/> 200 </pickup> 201 </PickupSpawner> 136 <Pawn team=1 health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 3"> 137 <events> 138 <visibility> 139 <EventListener event="flying4" /> 140 </visibility> 141 </events> 142 <attached> 143 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 144 </attached> 145 <collisionShapes> 146 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 147 </collisionShapes> 148 </Pawn> 202 149 203 <PickupSpawner position="25,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 204 <pickup> 205 <ShrinkPickup template ="hugeshrinkpickup"/> 206 </pickup> 207 </PickupSpawner> 150 <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1 RVName = "Box 2"> 151 <events> 152 <visibility> 153 <EventListener event="flying4" /> 154 </visibility> 155 </events> 156 <attached> 157 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 158 </attached> 159 <collisionShapes> 160 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 161 </collisionShapes> 162 </Pawn> 163 164 <Pawn health=30 position="0,400,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1 RVName = "Box 1"> 165 <events> 166 <visibility> 167 <EventListener event="flying4" /> 168 </visibility> 169 </events> 170 <attached> 171 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 172 </attached> 173 <collisionShapes> 174 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 175 </collisionShapes> 176 </Pawn> 208 177 209 178 <!--StaticEntity position="0,-200,0" direction="0,-1,0" collisionType=static mass=500 friction=0.01 > -
code/trunk/data/levels/pirateAttack.oxw
r9016 r9348 39 39 <Scene 40 40 ambientlight = "0.3, 0.3, 0.3" 41 skybox = "Orxonox/sky panoramagen1"41 skybox = "Orxonox/skyBoxBasic" 42 42 > 43 43 -
code/trunk/data/levels/planets.oxw
r9016 r9348 21 21 <Scene 22 22 ambientlight = "0.8, 0.8, 0.8" 23 skybox = "Orxonox/sky panoramagen1"23 skybox = "Orxonox/skyBoxBasic" 24 24 > 25 25 -
code/trunk/data/levels/pong.oxw
r9016 r9348 57 57 <?lua include("includes/notifications.oxi") ?> 58 58 59 <WorldAmbientSound source="Ganymede.ogg" playOnLoad=true looping=true /> 60 59 <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true"/> 61 60 <PongBot /> 62 61 63 62 <Scene 64 63 ambientlight = "0.5, 0.5, 0.5" 65 skybox = "Orxonox/sky panoramagen1"64 skybox = "Orxonox/skyBoxBasic" 66 65 > 67 66 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> … … 92 91 <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 93 92 94 <WorldSound name="scoreSound" position="0,0,0" source="sounds/pong_score.wav" > 93 <!-- TODO: Create a Pong Score Sound and include it here. 94 This WorldSound works, but doesn't make sense, since it is played together with ambient/moodDependedDirectory/Ganymede.ogg --> 95 <!--WorldSound name="scoreSound" position="0,0,0" source="ambient/default/Earth.ogg" > 95 96 <events> 96 97 <play> … … 98 99 </play> 99 100 </events> 100 </WorldSound >101 </WorldSound--> 101 102 102 103 <?lua -
code/trunk/data/levels/portals.oxw
r9016 r9348 23 23 <Scene 24 24 ambientlight = "0.5, 0.5, 0.5" 25 skybox = "Orxonox/sky panoramagen1"25 skybox = "Orxonox/skyBoxBasic" 26 26 > 27 27 … … 29 29 <PortalEndPoint> 30 30 <attached> 31 < Billboard material="Portals/Default"/>31 <Model mesh="Spacegate.mesh" yaw="90"/> 32 32 </attached> 33 33 </PortalEndPoint> … … 39 39 <PortalLink fromID="2" toID="1" /> 40 40 41 <!--PickupSpawner position="-200,0,0" triggerDistance="10" respawnTime="10" maxSpawnedItems="10"> 42 <pickup> 43 <DronePickup template=dronepickup /> 44 </pickup> 45 </PickupSpawner--> 41 <!--PickupSpawner pickup=dronepickup position="-200,0,0" triggerDistance="10" respawnTime="10" maxSpawnedItems="10" /--> 46 42 47 43 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> -
code/trunk/data/levels/presentation09.oxw
r9016 r9348 22 22 <Scene 23 23 ambientlight = "0.5, 0.5, 0.5" 24 skybox = "Orxonox/sky panoramagen1"24 skybox = "Orxonox/skyBoxBasic" 25 25 > 26 26 -
code/trunk/data/levels/presentation09b.oxw
r9016 r9348 26 26 <Scene 27 27 ambientlight = "0.5, 0.5, 0.5" 28 skybox = "Orxonox/sky panoramagen2"28 skybox = "Orxonox/skyBoxSomeNebula" 29 29 > 30 30 … … 94 94 </SpaceShip> 95 95 96 <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 97 <pickup> 98 <SpeedPickup template=smalljumppickup /> 99 </pickup> 100 </PickupSpawner> 96 <PickupSpawner pickup=smalljumppickup position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" /> 101 97 102 98 <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi --> 103 99 <PickupRepresentation 100 name = "MediumHealth" 104 101 pickupName = "Medium Health Pack" 105 102 pickupDescription = "Once used adds a medium amout of health to the ship." 106 103 spawnerTemplate = "mediumhealthpickupRepresentation" 107 104 inventoryRepresentation = "MediumHealth" 108 > 109 <pickup> 110 <HealthPickup health=100 activationType="onUse" durationType="once" /> 111 </pickup> 112 </PickupRepresentation> 113 114 <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 115 <pickup> 116 <HealthPickup health=100 activationType=onUse durationType=once /> 117 </pickup> 118 </PickupSpawner> 119 120 <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20"> 121 <pickup> 122 <HealthPickup template=mediumhealthpickup /> 123 </pickup> 124 </PickupSpawner> 105 /> 106 107 <Template name=onusehealthpickup baseclass=HealthPickup> 108 <HealthPickup representation="MediumHealth" health=100 activationType=onUse durationType=once /> 109 </Template> 110 111 <PickupSpawner pickup=onusehealthpickup position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" /> 112 113 <PickupSpawner pickup=mediumhealthpickup position="2300, 4300, 2400" respawnTime="5" triggerDistance="20" /> 125 114 126 115 <Billboard position="-2500, 2400, 1500" material="Examples/Flare" /> -
code/trunk/data/levels/presentationDM.oxw
r9016 r9348 24 24 <Scene 25 25 ambientlight = "0.5, 0.5, 0.5" 26 skybox = "Orxonox/sky panoramagen1"26 skybox = "Orxonox/skyBoxBasic" 27 27 > 28 28 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> -
code/trunk/data/levels/presentationFS10.oxw
r9016 r9348 102 102 <?lua end ?> 103 103 104 <PickupSpawner position="500,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 105 <pickup> 106 <DronePickup template=dronepickup /> 107 </pickup> 108 </PickupSpawner> 104 <PickupSpawner pickup=dronepickup position="500,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 109 105 110 106 <!-- Shield pickups --> 111 107 112 <PickupSpawner position="-25,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 113 <pickup> 114 <ShieldPickup template=hugeshieldpickup /> 115 </pickup> 116 </PickupSpawner> 108 <PickupSpawner pickup=hugeshieldpickup position="-25,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 117 109 118 110 <!-- Health pickups --> 119 111 120 <PickupSpawner position="0,-75,-500" triggerDistance="10" respawnTime="30" maxSpawnedItems="10"> 121 <pickup> 122 <HealthPickup template=hugehealthpickup /> 123 </pickup> 124 </PickupSpawner> 112 <PickupSpawner pickup=hugehealthpickup position="0,-75,-500" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> 125 113 126 114 <!-- Speed pickups --> 127 115 128 <PickupSpawner position="25,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99"> 129 <pickup> 130 <SpeedPickup template=hugespeedpickup /> 131 </pickup> 132 </PickupSpawner> 133 134 <PickupSpawner position="50,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99"> 135 <pickup> 136 <SpeedPickup template=smalljumppickup /> 137 </pickup> 138 </PickupSpawner> 116 <PickupSpawner pickup=hugespeedpickup position="25,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" /> 117 <PickupSpawner pickup=smalljumppickup position="50,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" /> 139 118 140 119 <!-- Invisible pickups --> 141 120 142 <PickupSpawner position="0,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> 143 <pickup> 144 <InvisiblePickup template=hugeinvisiblepickup /> 145 </pickup> 146 </PickupSpawner> 121 <PickupSpawner pickup=hugeinvisiblepickup position="0,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> 147 122 148 123 <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi --> 149 124 <PickupRepresentation 125 name = "MediumHealth" 150 126 pickupName = "Medium Health Pack" 151 127 pickupDescription = "Once used adds a medium amout of health to the ship." 152 128 spawnerTemplate = "mediumhealthpickupRepresentation" 153 129 inventoryRepresentation = "MediumHealth" 154 > 155 <pickup> 156 <HealthPickup health=50 activationType="onUse" durationType="once" /> 157 </pickup> 158 </PickupRepresentation> 130 /> 159 131 160 < PickupSpawner position="25,-75,-500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">161 < pickup>162 <HealthPickup health=50 activationType=onUse durationType=once />163 </pickup> 164 < /PickupSpawner>132 <Template name=onusehealthpickup baseclass=HealthPickup> 133 <HealthPickup representation="MediumHealth" health=50 activationType=onUse durationType=once /> 134 </Template> 135 136 <PickupSpawner pickup=onusehealthpickup position="25,-75,-500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" /> 165 137 166 138 </Scene> -
code/trunk/data/levels/presentationFS102.oxw
r9016 r9348 23 23 <Scene 24 24 ambientlight = "0.1, 0.1, 0.1" 25 skybox = "Orxonox/sky panoramagen1"25 skybox = "Orxonox/skyBoxBasic" 26 26 gravity = "0,-1000,0" 27 27 negativeWorldRange = "-100000, -100000, -100000" -
code/trunk/data/levels/presentationFS10Ed.oxw
r9016 r9348 23 23 <Scene 24 24 ambientlight = "0.1, 0.1, 0.1" 25 skybox = "Orxonox/sky panoramagen1"25 skybox = "Orxonox/skyBoxBasic" 26 26 gravity = "0,-1000,0" 27 27 negativeWorldRange = "-100000, -100000, -100000" … … 39 39 </collisionShapes> 40 40 </Pawn> 41 41 42 42 <Pawn health=100 position="0,-35,0" direction="0,-1,0" collisionType=dynamic mass=100000> 43 43 <attached> … … 48 48 </collisionShapes> 49 49 </Pawn> 50 50 51 51 <StaticEntity position="0,-50,0" direction="0,-1,0" collisionType=static mass=100000 > 52 52 <attached> … … 66 66 </collisionShapes> 67 67 </StaticEntity> 68 68 69 69 <StaticEntity position="600,-20,0" direction="0,-1,0" collisionType=static mass=100000 > 70 70 <attached> … … 84 84 </collisionShapes> 85 85 </StaticEntity> 86 86 87 87 <StaticEntity position="600,40,250" direction="0,-1,0" collisionType=static mass=100000 > 88 88 <attached> … … 93 93 </collisionShapes> 94 94 </StaticEntity> 95 96 95 96 97 97 <StaticEntity position="6000,0,10250" direction="0,0,0" collisionType=static mass=100000 > 98 98 <attached> … … 103 103 </collisionShapes> 104 104 </StaticEntity> 105 105 106 106 <Pawn health=100 position="530,70,1450" direction="-1,0,0" collisionType=dynamic mass=1 > 107 107 <attached> … … 112 112 </collisionShapes> 113 113 </Pawn> 114 114 115 115 <Pawn health=100 position="670,70,1450" direction="-1,0,0" collisionType=dynamic mass=1 > 116 116 <attached> … … 121 121 </collisionShapes> 122 122 </Pawn> 123 123 124 124 <Pawn health=100 position="600,70,1500" direction="0,0,-1" collisionType=dynamic mass=1 > 125 125 <attached> … … 130 130 </collisionShapes> 131 131 </Pawn> 132 132 133 133 <Pawn health=100 position="600,150,1450" direction="0,-1,0" collisionType=dynamic mass=1 > 134 134 <attached> … … 139 139 </collisionShapes> 140 140 </Pawn> 141 141 142 142 <Pawn health=100 position="600,35,1450" direction="0,-1,0" collisionType=dynamic mass=1 > 143 143 <attached> … … 148 148 </collisionShapes> 149 149 </Pawn> 150 150 151 151 152 152 <SpawnPoint position="0,300,0" direction="0, 0, 0" lookat="0,0,100000000" spawnclass=FpsPlayer pawndesign=fps /> … … 163 163 <attached> 164 164 <Model position="0,0,0" scale3D="<?lua print(j*100) ?>,<?lua print(g*100) ?>,<?lua print(h*100) ?>" mesh="cube<?lua 165 166 167 168 165 if math.mod(i,4)==0 then print('_green') end 166 if math.mod(i,4)==1 then print('_red') end 167 if math.mod(i,4)==2 then print('_orange') end 168 ?>.mesh" /> <!--if it's 3, cube.mesh is taken -> yellow --> 169 169 </attached> 170 170 <collisionShapes> -
code/trunk/data/levels/presentationFS11.oxw
r9016 r9348 422 422 </SimpleNotification> 423 423 424 <PickupSpawner position="-72487,420,-63" respawnTime="10" triggerDistance="20" maxSpawnedItems="5" active="false"> 425 <pickup> 426 <ShrinkPickup template ="smallshrinkpickup"/> 427 </pickup> 424 <PickupSpawner pickup="smallshrinkpickup" position="-72487,420,-63" respawnTime="10" triggerDistance="20" maxSpawnedItems="5" active="false"> 428 425 <events> 429 426 <activity> -
code/trunk/data/levels/presentationHS09.oxw
r9016 r9348 27 27 <Scene 28 28 ambientlight = "0.6, 0.4, 0.4" 29 skybox = "Orxonox/sky panoramagen2"29 skybox = "Orxonox/skyBoxSomeNebula" 30 30 > 31 31 … … 97 97 <Billboard material="Test/Fog" position="-3800, 2500, 1500" alpha="0.1" color="1, 1, 1, 0.1" scale="0.5" /> 98 98 99 <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 100 <pickup> 101 <SpeedPickup template=smalljumppickup /> 102 </pickup> 103 </PickupSpawner> 99 <PickupSpawner pickup=smalljumppickup position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" /> 104 100 105 101 <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi --> 106 102 <PickupRepresentation 103 name = "MediumHealth" 107 104 pickupName = "Medium Health Pack" 108 105 pickupDescription = "Once used adds a medium amout of health to the ship." 109 106 spawnerTemplate = "mediumhealthpickupRepresentation" 110 107 inventoryRepresentation = "MediumHealth" 111 > 112 <pickup> 113 <HealthPickup health=100 activationType="onUse" durationType="once" /> 114 </pickup> 115 </PickupRepresentation> 116 117 <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 118 <pickup> 119 <HealthPickup health=100 activationType=onUse durationType=once /> 120 </pickup> 121 </PickupSpawner> 122 123 <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20"> 124 <pickup> 125 <HealthPickup template=mediumhealthpickup /> 126 </pickup> 127 </PickupSpawner> 108 /> 109 110 <Template name=onusehealthpickup baseclass=HealthPickup> 111 <HealthPickup representation="MediumHealth" health=100 activationType=onUse durationType=once /> 112 </Template> 113 114 <PickupSpawner pickup=onusehealthpickup position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" /> 115 116 <PickupSpawner pickup=mediumhealthpickup position="2300, 4300, 2400" respawnTime="5" triggerDistance="20" /> 128 117 129 118 <Billboard position="-2500, 2400, 1500" material="Examples/Flare" /> -
code/trunk/data/levels/presentationHS11.oxw
- Property svn:eol-style set to native
r9016 r9348 1 <!-- --> 2 3 1 4 <LevelInfo 2 5 name = "Presentation HS 2011" 3 description = " Oxonox Proudly Presents New Features From HS 2011"6 description = "New Features: Asteroid field/belt generator; Formationflight; HUD (Enemyhealthbar, displaying Names)" 4 7 tags = "presentation" 5 8 /> … … 79 82 </events> 80 83 </SimpleNotification> 84 85 81 86 82 87 … … 131 136 <?lua end ?> 132 137 133 134 135 136 137 138 <!-- @Triggers: "hintX" <-> delayed LetsGo --> 139 <EventTrigger name="hint1" activations="1" stayactive="true" delay=4.2> 140 <events> 141 <trigger> 142 <EventListener event="LetsGo" /> 143 </trigger> 144 </events> 145 </EventTrigger> 146 <EventTrigger name="hint2" activations="1" stayactive="true" delay=8.4> 147 <events> 148 <trigger> 149 <EventListener event="LetsGo" /> 150 </trigger> 151 </events> 152 </EventTrigger> 153 <EventTrigger name="hint3" activations="1" stayactive="true" delay=12.6> 154 <events> 155 <trigger> 156 <EventListener event="LetsGo" /> 157 </trigger> 158 </events> 159 </EventTrigger> 160 <EventTrigger name="hint4" activations="1" stayactive="true" delay=16.8> 161 <events> 162 <trigger> 163 <EventListener event="LetsGo" /> 164 </trigger> 165 </events> 166 </EventTrigger> 167 <EventTrigger name="hint5" activations="1" stayactive="true" delay=21> 168 <events> 169 <trigger> 170 <EventListener event="LetsGo" /> 171 </trigger> 172 </events> 173 </EventTrigger> 174 <EventTrigger name="hint6" activations="1" stayactive="true" delay=25.2> 175 <events> 176 <trigger> 177 <EventListener event="LetsGo" /> 178 </trigger> 179 </events> 180 </EventTrigger> 181 182 183 184 <SimpleNotification message="Make bots follow you: Press (1)" broadcast="true"> 185 <events> 186 <trigger> 187 <EventListener event=hint1 /> 188 </trigger> 189 </events> 190 </SimpleNotification> 191 192 <SimpleNotification message="Toggle group behaviour: Press (1)" broadcast="true"> 193 <events> 194 <trigger> 195 <EventListener event=hint2 /> 196 </trigger> 197 </events> 198 </SimpleNotification> 199 200 <SimpleNotification message="Tell the bots to defend you: Press (2)" broadcast="true"> 201 <events> 202 <trigger> 203 <EventListener event=hint3 /> 204 </trigger> 205 </events> 206 </SimpleNotification> 207 208 <SimpleNotification message="Make them attack opponents: Press (2) again" broadcast="true"> 209 <events> 210 <trigger> 211 <EventListener event=hint4 /> 212 </trigger> 213 </events> 214 </SimpleNotification> 215 216 <SimpleNotification message="Let the bots behave 'normal': Press (2) again" broadcast="true"> 217 <events> 218 <trigger> 219 <EventListener event=hint5 /> 220 </trigger> 221 </events> 222 </SimpleNotification> 223 224 <SimpleNotification message="Have a look at the console to verify this." broadcast="true"> 225 <events> 226 <trigger> 227 <EventListener event=hint6 /> 228 </trigger> 229 </events> 230 </SimpleNotification> 138 231 139 232 <!-- Generate asteroid field and asteroid belt --> 140 <!-- asteroidBelt(centerX, centerY, centerZ, yaw, pitch, segments, minSize, maxSize, radius0, radius1, count, fog) --> 233 <!-- asteroidBelt(centerX, centerY, centerZ, yaw, pitch, segments, minSize, maxSize, radius0, radius1, count, fog) --> 141 234 <?lua 142 143 235 dofile("includes/asteroidField.lua") 236 asteroidBelt(20000, 0, 13000, -48, -34, 70, 100, 200, 22000, 20000, 500, 1) 144 237 145 238 ?> -
code/trunk/data/levels/princessAeryn.oxw
r9016 r9348 26 26 <Scene 27 27 ambientlight = "0.3, 0.3, 0.3" 28 skybox = "Orxonox/sky panoramagen1"28 skybox = "Orxonox/skyBoxBasic" 29 29 > 30 30 -
code/trunk/data/levels/screenshot.oxw
r9016 r9348 25 25 <Scene 26 26 ambientlight = "0.7, 0.6, 0.6" 27 skybox = "Orxonox/sky panoramagen1"27 skybox = "Orxonox/skyBoxBasic" 28 28 > 29 29 <!--Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /--> -
code/trunk/data/levels/teamBaseMatch.oxw
r9016 r9348 26 26 <Scene 27 27 ambientlight = "0.5, 0.5, 0.5" 28 skybox = "Orxonox/sky panoramagen1"28 skybox = "Orxonox/skyBoxBasic" 29 29 > 30 30 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> -
code/trunk/data/levels/teamDeathMatch.oxw
r9016 r9348 25 25 <Scene 26 26 ambientlight = "0.7, 0.6, 0.6" 27 skybox = "Orxonox/sky panoramagen1"27 skybox = "Orxonox/skyBoxBasic" 28 28 > 29 29 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> -
code/trunk/data/levels/templates/FPS.oxt
r8858 r9348 17 17 linearDamping = 0.7 18 18 angularDamping = 0.9999999 19 friction 20 19 friction = 0.01 20 21 21 weapon = "hs-w01.mesh" 22 22 > … … 24 24 <BoxCollisionShape position="0,-20,0" halfExtents="15,25,15" /> 25 25 </collisionShapes> 26 26 27 27 <camerapositions> 28 28 <CameraPosition position="-1,1,2.2" drag=false mouselook=true /> 29 29 </camerapositions> 30 30 31 31 <?lua 32 32 include("../includes/weaponSettingsFPS.oxi") 33 33 ?> 34 34 … … 40 40 <camerapositions> 41 41 <CameraPosition position="0,0,20" drag=false mouselook=true /> 42 42 43 43 <!-- 44 44 CameraPosition position="0,150,-25" pitch=-90 drag=true /> … … 47 47 <CameraPosition position="-50,5,-8" yaw=-90 drag=true /> 48 48 <CameraPosition position="50,5,-8" yaw=90 drag=true / 49 49 50 50 </camerapositions> 51 51 </FpsPlayer> -
code/trunk/data/levels/templates/pickupRepresentationTemplates.oxt
r8706 r9348 17 17 </Template> 18 18 19 <Template name=smallshieldpickup >19 <Template name=smallshieldpickup baseclass=ShieldPickup> 20 20 <ShieldPickup 21 representation = "smallshieldpickup" 21 22 duration = 10 22 23 shieldabsorption = 0.7 … … 43 44 </Template> 44 45 45 <Template name=mediumshieldpickup >46 <Template name=mediumshieldpickup baseclass=ShieldPickup> 46 47 <ShieldPickup 48 representation = "mediumshieldpickup" 47 49 duration = 30 48 50 shieldabsorption = 0.8 … … 70 72 </Template> 71 73 72 <Template name=hugeshieldpickup >74 <Template name=hugeshieldpickup baseclass=ShieldPickup> 73 75 <ShieldPickup 76 representation = "hugeshieldpickup" 74 77 duration = 60 75 78 shieldabsorption = 0.95 … … 98 101 </Template> 99 102 100 <Template name=smallhealthpickup >103 <Template name=smallhealthpickup baseclass=HealthPickup> 101 104 <HealthPickup 105 representation = "smallhealthpickup" 102 106 health = 10 103 107 healthType = "limited" … … 123 127 </Template> 124 128 125 <Template name=mediumhealthpickup >129 <Template name=mediumhealthpickup baseclass=HealthPickup> 126 130 <HealthPickup 131 representation = "mediumhealthpickup" 127 132 health = 50 128 133 healthType = "limited" … … 148 153 </Template> 149 154 150 <Template name=hugehealthpickup >155 <Template name=hugehealthpickup baseclass=HealthPickup> 151 156 <HealthPickup 157 representation = "hugehealthpickup" 152 158 health = 100 153 159 healthType = "limited" … … 173 179 </Template> 174 180 175 <Template name=crazyhealthpickup >181 <Template name=crazyhealthpickup baseclass=HealthPickup> 176 182 <HealthPickup 183 representation = "crazyhealthpickup" 177 184 health = 1000 178 185 healthType = "permanent" … … 216 223 </Template> 217 224 225 <!-- DamageBoost pickups --> 226 227 <Template name=smalldamageboostpickupRepresentation> 228 <PickupRepresentation> 229 <spawner-representation> 230 <StaticEntity> 231 <attached> 232 <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 > 233 <attached> 234 <Billboard position="0,0,0" colour="0.30,0.30,0.30" material="damageSmall" scale=0.7 /> 235 </attached> 236 </Billboard> 237 </attached> 238 </StaticEntity> 239 </spawner-representation> 240 </PickupRepresentation> 241 </Template> 242 243 <Template name=smalldamageboostpickup baseclass=DamageBoostPickup> 244 <DamageBoostPickup 245 representation = "smalldamageboostpickup" 246 duration = 10.0 247 damageMultiplier = 2.0 248 activationType = "immediate" 249 durationType = "continuous" 250 /> 251 </Template> 252 253 <Template name=mediumdamageboostpickupRepresentation> 254 <PickupRepresentation> 255 <spawner-representation> 256 <StaticEntity> 257 <attached> 258 <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 > 259 <attached> 260 <Billboard position="0,0,0" colour="0.30,0.30,0.30" material="damageMedium" scale=0.7 /> 261 </attached> 262 </Billboard> 263 </attached> 264 </StaticEntity> 265 </spawner-representation> 266 </PickupRepresentation> 267 </Template> 268 269 <Template name=mediumdamageboostpickup baseclass=DamageBoostPickup> 270 <DamageBoostPickup 271 representation = "mediumdamageboostpickup" 272 duration = 10.0 273 damageMultiplier = 5.0 274 activationType = "immediate" 275 durationType = "continuous" 276 /> 277 </Template> 278 279 <Template name=largedamageboostpickupRepresentation> 280 <PickupRepresentation> 281 <spawner-representation> 282 <StaticEntity> 283 <attached> 284 <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 > 285 <attached> 286 <Billboard position="0,0,0" colour="0.30,0.30,0.30" material="damageLarge" scale=0.7 /> 287 </attached> 288 </Billboard> 289 </attached> 290 </StaticEntity> 291 </spawner-representation> 292 </PickupRepresentation> 293 </Template> 294 295 <Template name=largedamageboostpickup baseclass=DamageBoostPickup> 296 <DamageBoostPickup 297 representation = "largedamageboostpickup" 298 duration = 10.0 299 damageMultiplier = 7.0 300 activationType = "immediate" 301 durationType = "continuous" 302 /> 303 </Template> 304 305 218 306 <!-- Speed pickups --> 219 307 … … 234 322 </Template> 235 323 236 <Template name=smallspeedpickup >324 <Template name=smallspeedpickup baseclass=SpeedPickup> 237 325 <SpeedPickup 326 representation = "smallspeedpickup" 238 327 duration = 10.0 239 328 speedAdd = 0.0 … … 260 349 </Template> 261 350 262 <Template name=mediumspeedpickup >351 <Template name=mediumspeedpickup baseclass=SpeedPickup> 263 352 <SpeedPickup 353 representation = "mediumspeedpickup" 264 354 duration = 10.0 265 355 speedAdd = 0.0 … … 286 376 </Template> 287 377 288 <Template name=hugespeedpickup >378 <Template name=hugespeedpickup baseclass=SpeedPickup> 289 379 <SpeedPickup 380 representation = "hugespeedpickup" 290 381 duration = 10.0 291 382 speedAdd = 0.0 … … 312 403 </Template> 313 404 314 <Template name=smalljumppickup >405 <Template name=smalljumppickup baseclass=SpeedPickup> 315 406 <SpeedPickup 407 representation = "smalljumppickup" 316 408 duration = 0.7 317 409 speedAdd = 5000.0 … … 340 432 </Template> 341 433 342 <Template name=smallinvisiblepickup >434 <Template name=smallinvisiblepickup baseclass=InvisiblePickup> 343 435 <InvisiblePickup 436 representation = "smallinvisiblepickup" 344 437 duration = 5.0 345 438 activaionType = "immediate" … … 364 457 </Template> 365 458 366 <Template name=mediuminvisiblepickup >459 <Template name=mediuminvisiblepickup baseclass=InvisiblePickup> 367 460 <InvisiblePickup 461 representation = "mediuminvisiblepickup" 368 462 duration = 10.0 369 463 activaionType = "immediate" … … 388 482 </Template> 389 483 390 <Template name=hugeinvisiblepickup >484 <Template name=hugeinvisiblepickup baseclass=InvisiblePickup> 391 485 <InvisiblePickup 486 representation = "hugeinvisiblepickup" 392 487 duration = 20.0 393 488 activaionType = "immediate" … … 412 507 </Template> 413 508 414 <Template name=smallshrinkpickup> 415 <InvisiblePickup 509 <Template name=smallshrinkpickup baseclass=ShrinkPickup> 510 <ShrinkPickup 511 representation = "smallshrinkpickup" 416 512 duration = 10.0 417 513 shrinkFactor = 2.5 … … 437 533 </Template> 438 534 439 <Template name=mediumshrinkpickup> 440 <InvisiblePickup 535 <Template name=mediumshrinkpickup baseclass=ShrinkPickup> 536 <ShrinkPickup 537 representation = "mediumshrinkpickup" 441 538 duration = 30.0 442 539 shrinkFactor = 5.0 … … 462 559 </Template> 463 560 464 <Template name=hugeshrinkpickup> 465 <InvisiblePickup 561 <Template name=hugeshrinkpickup baseclass=ShrinkPickup> 562 <ShrinkPickup 563 representation = "hugeshrinkpickup" 466 564 duration = 60.0 467 565 shrinkFactor = 10.0 … … 491 589 </Template> 492 590 493 <Template name=triplehealthspeedinvisibilitypickup> 494 <PickupCollection> 591 <Template name=triplehealthspeedinvisibilitypickup baseclass=PickupCollection> 592 <PickupCollection 593 representation = "triplehealthspeedinvisibilitypickup" 594 > 495 595 <pickupables> 496 596 <HealthPickup template=mediumhealthpickup /> … … 551 651 </Template> 552 652 553 <Template name=dronepickup >554 <DronePickup droneTemplate=droneTemplate />555 </Template> 556 653 <Template name=dronepickup baseclass=DronePickup> 654 <DronePickup representation=dronepickup droneTemplate=droneTemplate /> 655 </Template> 656 -
code/trunk/data/levels/templates/spaceshipSpacecruiser.oxt
- Property svn:eol-style set to native
-
code/trunk/data/levels/testStars.oxw
r9016 r9348 30 30 <attached> 31 31 <Model pitch=180 position="0,0,0" scale=1.5 mesh="rocket_test.mesh" > 32 33 <ParticleEmitter pitch=0 roll=0 position="0,5,0" source="Orxonox/laser" lifetime=2.0 loop=1 startdelay=3.0/>34 <ParticleEmitter pitch=-90 roll=0 position="0,-5,0" source="Orxonox/particlecanon" lifetime=2.0 loop=1 startdelay=3.0/>35 <ParticleEmitter pitch=-90 roll=0 position="0,0,-2" source="Orxonox/rocketfire" lifetime=2.0 loop=1 startdelay=3.0 />36 32 <attached> 33 <ParticleEmitter pitch=0 roll=0 position="0,5,0" source="Orxonox/laser" lifetime=2.0 loop=1 startdelay=3.0/> 34 <ParticleEmitter pitch=-90 roll=0 position="0,-5,0" source="Orxonox/particlecanon" lifetime=2.0 loop=1 startdelay=3.0/> 35 <ParticleEmitter pitch=-90 roll=0 position="0,0,-2" source="Orxonox/rocketfire" lifetime=2.0 loop=1 startdelay=3.0 /> 36 <ParticleEmitter pitch=-90 roll=0 position="0,0,-2" source="Orxonox/smoke" lifetime=2.0 loop=1 startdelay=3.0 /> 37 37 </attached> 38 39 38 </Model> 39 </attached> 40 40 </Rocket--> 41 41 42 42 <CreateStars numStars="6000" material="Examples/Flare" colour="1,1,1" radius=10000 colourDiff=0.1/> 43 43 -
code/trunk/data/levels/testSwallow.oxw
r9016 r9348 23 23 <Scene 24 24 ambientlight = "0.5, 0.5, 0.5" 25 skybox = "Orxonox/sky panoramagen1"25 skybox = "Orxonox/skyBoxBasic" 26 26 > 27 27 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> -
code/trunk/data/levels/tetris.oxw
r9016 r9348 9 9 include("HUDTemplates3.oxo") 10 10 include("stats.oxo") 11 include("tetrisHUD.oxo") 11 12 include("templates/lodInformation.oxt") 13 include("templates/spaceshipAssff.oxt") 14 include("templates/spaceshipGhost.oxt") 15 include("templates/spaceshipPirate.oxt") 16 include("templates/spaceshipSwallow.oxt") 17 include("templates/spaceshipTransporter.oxt") 18 include("templates/spaceshipH2.oxt") 12 19 ?> 13 20 … … 16 23 <camerapositions> 17 24 <CameraPosition position="55,75,200" absolute=true /> 18 <CameraPosition position="0,50,160" drag=true mouselook=true />19 <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true />20 25 </camerapositions> 21 26 </TetrisStone> … … 25 30 <TetrisStone camerapositiontemplate=tetrisstonecameras> 26 31 <attached> 27 <Model position="0,0,0" mesh="crate.mesh" scale= 1/>32 <Model position="0,0,0" mesh="crate.mesh" scale=0.9 /> 28 33 </attached> 29 34 </TetrisStone> 30 35 </Template> 36 37 38 39 <Template name=tetrisbrickcameras defaults=0> 40 <TetrisBrick> 41 <camerapositions> 42 <CameraPosition position="55,75,200" absolute=true /> 43 <!--CameraPosition position="0,50,160" drag=true mouselook=true /> 44 <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true /--> 45 </camerapositions> 46 </TetrisBrick> 47 </Template> 48 49 <Template name=tetrisbrick> 50 <TetrisBrick camerapositiontemplate=tetrisbrickcameras> 51 </TetrisBrick> 52 </Template> 53 31 54 32 55 <Level … … 40 63 <Scene 41 64 ambientlight = "0.5, 0.5, 0.5" 42 skybox = "Orxonox/sky panoramagen1"65 skybox = "Orxonox/skyBoxBasic" 43 66 > 67 <!--luke_grey_-_hypermode.ogg allgorythm-lift_up.ogg Fight1.ogg --> 68 <WorldAmbientSound 69 source="Ganymede.ogg" 70 looping="true" 71 playOnLoad="true" 72 /> 73 44 74 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> 75 45 76 46 77 <?lua … … 50 81 <?lua end ?> 51 82 52 <TetrisCenterpoint name=tetriscenter width=11 height=15 stoneSize=10 stoneTemplate=tetrisstone stoneSpeed=10 position="-55,-75,0">83 <TetrisCenterpoint name=tetriscenter width=11 height=15 stoneSize=10 stoneTemplate=tetrisstone brickTemplate=tetrisbrick stoneSpeed=10 position="-55,-75,0"> 53 84 <attached> 54 85 <Model position="55,-1,0" mesh="cube.mesh" scale3D="57,1,11" /> … … 56 87 <Model position="111,76,0" mesh="cube.mesh" scale3D="1,76,1" /> 57 88 </attached> 89 <!--collisionShapes> 90 <BoxCollisionShape position="55,-1,0" halfExtents="57,1,11" /> 91 <BoxCollisionShape position="-1,76,0" halfExtents="1,76,1" /> 92 <BoxCollisionShape position="111,76,0" halfExtents="1,76,1" /> 93 </collisionShapes--> 58 94 </TetrisCenterpoint> 59 95 96 <!-- ------------ insert eye candy here ---------------- --> 97 98 <!-- asteroidBelt(centerX, centerY, centerZ, yaw, pitch, segments, minSize, maxSize, radius0, radius1, count, fog) --> 99 <!-- DONT DARE TO TURN THE FOG ON, whithout finding a better belt position --> 100 <?lua 101 dofile("includes/asteroidField.lua") 102 asteroidBelt(10000, 0, 0, -40, -90, 70, 100, 200, 24000, 20000, 500, 0) 103 104 ?> 105 <!-- -------- 4 spaceships rotating around the tetris field --------- --> 106 <SpaceShip position="1000,-75,1" lookat="0,0,0"> 107 <templates> 108 <Template link=spaceshipswallow /> 109 </templates> 110 <controller> 111 <WaypointController team=10 accuracy=200> 112 <waypoints> 113 <Model mesh="cube.mesh" scale=0 position="1000,-75,0" /> 114 <Model mesh="cube.mesh" scale=0 position="650,-75,650" /> 115 <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" /> 116 <Model mesh="cube.mesh" scale=0 position="-700,-75,650" /> 117 <Model mesh="cube.mesh" scale=0 position="-1000,-75,0" /> 118 <Model mesh="cube.mesh" scale=0 position="-700,-75,-650" /> 119 <Model mesh="cube.mesh" scale=0 position="-55,-75,-1000" /> 120 <Model mesh="cube.mesh" scale=0 position="650,-75,-650" /> 121 </waypoints> 122 </WaypointController> 123 </controller> 124 </SpaceShip> 125 126 <SpaceShip position="-500,-500,-400" lookat="0,0,0"> 127 <templates> 128 <Template link=spaceshippirate /> 129 </templates> 130 <controller> 131 <WaypointController team=10> 132 <waypoints> 133 <Model mesh="cube.mesh" scale=0 position="-1000,-200,0" /> 134 <Model mesh="cube.mesh" scale=0 position="-700,-150,650" /> 135 <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" /> 136 <Model mesh="cube.mesh" scale=0 position="650,100,650" /> 137 <Model mesh="cube.mesh" scale=0 position="1000,150,0" /> 138 <Model mesh="cube.mesh" scale=0 position="650,100,-650" /> 139 <Model mesh="cube.mesh" scale=0 position="-55,0,-1000" /> 140 <Model mesh="cube.mesh" scale=0 position="-700,-100,-650" /> 141 </waypoints> 142 </WaypointController> 143 </controller> 144 </SpaceShip> 145 146 <SpaceShip position="-700,200,651" lookat="1,0,0"> 147 <templates> 148 <Template link=spaceshipghost /> 149 </templates> 150 <controller> 151 <WaypointController team=10 accuracy=300> 152 <waypoints> 153 <Model mesh="cube.mesh" scale=0 position="-700,200,650" /> 154 <Model mesh="cube.mesh" scale=0 position="-55,100,1000" /> 155 <Model mesh="cube.mesh" scale=0 position="650,0,650" /> 156 <Model mesh="cube.mesh" scale=0 position="1000,-100,0" /> 157 <Model mesh="cube.mesh" scale=0 position="650,0,-650" /> 158 <Model mesh="cube.mesh" scale=0 position="-55,100,-1000" /> 159 <Model mesh="cube.mesh" scale=0 position="-700,200,-650" /> 160 <Model mesh="cube.mesh" scale=0 position="-1000,300,0" /> 161 </waypoints> 162 </WaypointController> 163 </controller> 164 </SpaceShip> 165 166 <SpaceShip position="1000,-75,0" lookat="0,0,0"> 167 <templates> 168 <Template link=spaceshipHtwo /> 169 </templates> 170 <controller> 171 <WaypointController team=10> 172 <waypoints> 173 <Model mesh="cube.mesh" scale=0 position="400,240,400" /> 174 <Model mesh="cube.mesh" scale=0 position="-55,240,700" /> 175 <Model mesh="cube.mesh" scale=0 position="-500,240,400" /> 176 <Model mesh="cube.mesh" scale=0 position="-700,240,0" /> 177 <Model mesh="cube.mesh" scale=0 position="-500,240,-400" /> 178 <Model mesh="cube.mesh" scale=0 position="-55,240,-700" /> 179 <Model mesh="cube.mesh" scale=0 position="400,240,-400" /> 180 <Model mesh="cube.mesh" scale=0 position="700,240,0" /> 181 </waypoints> 182 </WaypointController> 183 </controller> 184 </SpaceShip> 185 186 187 60 188 </Scene> 61 189 </Level> -
code/trunk/data/levels/theTimeMachine.oxw
r9016 r9348 39 39 angularDamping = 0.9999999 40 40 > 41 <engines> 42 <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine /> 43 <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine /> 44 </engines> 41 45 <attached> 42 46 <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" /> … … 71 75 <Scene 72 76 ambientlight="0.8,0.8,0.8" 73 skybox="Orxonox/sky panoramagen2"77 skybox="Orxonox/skyBoxSomeNebula" 74 78 > 75 79 -
code/trunk/data/levels/tutorial.oxw
r9016 r9348 2 2 name = "Coding Tutorial" 3 3 description = "Level for the coding tutorial." 4 tags = "tutorial "4 tags = "tutorial, shipselection" 5 5 screenshot = "codingtutorial.png" 6 startingships = "spaceshipassff, spaceshipghost, spaceshipspacecruiser" 6 7 /> 7 8 … … 10 11 include("stats.oxo") 11 12 include("templates/spaceshipAssff.oxt") 13 include("templates/spaceshipGhost.oxt") 14 include("templates/spaceshipSpacecruiser.oxt") 12 15 include("templates/lodInformation.oxt") 13 16 ?> … … 21 24 <Scene 22 25 ambientlight = "0.5, 0.5, 0.5" 23 skybox = "Orxonox/sky panoramagen1"26 skybox = "Orxonox/skyBoxBasic" 24 27 > 25 26 27 28 29 28 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7"> 30 29 <attached> … … 53 52 for i = 1, 10, 1 do 54 53 ?> 55 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=s paceshipassff/>54 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=shipselection /> 56 55 <?lua end ?> 57 56 -
code/trunk/data/levels/underAttack.oxw
r9257 r9348 12 12 include("templates/lodInformation.oxt") 13 13 ?> 14 <!--OUTDATED: include("underAttackHUD.oxo") -->15 14 16 15 <Level … … 24 23 <Scene 25 24 ambientlight = "0.5, 0.5, 0.5" 26 skybox = "Orxonox/sky panoramagen1"25 skybox = "Orxonox/skyBoxBasic" 27 26 > 28 27 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> -
code/trunk/data/levels/waypoints.oxw
r9016 r9348 23 23 <Scene 24 24 ambientlight = "0.5, 0.5, 0.5" 25 skybox = "Orxonox/sky panoramagen1"25 skybox = "Orxonox/skyBoxBasic" 26 26 > 27 27 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
Note: See TracChangeset
for help on using the changeset viewer.