[8944] | 1 | <LevelInfo |
---|
| 2 | name = "Spacerace2" |
---|
| 3 | description = "Just a few tests" |
---|
| 4 | tags = "test" |
---|
| 5 | /> |
---|
| 6 | |
---|
| 7 | <?lua |
---|
| 8 | include("stats.oxo") |
---|
| 9 | include("HUDTemplates3.oxo") |
---|
| 10 | include("templates/lodInformation.oxt") |
---|
| 11 | |
---|
| 12 | include("templates/spaceshipAssff.oxt") |
---|
| 13 | |
---|
| 14 | ?> |
---|
| 15 | |
---|
| 16 | <?lua |
---|
| 17 | include("templates/spaceshipAssff2.oxt") |
---|
| 18 | include("templates/spaceshipPirate.oxt") |
---|
| 19 | ?> |
---|
| 20 | |
---|
| 21 | <Level |
---|
| 22 | name = "Spacerace2" |
---|
| 23 | description = "Just a few tests" |
---|
| 24 | gametype = SpaceRace |
---|
| 25 | > |
---|
| 26 | <templates> |
---|
| 27 | <Template link=lodtemplate_default /> |
---|
| 28 | </templates> |
---|
| 29 | <?lua include("includes/notifications.oxi") ?> |
---|
| 30 | |
---|
| 31 | <Scene |
---|
| 32 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 33 | skybox = "Orxonox/Starbox" |
---|
| 34 | > |
---|
| 35 | |
---|
| 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 | |
---|
| 38 | |
---|
| 39 | <SpaceRaceManager> |
---|
| 40 | <checkpoints> |
---|
[8983] | 41 | <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"> |
---|
[8944] | 42 | <attached> |
---|
| 43 | <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> |
---|
| 44 | </attached> |
---|
| 45 | <collisionShapes> |
---|
| 46 | <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> |
---|
| 47 | <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> |
---|
| 48 | <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> |
---|
| 49 | <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> |
---|
| 50 | </collisionShapes> |
---|
| 51 | </RaceCheckPoint> |
---|
[8959] | 52 | |
---|
[8968] | 53 | <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"> |
---|
[8959] | 54 | <attached> |
---|
| 55 | <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> |
---|
| 56 | </attached> |
---|
| 57 | <collisionShapes> |
---|
| 58 | <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> |
---|
| 59 | <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> |
---|
| 60 | <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> |
---|
| 61 | <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> |
---|
| 62 | </collisionShapes> |
---|
| 63 | </RaceCheckPoint> |
---|
| 64 | |
---|
[8968] | 65 | <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"> |
---|
[8959] | 66 | <attached> |
---|
| 67 | <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> |
---|
| 68 | </attached> |
---|
| 69 | <collisionShapes> |
---|
| 70 | <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> |
---|
| 71 | <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> |
---|
| 72 | <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> |
---|
| 73 | <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> |
---|
| 74 | </collisionShapes> |
---|
| 75 | </RaceCheckPoint> |
---|
| 76 | |
---|
| 77 | <RaceCheckPoint name="checkpoint4" position="0,-400,300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="3" islast="true"> |
---|
| 78 | <attached> |
---|
| 79 | <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> |
---|
| 80 | </attached> |
---|
| 81 | <collisionShapes> |
---|
| 82 | <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> |
---|
| 83 | <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> |
---|
| 84 | <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> |
---|
| 85 | <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> |
---|
| 86 | </collisionShapes> |
---|
| 87 | </RaceCheckPoint> |
---|
[8944] | 88 | </checkpoints> |
---|
| 89 | </SpaceRaceManager> |
---|
| 90 | |
---|
[8959] | 91 | |
---|
[8968] | 92 | <SpaceShip position="0,0,200" lookat="0,0,0"> |
---|
| 93 | <templates> |
---|
| 94 | <Template link=spaceshipassff /> |
---|
| 95 | </templates> |
---|
| 96 | <controller> |
---|
[8983] | 97 | <WaypointPatrolController alertnessradius=0 team=10> |
---|
[8968] | 98 | <waypoints> |
---|
[8979] | 99 | <Model mesh="cube.mesh" scale=0 position="0,-2000,1000" /> |
---|
| 100 | <Model mesh="cube.mesh" scale=0 position="0,2100,2300" /> |
---|
| 101 | <Model mesh="cube.mesh" scale=0 position="0,-400,300" /> |
---|
[8968] | 102 | </waypoints> |
---|
| 103 | </WaypointPatrolController> |
---|
| 104 | </controller> |
---|
| 105 | </SpaceShip> |
---|
[8944] | 106 | |
---|
[8971] | 107 | <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
[8944] | 108 | |
---|
| 109 | |
---|
[8979] | 110 | <!-- ------------------Planet----------------- --> |
---|
| 111 | <Planet position="0,0,0" scale=300 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> |
---|
| 112 | <StaticEntity position="0,0,0" collisionType=static> |
---|
| 113 | <collisionShapes> |
---|
| 114 | <SphereCollisionShape radius="399" /> |
---|
| 115 | </collisionShapes> |
---|
| 116 | </StaticEntity> |
---|
[8944] | 117 | |
---|
[8979] | 118 | <!-- ---------------asteroid ellipse----------------- --> |
---|
| 119 | <?lua |
---|
| 120 | max = 20 |
---|
| 121 | for i = 0, max, 1 |
---|
| 122 | do |
---|
| 123 | y = math.sin(i/max*6)*2000 |
---|
| 124 | z = math.cos(i/max*6)*2500 |
---|
| 125 | x = 0 |
---|
| 126 | ?> |
---|
| 127 | <?lua |
---|
| 128 | for k = 1, 15, 1 |
---|
| 129 | do |
---|
| 130 | j = math.random() |
---|
| 131 | ?> |
---|
| 132 | |
---|
| 133 | <MovableEntity |
---|
| 134 | position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>" |
---|
| 135 | collisionType = "dynamic" |
---|
| 136 | linearDamping = "0.5" |
---|
| 137 | angularDamping = "0.01" |
---|
| 138 | collisiondamage = "0.01" |
---|
| 139 | enablecollisiondamage = "true" |
---|
| 140 | scale="<?lua print(j * 5) ?>" > |
---|
| 141 | <attached> |
---|
| 142 | <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> |
---|
| 143 | <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- --> |
---|
| 144 | <ParticleEmitter position="0,0,0" source="Orxonox/Steam" /> |
---|
| 145 | </attached> <?lua end ?> |
---|
| 146 | </Model> |
---|
| 147 | </attached> |
---|
| 148 | <collisionShapes> |
---|
| 149 | <SphereCollisionShape radius="<?lua print(j * 80) ?>" /> |
---|
| 150 | </collisionShapes> |
---|
| 151 | </MovableEntity> |
---|
| 152 | <?lua |
---|
| 153 | end |
---|
| 154 | ?> |
---|
| 155 | <?lua end ?> |
---|
| 156 | |
---|
| 157 | <!-- ---------------ForceFields----------------- --> |
---|
| 158 | <ForceField position="0,-700,2700" direction="0,1,0" diameter=500 velocity=2000 length=600 /> |
---|
| 159 | <MovableEntity position="0,-400,2700"> |
---|
| 160 | <attached> |
---|
| 161 | <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/> |
---|
| 162 | <?lua for i=0,15,1 do ?> |
---|
| 163 | <Billboard position="-200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
| 164 | <Billboard position="200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
| 165 | <?lua end ?> |
---|
| 166 | </attached> |
---|
| 167 | </MovableEntity> |
---|
| 168 | |
---|
| 169 | <ForceField position="0,2500,2000" direction="0,0,-1" diameter=250 velocity=2000 length=600 /> |
---|
| 170 | <MovableEntity position="0,2500,2000"> |
---|
| 171 | <attached> |
---|
| 172 | <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/> |
---|
| 173 | <?lua for i=0,15,1 do ?> |
---|
| 174 | <Billboard position="-100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
| 175 | <Billboard position="100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
| 176 | <?lua end ?> |
---|
| 177 | </attached> |
---|
| 178 | </MovableEntity> |
---|
| 179 | |
---|
| 180 | <ForceField position="0,1300,-800" direction="0,-1,-1" diameter=250 velocity=2000 length=800 /> |
---|
| 181 | <MovableEntity position="0,1300,-800"> |
---|
| 182 | <attached> |
---|
| 183 | <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/> |
---|
| 184 | <?lua for i=0,20,1 do ?> |
---|
| 185 | <Billboard position="-100,<?lua print(-i*40*0.7071) ?>,<?lua print(-i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
| 186 | <Billboard position="100,<?lua print(-i*40*0.7071) ?>,<?lua print(-i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
| 187 | <?lua end ?> |
---|
| 188 | </attached> |
---|
| 189 | </MovableEntity> |
---|
| 190 | |
---|
| 191 | <ForceField position="0,-1400,-700" direction="0,-1,1" diameter=250 velocity=2000 length=600 /> |
---|
| 192 | <MovableEntity position="0,-1400,-700"> |
---|
| 193 | <attached> |
---|
| 194 | <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/> |
---|
| 195 | <?lua for i=0,15,1 do ?> |
---|
| 196 | <Billboard position="-100,<?lua print(-i*40*0.7071) ?>,<?lua print(i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
| 197 | <Billboard position="100,<?lua print(-i*40*0.7071) ?>,<?lua print(i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
| 198 | <?lua end ?> |
---|
| 199 | </attached> |
---|
| 200 | </MovableEntity> |
---|
| 201 | |
---|
| 202 | |
---|
[8944] | 203 | |
---|
| 204 | </Scene> |
---|
| 205 | </Level> |
---|
| 206 | |
---|